|
|
|
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: |
|