Linux Command Line Basics

Linux Command Line Basics

Linux is amazing. But if you cannot adopt Linux and the command lines, you will go through a hard time overcoming the fear of Linux. However, it is not that tough!

Remember the time when you first look at the terminal. We know it was scary and your heart lifts a little higher. But when you get in and work hard for it, the operating system Linux will be on your hands! Yes, you will be a PRO if you learn it in the proper procedure.

For you, we are here with the Linux Command Line Basics so that you can understand the whole process in an easier and faster pace! Have a look!


Linux Command Line for Beginners: Easy Way Out

The Terminal

How to start your terminal is the first question that should come into your mind. If you are a user who just got into Linux and you do not understand a single thing, you have to think before getting into Linux. Before you get in, try to settle for the Linux that has a GUI interface. Yes, we recommend you go for this because this is the easiest way to know Linux from with less trouble.

Here, we are working with KDE Linux. You can settle for others but we recommend you use this. When you get in, you have to press the window key on the keyboard. Here, you will get options to search for the stuff you need. Now, you have to type the word TERMINAL on the search box that popped up. After searching TERMINAL, you will get to see an icon that is has a title called TERMINAL. This is what you are searching for a very long time. Now that you have got it, you have to click TERMINAL and it will run.

So, now that you are running this, you always need to keep in mind that there is an issue regarding the lowercase and capital letters. There are differences between the lowercase and the block letters when you are typing any sort of commands. So, before typing command, check it well that if you are typing properly or not.


Go to the terminal first. Now, all you need to do is list directory contents. For doing this, you have to go there and type ‘Is” in the terminal.

After you type this command, you will get a list of so many contents of a directory. The work of “Is/home” is to let to see all the contents stored in the home or directory of Linux. So, all you need to do is run the “Is” command and it will let you see the contents under the current directory.

If you want something else, let us tell you, you will get to choose two extra options for this command “Is.” And they are-

  • -I: By typing this, you will get to see a list of additional information. The long list of additional information is very useful. There will be information about the file size. Along with this, you will get to see information about the last modification and also the permissions.
  • -a: The work of this command is to show you a list of hidden files. If you are using any operating system, you have surely faced that there are some hidden files or sub directories. By typing this command, you will be able to see them easily.


In this Linux commands, “pwd” refers to PRINT WORKING DIRECTORY. If you type this command, it will show you the name of the current working directory. Yes, there are times when you get lost or you want to know where you are. In this case, “pwd” is the key. It can tell you where you are standing!


By typing the command “cd,” you will be able to work for changing the current directory. Yes, you can change the current directory. The “cd” stands for CHANGE DIRECTORY. If you are currently working in any specific directory names home/Iszhu and you want to change to /etc/, feel free to do it with “cd.” All you need to do is type the command cd /etc and that’s all!


If you want to delete any file or directory, type this command. If you want to delete a file in the directory named foo/txt, all you need to do is type rm ./foo.txt. If you are interested to delete directories, you have to type –r that means recursive. It will help you delete the directory named TEST along with the files and the subdirectories.


For cleaning the terminal screen, type this command. If you are already working in the terminal for a long period and you want to clean it, run the clear- command!


The command “mv” refers to MOVE. If you want to move the files or the directories somewhere else, you can type this one. Go for mv ./text/var if the current directory is “/var.” For renaming, go for “mv ./test ./foo.”


For making directory, you can use this command. If you have a directory named /home/Iszhu and you want to create a new directory under it, type “mkdir /home/Ishzu/test_dir.” Here “mkdir” is the name of the new directory.


This command helps you to copy files. If you want to change copy the file named “scst.conf” from /var<I>, you have to type cp ./scst.conf /var. Copying directory is also easy by typing “cp -r”.

su and sudo

The “su” is for SUPERUSER and “sudo” is for super SUPERPOWER. The first one allows you to have all permissions for performing administrative works. For promoting the privileges, you can use ‘sudo” as a prefix.

poweroff and reboot

The “poweroff” option helps you to shut down the system. The other command named “reboot” helps you to reset the system.


The command “man” stands for MANUAL. If you type “man Is”, the manual of commands will open. If you want to get the manual, you can type this command.


Wrap Up

We understand that learning Linux is not so easy. But if you keep practicing the basics, you will get acquainted with the commands easily.

Go through the commands we have mentioned here. There are also commands that are not described here. So, before you jump into Linux, educate yourself about the Linux command line basics.

You May Also Find Interesting: Best Wireless Travel Routers