Tested on unknownAuthor ShekinReading 2 minPublished by
In this article, we will look at how to get information about RAM in Linux. We will use the command line utilities available for Linux Mint and most Linux distributions.We will look at different ways to view information about available and occupied RAM. Free and used RAM You can use various utilities and commands to get information about the amount of free and used RAM in Linux. Consider a few common ways.
The free command is very simple, it displays information about the total amount of RAM, the amount of occupied and free memory, as well as the use of the swapping file. By default, the amount of memory is displayed in kilobytes. Using options, you can output the amount of memory in other formats. Some options:
-m – in megabytes -g – in gigabytes -h – automatically detect format
The vmstat command displays various statistics on memory usage. Using the -s key, you can display detailed statistics in tabular form.
top is a command-line utility that is used to monitor processes and computer resources used. The header displays information about the used RAM.
To exit the utility press the q key.
The htop utility, like top, is used to monitor resources and processes. My favorite RAM utility. To install the htop utility on Ubuntu Linux (Linux Mint and other Ubuntu/Debian distributions), run:
sudo apt install htop
The above commands, as a source of information, use system files from files stored in the virtual file system /proc. The /proc/meminfo file contains information about memory usage.
There are many graphical programs to monitor the use of computer resources. Such as I-NEX or CPU-X. May the Force be with you, Good Luck!!!
The site has moved to a new engine, help me fix bugs, send me your notify by selecting that text and pressing Ctrl+Enter.