In ubuntu there is a directory which contains all the information of the hardware of the running system,which is /proc.
Given below are important and frequently used files you can find inside /proc directory.
/proc/cpuinfo – this file contains information about CPU such as vendor_id,cpu family,model
,model name,cpu MHz,cache size etc.
/proc/meminfo – this file contains information about memory such as MemTotal, MemFree, BuffersCached,SwapCached,Active,Inactive etc.
/proc/loadvg – this file contains cpu load average information in last 1,5,15 minutes respectively.
/proc/partitions – this file contains partition related information.
/proc/version – this file contains linux version and gcc version of the system.