Linux Shell commands

Tutorials Shared by the Internet Community


Linux Shell commands

Learn about the basic commands available under the Linux shell.


  • Total Hits - 35109

  • Total Votes - 107 votes

  • Vote Up - 43 votes

  • Vote Down - 64 votes

  • Domain -

  • Category - Linux/Basic Concepts

  • Submitted By - Devesh Khanna

  • Submitted on - 2008-04-25 12:51:02


When opening a shell, your will be logged in with your active account to your home directory (this is usually in /home/user_name).<br /><br />Note that every command has lots of options available. To see all the manual pages for the specific command, simply type "man <command>". It is important to understand that under Linux operating systems, commands are case-sensitive. This means that "A" is different from "a".<br /><br />To go through the file system, use:<br /><br /> <br /><br />- pwd - Prints out on the screen the working directory (eg /etc/ssh)<br />- cd - changes directory (eg cd .. - goes up one dir; cd etc - enters /etc dir)<br />- ls - lists the content of the directory<br />- mkdir - creates a new directory (mkdir dir_name)<br />- touch - creates a new file (touch file_name)<br />- rmdir - removes a directory (rmdir dir_name)<br />- cp - copies a file/directory (cp source_file destination_file)<br />- mv - moves a file/directory - also used for renaming a file or directory (mv old_location new_location or mv old_name new_name)<br />- rm - removes files (rm file_name)    More detail...

Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down