centos show hardware info code example

Example 1: linux command to show memory hardware

# display information about the processor/cpu
$ sudo dmidecode -t processor
# memory/ram information
$ sudo dmidecode -t memory
# bios details
$ sudo dmidecode -t bios

Example 2: linux command to show memory hardware

$ pydf
Filesystem Size Used Avail Use%          Mounted on
/dev/sda6   96G  23G   68G 24.4 [#.....] /
/dev/sda8  195G 138G   47G 70.6 [####..] /media/13f35f59-f023-4d98-b06f-9dfaebefd6c1
/dev/sda5   98G  28G   69G 29.2 [##....] /media/4668484A68483B47