Linux Admin Commands II
In this segment, we let’s continue our discussion on the system admin commands that are used in Linux. Next, we will perform some interesting operations on integers like addition, subtraction, etc. along with getting an overview of the process status and memory usage of the system.
- wc: It is used to find out the number of lines, number of words, and character count in a file which is passed as an argument to the command.
- history: It gives us the list of all the previous commands that are used in the terminal session.
- df: It is the short form of Disk Free. It is used to show the amount of disk space that is available on file systems. It tells you about the total space and the available space on file systems.
- du: It is the short form of Disk Usage. It is used to find out the disk space occupied by a file or a directory.
- ps: It stands for Process Status. It tells you about all the processes that are currently running on the system along with their process IDs (PID).
- w: It is used to display who all are currently logged in on the system and their activities (their processes).
- top: It is used to display all the currently running processes along with the resources that all the processes are using in the system. It refreshes itself and displays the information until it is stopped.
- expr: It is used to perform operations like addition, subtraction, modulus (on integers), multiplication and division on the given set of expressions and then prints the output.