how to check hardware linux code example
Example 1: linux command to show memory hardware
# List RAM Memory Information
lshw -short -C memory
Example 2: linux command to show memory hardware
# cpu information
$ cat /proc/cpuinfo
# memory information
$ cat /proc/meminfo