Basic Commands of Linux Every User Should Know.

Let’s learn about the “Basic Commands of Linux that every User should know”. Linux is the most popular Unix based operating system.

Linux first kernel was released on 17th September 1991 by Linus Torvalds. It’s an open-source operating system and written in C language.

So let’s learn about the Basic commands of Linux before we should know about the command line terminal (CLI).

You can access the terminal by right-clicking anywhere in Linux. Will learn 10 Basic Commands of Linux.


1. pwd Command

pwd command is for the Present Working Directory, which gets the current directory in which you are in, or we can say it will show the absolute path.

$ pwd

output:
/home/tastethelinux

So means that we are in /home/tastethelinux directory, let’s move next “command cd”


2. cd Command

The cd command is used to change the directory now suppose you have to go to another directory then use the cd command via Terminal.

Now let’s suppose you are in /home/tastethelinux directory and want to go in the Documents folder then use cd Documents, and press enter.

$ cd Documents

output:
tla@tla:~/Documents$

If you want to check whether you are in the correct directory then use the pwd command. want to learn more about cd command follow the link.


3. mkdir Command

So if we want to create a directory or folder in Linux then use mkdir command to create.

Suppose you have to create a TLA directory in Linux, then use “mkdir TLA”

$ mkdir TLA

4. ls Command

ls command used to list the files and folders other options can be used with the ls command.

$ ls

output:
exam  output.txt  linuxfile  practice  tastethelinux

If you want to learn more about the ls command then follow the link. Now let’s move to next basic commands of Linux.


5. mv Command

mv command is used to move the file and folder into different directories.

Also, we can rename the file and folder with the help of the mv command.

Basic Commands of Linux Every User Should Know.
mv command
$ mv linux_file tastethelinux

So we have moved the linux_file into the tastethelinux directory. To learn more about the mv command follow the link.


6. cp Command

cp command is used to make the copy of the file and move it to another directory.

Also, it is used to copy the content from one file to another file. Want to learn more about the cp command then follow the link.

cp command
$ cp single_file tastethelinux/ 

So on the above command, we have to copy the single_file into the tastethelinux directory.


7. rm Command

The rm command is to remove the file and folder permanently, So please use it carefully.

So it is the most dangerous command in Linux.

rm command
$ rm file3

So with the help of the rm command, has deleted file3 file, want to learn the rm command follow the link.


8. top Command

The top command is to check the process, usage and load average. We can check the CPU utilization, Memory utilization of the process and for the overall system.

TOP Basic commands of Linux
top command
$ top

9. head Command

So the head command is used to print the first ten lines of the file is to check the logs want to learn more about the head command follow the link.

Basic commands of Linux
head command
$ head tastethelinux_file

10. tail Command

It is the opposite of the head command, it will show the last ten lines of the file. Follow the link for more details about the tail command.

Basic commands of Linux
tail command
$ tail linux_file

Thanks for reading the POST. Follow the link to learn more Basic commands.

Give your valuable time