get hardware id 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
$ cat /proc/version
Linux version 3.11.0-12-generic (buildd@allspice) (gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu7) ) #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013