Friday, 16 May 2014

7 Commands for Getting System Information in Linux

There are commands that you can use in Terminal to get your system information like disk space usage, free and used memory, information about running processes and system resources, machine and kernel information etc.

Getting system information in Linux - Terminal commands

> Open Terminal. 

df   The df command displays filesystem disk usage for all mounted portions. However, it will provide the system disk usage information in a blocks. You can use df -h to generate report in megabytes and gigabytes instead of blocks, h stands for "human readable".

 Getting System Information in Linux

du   du commands displays the disk usage for a directory. Variants are du -s, du -h, du -sh. s stands for "Summary" and h means "Human Readable".

 Getting System Information in Linux

free   It displays the amount of free and used memory in the system. free -m will give the information in megabytes.

 Getting System Information in Linux

top   top is table of processes. It displays information on your Linux system, running processes and system resources that includes CPU, RAM and swap usage. It all displays the number of tasks being run.

 Getting System Information in Linux
You may have to press "q" to exit.

uname -a   The uname command with -a option prints all system information, including machine name, kernel name and version, and a few other details.

 Getting System Information in Linux

lsb_release -a    The lsb_release command with the -a option prints version information for the Linux release you're running.

 Getting System Information in Linux

ip addr   It prints the ip address of your machine. 

 Getting System Information in Linux

These 7 commands will help you in getting basic system information in Linux. Do I miss something? Please add it in the comment section and I will update the post.

Note: I am using Linux Mint 16 Petra in Oracle VM Virtual Box 4.3.2 r90405.

0 comments:

Post a Comment