Linux Shell commands

Tutorials Shared by the Internet Community


  Top Tutorials     New Tutorials     Submit     Login     Register  

Linux Shell commands

Learn about the basic commands available under the Linux shell.
  • Total Hits: 16039

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating


  • Total Votes: 148 votes

  • Category: Linux/Basic Concepts

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

  • Submitted By: Devesh Khanna

  • Set as Favorite


When opening a shell, your will be logged in with your active account to your home directory (this is usually in /home/user_name).

Note that every command has lots of options available. To see all the manual pages for the specific command, simply type "man ". It is important to understand that under Linux operating systems, commands are case-sensitive. This means that "A" is different from "a".

To go through the file system, use:

- pwd - Prints out on the screen the working directory (eg /etc/ssh)
- cd - changes directory (eg cd .. - goes up one dir; cd etc - enters /etc dir)
- ls - lists the content of the directory
- mkdir - creates a new directory (mkdir dir_name)
- touch - creates a new file (touch file_name)
- rmdir - removes a directory (rmdir dir_name)
- cp - copies a file/directory (cp source_file destination_file)
- mv - moves a file/directory - also used for renaming a file or directory (mv old_location new_location or mv old_name new_name)
- rm - removes files (rm file_name)    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 37.84%  56
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.14%  15
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 11.49%  17
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 12.16%  18
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.38%  42

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.