Unix made easy
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
370
On Slideshare
370
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Logged in = What to do Who= who logged into the system The users and hosts Pwd =print woring directory= lists the current working directory Ls = lists all the directories files and sub directories –f –r and other options to remove the unwanted expressions that also come in the result Handling Files Head [ -10] file1 = Shows the first 10 lines of the file More file1= Shows more content of the file Tail file1 = Shows the lasat few lines of the file Ed file1 = Editor for the file to create/edit Sed = Stream editor for editing the file Vi = Editing the file and saving it Mv file1 to file2 = Move the file into another Cp file1 file2 = Write contents od file1 into file2 Awk file1 = Search for patterns in the file and process the results Handling Directories Chown = Change ownership of the Chmod = Change file or directory access permissions Mkdir = Creating new directory Rmdir = Removing the directory Handling Processes Ps = show the active processes involved Kill #pid = kill the process with specified pid String Manipulation Commands
  • 2. Grep ‘search string’ file1 = Search for the occurance of the string in the file Wc file1 = Find the number of words in the file Server Connection Commands telnet [host port ] =Used to communicate with other hosts present in the server. ftp host = Transfer files using file transfer protocol