View system information with /proc/cpuinfo and /proc/meminfo

0

There are 2 files available on a Linux system which will give a user a wealth of information about a system. These files, /proc/cpuinfo and /proc/meminfo are written by the Linux kernel and tell you important details about your cpu and memory.

Both files are read-only and can be viewed with any text editor. This information may be overkill for most users but there are a variety of important fields to look for.

The cpuinfo file provides important stats including model name, cpu cores, cpu MHz, cache size, and flags which show what instruction sets are available on the processor. Systems with multiple processors or multiple cores will have separate entries for each.

Here for example is the output of my /proc/cpuinfo file:

The important fields to look for in the meminfo file include MemTotal, MemFree, and SwapTotal.

The output of the /proc/meminfo file :

Share.