Find Linux RAM Information Command

https://‮www‬.lautturi.com
Find Linux RAM Information Command

There are several commands that you can use to view information about the RAM (random access memory) on a Linux system. Here are a few options:

  1. free: The free command displays information about the amount of free and used memory in the system, as well as the total amount of available memory and the swap space usage. To display this information in a human-readable format, you can use the -h flag. For example:
free -h

This will display the memory usage information in a format that is easier to read, with sizes listed in kilobytes, megabytes, or gigabytes depending on the size of the value.

  1. cat /proc/meminfo: The /proc/meminfo file contains a wealth of information about the system's memory usage. You can use the cat command to view the contents of this file and see detailed information about the total amount of available memory, the amount of used and free memory, and other statistics. For example:
cat /proc/meminfo
  1. htop: The htop command is a interactive process viewer that displays a lot of useful information about the system, including the amount of used and available memory. To view this information, run htop and press the F5 key to switch to the "Meters" view. This will display a graph of the memory usage, as well as the total amount of used and available memory.

I hope this helps! Let me know if you have any other questions.

Created Time:2017-10-28 20:40:30  Author:lautturi