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:
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:
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.
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:
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:
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.
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:
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:
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: