System Information in Linux

Getting about CPU and RAM in Linux

In Linux Distribution, if you went to display and went to know about hardware the information of your system then below commands will help you.

To get CPU information in Linux

$ cat /proc/cpuinfo
or
$ lscpu

To get Memory (RAM) information in Linux

$ cat /proc/meminfo

To know more about Memory (RAM) info, use free command to view.

$ free –help

OptionsCommandsDescription
–helpfree –helpfor more options
-bfree -bmemory in bytes
-mfree -mmemory in Megabyte
-gfree -gmemory in Gigabyte
-hfree -hmemory in human readable format
-lfree -lshow detailed low and high memory statistics
-tfree -tshow total for RAM + swap

Leave a Comment

Your email address will not be published. Required fields are marked *

wpChatIcon
    wpChatIcon