Check Linux Memory: 3 Easy Ways

To view the memory configuration of a Linux system, you can use the following command:

  1. The free command allows you to view system memory usage, including total memory, used memory, free memory, and other information. Simply run the following command:
free -m
  1. The top command allows you to view real-time system memory usage and process information. Execute the following command:
top
  1. Combine the cat command with the proc file system: it allows you to view system memory information files. Run the following command:
cat /proc/meminfo
  1. The dmidecode command allows you to view hardware information on a system, including memory configuration. You will need to install the dmidecode tool and run the following command.
sudo apt install dmidecode
sudo dmidecode -t memory

By using the command above, you can check the memory configuration of the Linux system.

bannerAds