To check the amount of RAM installed on your Ubuntu Linux system, you can use the free command. Here’s how:
- Open a terminal window by pressing
Ctrl+Alt+Ton your keyboard. - Type the following command and press Enter:
free -h
The
-hoption will display the output in a human-readable format, making it easier to read.You should see output similar to the following:
total used free shared buff/cache available
Mem: 7.7G 1.5G 5.5G 147M 677M 5.7G
Swap: 2.0G 0B 2.0G
The
Memline shows the total amount of RAM installed on the system (in this case, 7.7 gigabytes).
Alternatively, you can also use the top command to check the amount of RAM installed on your system. Here’s how:
- Open a terminal window by pressing
Ctrl+Alt+Ton your keyboard. - Type the following command and press Enter:
top
This will launch the
topcommand, which displays a real-time view of the system’s processes, memory usage, and other system information. - Look for the line that starts with
KiB Mem. This line displays the total amount of memory installed on the system, as well as the amount of memory that is currently in use.For example:
KiB Mem : 8062784 total, 2724228 free, 4277048 used, 1062508 buff/cache
In this example, the system has a total of 8,062,784 kilobytes (or approximately 8 gigabytes) of memory installed.