Do you want to check the memory usage and information of your Linux computer? This guide includes numerous ways to accomplish that.
Option 1: Check Memory Through the System Monitor
One way to check the memory on your Linux PC is through the system monitor application in the GUI. In order to achieve that, follow the procedures as well as the screenshot images below.
- Click the Show applications icon on the taskbar.
- Then, type “system monitor” (without the quotes) in the search field and select the System Monitor app from the search result.
- When the System Monitor app opens, switch to the Resources tab.
- In the Resources tab, you will find real-time information and usage about the memory of your Linux computer under Memory and Swap.
Option 2: Check Memory via the Terminal
You can also check memory information on your Linux computer by running certain commands in the terminal. Moreover, there are various commands to view memory information in the Linux terminal.
Well, you will learn how to use these commands in the sub-sections below. However, before that, you first need to learn how to open the terminal in Linux.
To open the terminal in Linux, right-click any free area on your desktop and select Open in Terminal from the displayed options. Alternatively, use the Ctrl + Alt + T keyboard shortcut to launch the terminal in Linux.
After successfully opening the terminal in Linux, use the commands in the sub-sections below to view the memory information.
Method 1: Check Memory Using the Top Command
The top command tool gives a summary of all processes running on your Linux computer, including real-time memory information and usage. To use this tool, execute the subsequent command below in your Linux terminal – you will see the memory information opposite MiB Mem.
top
Method 2: Check Memory Using the Free Command
The free command tool is another tool you can use to check the real-time memory information of your Linux computer through the terminal. To achieve that, execute the command below – you will find the memory information opposite Mem.
free
Method 3: Check Memory Using the Htop Command
You can also check the memory information of your Linux computer through the terminal using the htop command tool. This command tool provides an easier-to-read environment and memory information in real-time.
To use this tool, input the command below and press the enter key on your keyboard.
htop
In some cases, when you run the aforementioned htop command, you might get an error saying the command cannot be found. That’s because the tool doesn’t come with your Linux distribution by default.
However, follow the procedures below to install the htop command tool on your Linux computer.
- Input the command below on your Linux terminal and press the enter key. Consequently, you will be prompted to input your system password – do that and press the enter key.
sudo apt-get install htop
- After doing that, Linux will start to install the htop command tool.
Method 4: Check Memory Using the Proc/meminfo Command
Pretty much all the aforementioned command line tools get their memory report from the proc/meminfo file. Hence, you can simply go through the main source (proc/meminfo file) to get the real-time memory information/usage of your Linux computer.
To access the proc/meminfo file, run the following command in your Linux terminal and press the enter key.
cat /proc/meminfo
Frequently Asked Questions
To run the Linux operating system smoothly, you need a minimum of 2 GB RAM.
Yes, the Ubuntu operating system uses less memory than the Windows 11 operating system.
Ubuntu is an old African word that means “humanity to others.”
The keyboard shortcut to open the terminal in Linux is Ctrl + Alt + T.
Yes, the Linux OS is a free and open-source operating system.
Conclusion
Memory is one of the most crucial components of a computer. Gladly, this guide demonstrated various methods to check the memory information and real-time usage of a Linux computer.
To give more details, this guide taught us how to perform this task through the system monitor application in the Linux GUI. We also learned how to perform this task by running various command lines in the Linux terminal.
I hope you were able to check the memory information of your Linux computer with the help of this guide. If you were, click on “Yes” beside the “Was this page helpful” question below.
You may also express your thoughts and opinions by using the “Leave a Comment” form at the bottom of this page.
Finally, you can visit our Linux how-to page to get more Linux guides.