Spread the love

In this article, we will show you a few commands that every Linux administrator should know and use to make their lives easier.

Many people think that the graphical environment is the easiest way to use Linux, but this is not the case. The easiest way is to work with the terminal and now we will show you some of the most pleasant commands that you can use every day.

01 – LS – LARTH

Ls is used to list information abbot the files in the current directory you are in to. It’s one of the most used commands in Linux but for a normal human to read the output we need to add a few parameters so here comes the -larth. So what is LARTH? L stands for showing information about symbolic links, the A is to not ignore entries starting with a dot (.), the R is to list all subdirectories recursively, the T is to sort by modification time, a.k. newest are fist and finally the H which is for human readable information like bytes are converted to kilobytes , megabytes or gigabits.

ls -larth

02 – DU -SH

Du is a very useful command it summarizes the disk usage of the files in the selected directory, a.k it tells you how much space a folder is using. The SH arguments are as follow S for to display the total size and the H is for human readable information a.k bytes, kilobytes, megabytes, gigabytes…

du -sh

03 – RM -RF

The most common command for removing files and folders in Linux. For most people it doesn’t even need a introduction, you can see this command on peoples shirts while walking in towns it is that popular. So rm is for remove but what are the arguments r and f? R stands for removing directories and their contents recursively and the F is force a.k ignore all errors and delete everything.

04 – DF -H

The df command is used to display information about total space and available space on the file system. It gives us useful information like where the file system is mounted the size, how much is used and how much is available. The H argument here is an easy guess , it’s for human readable information like the size in gigabytes.

df -h

05 – HISTORY -C

History command keeps a list of all the other commands that have been run from that terminal session, then allows you to replay or reuse those commands instead of retyping them. But the C argument here is very interesting it CLEARS all the history so when you type history it will be empty it’s like clearing your traces! 🙂

Conclusion

The Internet is full of sites showing you all sorts of commands, here we have tried to show you some of the most useful to serve you in everyday life.

Facebook Comments Box