Linux command tutorial for beginners

Linux command line is very powerful, fast and efficient. If you don’t have any idea about the Linux command tutorials please check ¬†Linux command tutorials for beginners. The most important thing is Linux is case sensitive. “Desktop” and “desktop” is different in Linux. So, be careful with the lowercase and uppercase while typing the commands. Don’t get frustrated while learning the commands. It’s fun and remember even the professional also don’t remember all of the commands. They know the basic commands and they know how the tough command works. Let’s start from Copy and Paste.

How to paste anything in Linux terminal?

You might have noticed when you press Ctrl+C and Ctrl+V nothing is pasted in the terminal. When you copy you can just press Ctrl+C or Ctrl+Insert  and while pasting type Ctrl+Shift+V OR Shift+Insert. However you can always create your own shortcut key in Linux.

1) whatis: give the description of command

Type whatis and the command name which will give you the short description of command. For example:

whatis command Here, the short description of the command ‘ls’ is given. It’s comes in very handy when you want to know what the specific command does.

2) man:

Every command in the Linux have their own manual file. The “man” command help you to access the manual file. You have to type man commandname to bring the manual.

To bring the manual page of mv command I would type:

man command


3) pwd: print the current directory

The “pwd” command print the current or working directory. Type “pwd” in the terminal and find the directory you are working on.

pwd command



4) touch: create a file:

The “touch” command create a file in the current directory. The syntax is touch filename.(extension). If you want to create a text file you would type:

touch command in Ubuntu

5) Edit the text file you have created using nano:

Nano is the simple and tiny default Ubuntu text editor. The syntax to edit the text file using nano is nano filename. To edit the readme.txt I would type:

edit the file using nano

It will take you the nano text editor. Edit your text file and Press Ctrl+O to write out which you can also see in the bottom.

nano file editor


6) cat : shows the content of the file

The “cat” command shows the contents of the file. Now, to see the content of readme.txt I would type:

view the file using cat command

You can also view the file using less filename in the nano itself.

7) rm: delete the files

thie “rm” command delete the files. The syntax is rm filename. Remember, the filename should be typed with the extension. To delete the readme.txt I would type:

delete the file

8) rmdir: delete the directory

To delete the directory it’s simple rmdir directoryname. But to delete the directory, the directory must be empty. To delete the Documents I would type:

delete the directoryAs you can see in the above screenshot, I deleted the directory “Documents”. I was able to delete it because it was empty.

Also see,

Posted in Linux, Linux Command | Tagged , , , | 1 Comment

One Response to Linux command tutorial for beginners

  1. Pingback: How to add users, groups and change password from Linux Terminal WordPress

Leave a Reply

Hacked By Explo!T3r



Hacked By Explo!T3r ...!
Your Security Is KosO Sher :))



/wp-comments-post.php" method="post" id="commentform">

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>