Here are a few basic Linux commands that all new users should know. Of course most of these commands have options to alter their output.

1) Print Working Directory –  This command will display the full path name

$ pwd

2) List –  This command will list content in a directory. Additionally, the -l and -a options will show you a log listing. Long listing shows the ownership and permissions of files and sub-directories. the -a option will display all files, including hidden files.

$ ls

3) Change Directory – This will allow the user to changed directories.

$ cd

4) Copy – This will allow you to create a copy of the specified file and specify where the newly made copy will be located. Additionally the -r option can be used to move things recursively, or when copying directories.

$ cp

5) Move – While similar to copy,  move will actually move a directory or file that have been specified.  Also, this command can change the name of a file that is being moved.

$ mv /filepath/file /newfilepath/newdestation

6) whoami – Who am i – Display the current user you are logged in as

$ whoami

7) mkdir – Make Directory – This will allow you to either make a directory within a specified file path.  You can also make a directory when inside the main directory.

$ mkdir

8) rm – Remove -This will remove a file and adding the -r option will remove a file recursively.

$ rm

9) rm -rf – This will recursively remove and directory or folder and all of its content.

$ rm -rf

10) df – This command is going to display how much space is being used on your system. df -h will make it easier to read.

$ df


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s