COMMAND | EXAMPLE | DESCRIPTION |
DATE | $ date | Displays the current Date. |
MAN | $ man | Displays the manual Page of our terminal. |
Ls | $ ls | List the number of files and directories. |
Ls-al | $ ls-al | List all the files in the current working directory showing permissions, ownership, size, time and date. |
$ | Displays the current Month calendar. | |
Cal 2008 | $ Cal 2008 | Displays the calendar of the year 2008. |
$ | Displays the calendar for fifth month of 2008. | |
Who | $ Who | Displays the number of users logged on particular system. |
Who am I | $ Who am I | Current login user name will be displayed. |
More | $ More | It allows file contents or piped output to be sent to the screen page by page. |
file | $ file | Displays the type of file. |
rm | $ rm | Remove the file or directory. |
mk dir | $ mkdir hai | Create a directory. |
Cat filename | $ cat prog 1 | To open a file. |
Echo | $ Echo SMEC | Display the string. |
clear | $ clear | Clear the screen. |
cd | Change directory. | |
$ cd/Home | Change the current directory to /Home. | |
$ cd httpd | Change the current working directory to httpd. | |
$ cd.. | Move to parent directory of the current directory. | |
$ cd~ | Move to user’s home directory which is “/home/username”. | |
cp | Copy files. | |
$ cp myfile yourfile | Copy the files “myfile” to the file “yourfile” in the current working directory. | |
$ cp-i/data/myfile | Copy the file “/data/myfile” to the current working directory. | |
$ cp – dpr srcdir dest dir | Copy all files from the directory “srcdir” to “destdir”. | |
cmp | $ cmpf1f2 | Compare two files. |
Mv | Move or rename file. | |
$mv-i myfile yourfile | Move the file from “myfile” to “yourfile”. | |
$ mv-i/data/myfile | Move the file from myfile from the directory “/data” to the current working directory. | |
Pwd | $ pwd | Show the name of the current working directory. |
sort | $ sort filename | Sort the files content in ascending order. |
$ sort-r filename | Sort the file content in descending order. | |
Grep | $ grep-pattern filename | Searches the regular expressions in string or files. |
Head | $ head-op filename | Access the lines from the top. |
Tail | $ tail-op filename | Access the lines to bottom. |
uniq | $ uniq filename | I fetches one copy of redundant record. |
Shutdown | Shuts the system down. | |
$ shutdown-h now | Shuts the system down to halt immediately. | |
$ shut down-r now | Shuts the system down immediately and the system reboots. |
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
Subscribe to:
Post Comments (Atom)
EmoticonEmoticon