Very Basic Commands for Ubuntu

Here we give a list of Basic command that can be used on Ubuntu(or linux) OS. All these command will work in “Terminal”.

To open terminal, go to “Accessories->Terminal” and type the command you want to use.

(Note that we have used a user_name “jaggib”, you would get your username in place of that).

1. man – use this command to get help pages for any command.


man command_name

Use “q” to quit the help page (or the man command).

If you want to get options that can be used with a command, man is the command that will help you on that.

2. pwd – use this command to know the present working directory(also known as folder in windows). If you open “Accessories->Terminal”, the terminal opens in “/home/user_name”.



The above command for a user named “jaggib” will give:


3. ls – use this command to get a list of files and directories that are in the present working directory.


ls [option]

Usually you will use just “ls” command as follows:


This will list all the directories in the current directory.

You can also use “ls” to get a view of file attributes for each file or directory by using:

ls -l

You can use “ls” to view hidden (or system) directories and files also using:

ls -la

4. touch – use this command to create a file in the present working directory. (It can also be used to Update  the  access  and modification time on a file).


 touch file_name

Lets assume you are in “/home/jaggib”, and you want to create a file “file.txt”. You can do that by:

touch file.txt

Use “ls” command to check the newly created file in the list.

5. mkdir – use this command to make a directory in the present working directory (i.e. current directory).


mkdir diretory_name

If you were on “/home/jaggib” and executed above command as:

mkdir test

It will create a new directory under “/home/jaggib” as “/home/jaggib/test”.

Leave a Reply

Your email address will not be published. Required fields are marked *