Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Basic 50 linus command


Published on

Basic 50 linus command

  1. 1. LINUX <ul><li>INTRODUCTION: </li></ul><ul><li>Linux is an operating system.It is similar to the unix os. </li></ul><ul><li>Basic linux command: </li></ul><ul><li>Ls :- This command is used to list all the files in the current working directory . Eg :- $ls </li></ul><ul><li>Rm :- This command is used to remove the file from the directory. Eg :- $rm filename </li></ul>
  2. 2. <ul><li>3.Rmdir :- This command is used remove directory . But it should not contain any file.Then only we can remove the directory </li></ul><ul><li>eg :-$rmdir directory name </li></ul><ul><li>4.Cat :- This command is used to create a file in the directory. </li></ul><ul><li>Eg :- $cat>filename (i.e.,)used to write the content in to the file. </li></ul><ul><li>eg :- $cat file .(i.e.,) used to display the content in the file </li></ul>
  3. 3. <ul><li>5. CD :- This command is used to change the current working directory. </li></ul><ul><li>Eg :- $cd </li></ul><ul><li> :- This command is also called rename is used to move the content from the source file to the desigination file. </li></ul><ul><li>Eg :- $mv sourcefile desgination file </li></ul><ul><li>7.who :- This command is used to display the users who are currently logged on. </li></ul><ul><li>Eg :- $who </li></ul>
  4. 4. <ul><li>8.who am i :- This command is used to display the information about the user. </li></ul><ul><li>Eg:- $who am i </li></ul><ul><li> dir :- This command is used to create a new directory. </li></ul><ul><li>Eg :- $mkdir directoryname </li></ul><ul><li>10.Cp :- This command is used to copy the content of source file to the designation file. </li></ul><ul><li>Eg :-$cp source_file desgination_file </li></ul>
  5. 5. <ul><li>11.wall :- This command is used to send message to every user who are currently logged on. </li></ul><ul><li>Eg :- $wall message </li></ul><ul><li>12.bc :- Bc command is used for calculator </li></ul><ul><li>eg :- $bc </li></ul><ul><li>13.grep :- this command is used search a word or character or sentence in a file </li></ul><ul><li>Eg :- $grep word filenme </li></ul>
  6. 6. <ul><li>14.wc :- This command is used to count the number of character in a file </li></ul><ul><li>eg :- wc option filename </li></ul><ul><li>15.pwd :- this command is used to display current working directory. </li></ul><ul><li>Eg :- pwd </li></ul><ul><li>16. man:- </li></ul><ul><li>This magic command brings up the online Unix manual. Use it on each of </li></ul><ul><li>the commands below, today! Wonder what all the man command options are? </li></ul><ul><li>Try the&quot;man -k&quot; option. </li></ul>
  7. 7. <ul><li>17. more </li></ul><ul><li>This shows the contents of text files. Also you might be able to find“less” and “cat” which are similar commands. </li></ul><ul><li>18.whereis </li></ul><ul><li>Think there might be a nifty program hidden somewhere? Maybe a game youlove? This will find it for you. Similar commands are “find” and “locate.”Try them all for extra fun. </li></ul>
  8. 8. <ul><li>19. vi </li></ul><ul><li>An editing program. You’ll need it to make your own files and when you </li></ul><ul><li>start programming while in your shell account. You can use it to write a </li></ul><ul><li>lurid file for people to read when they finger you. Or try “emacs.” It’s </li></ul><ul><li>another editing program and IMHO more fun than vi. Other editing programs </li></ul><ul><li>you may find include “ed” (an ancient editing program which I have used to </li></ul><ul><li>write thousands of lines of Fortran 77 code), “ex,” “fmt,” “gmacs,” you </li></ul><ul><li>may find include “ed” (an ancient editing program which I have used to </li></ul><ul><li>write thousands of lines of Fortran 77 code), “ex,” “fmt,” “gmacs,” </li></ul><ul><li>“ gnuemacs,” and “pico.” </li></ul>
  9. 9. <ul><li>20. telnet </li></ul><ul><li>Telnet allows you to login remotely from a remote computer to a host </li></ul><ul><li>server running any unix or unix clone system. Other variation is called </li></ul><ul><li>RLOGIN/rlogin. A newer variation also allows you to login more securely </li></ul><ul><li>using the secure shell (SSH). </li></ul><ul><li>21. netstat </li></ul><ul><li>All sorts of statistics on your LAN, including all Internet connections. </li></ul><ul><li>For real fun, try “netstat -r” to see the kernel routing table. However, </li></ul><ul><li>be careful. I was teaching a friend the basics of summing up a Unix </li></ul><ul><li>system and I told her to do that and ‘ifconfig’. She was booted off the </li></ul><ul><li>system the next day for ‘hacker suspicion’ even though both are legitimate </li></ul><ul><li>commands for users.” </li></ul>
  10. 10. <ul><li>22. whois </li></ul><ul><li>Get lots of information on Internet hosts outside you LAN. </li></ul><ul><li>23. nslookup </li></ul><ul><li>Get a whole bunch more information on other Internet hosts. </li></ul><ul><li>24. dig </li></ul><ul><li>Even more info on other Internet hosts. Nslookup and dig are notredundant. Try to get a shell account that lets you use both. </li></ul>
  11. 11. <ul><li>25. finger </li></ul><ul><li>Not only can you use finger inside your LAN. It will sometimes get you </li></ul><ul><li>valuable information about users on other Internet hosts. </li></ul><ul><li> </li></ul><ul><li>Find out if a distant computer is alive and run diagnostic tests -- or </li></ul><ul><li>just plain be a meanie and clobber people with pings. (I strongly advise </li></ul><ul><li>*against* using ping to annoy or harm others.) </li></ul><ul><li>27.raceroute </li></ul><ul><li>Kind of like ping with attitude. Maps Internet connections, reveals </li></ul><ul><li>routers and boxes running firewalls. </li></ul>