11 must know Linux commands for newbies
 
21/05/2009 - 10:52 (Category: Linux/Mac Os X)

Let's see 11 basic Linux commands you must absolutely know:

1. "ls" to see the contents of your current directory. Ls -lai to see more detailed information for each file.
2. "mkdir" to create a new directory. Type mkdir myfolder to create the "myfolder" directory.
3. "cd" to move among directories. To go to the directory "another", just type: cd another.
4. "cd .." to go to the upper level directory (parent directory). Notice the space character between "cd" and ".."
5. "pwd" to "Print the Working Directory". It shows your current location.
6. "more" to see the contents of a file without scrolling it over when showing big files. To see the contents of a file called "myfile", type: more myfile. You can also use the "cat" command but the file content will scroll over with big files.
7. "mv" to move a file among directories or rename it. To move the "myfile" file into the directory called "myfolder", type the following: mv myfile myfolder. To rename myfile to "newfile", typpe: mv myfile newfile.
8. "cp" to copy one file here and there.
9. "rm" to remove files. To remove the file titled "myfile", type the folowing: rm myfile. Notice this is a permanent deletion: you won't be able to recover a removed file!
10. "rmdir" to remove directories. To remove the directory "mydir", type the following: rmdir mydir.
11. Last but not least, the "man" command. I think this is the first command you have to learn. It shows everything you want to know (really) about any Linux command. Enjoy!

Go back

DISCLAIMER:
Any named products on this website are copyright © and/or trademarks ® of their respective companies. INFORMATION ON THIS WEB SITE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. The material included in this site has been compiled from a variety of sources and the site may include technical inaccuracies or typographical errors. Information may be changed or updated without notice. While every effort is made to ensure the correctness of the information provided here, the author can accept no responsibility for damages caused directly or indirectly from the use of such information. The author will not be responsible for damage or loss of data. You are advised to backup data regularly! By entering this site you are agreeing to this and also to never suing the author.

 

Home  About  Mail us!  

Copyright © 1998-2006 Wowarea