Check Your Available RAM In Linux

In this post I will show you 3 quick and easy ways to check your RAM in Linux. These methods should all work regardless of which distribution you are using.

Free Command

This is the most commonly used command for checking how much available memory you currently have. You can modify the output to show kilobytes, megabytes, and gigabytes. The free command does round when using gigabytes so I would recommend using -m to get a more realistic answer. If you are running a lowend VPS/droplet like I am then -g will say you have no RAM.

Linux Free Command

Top Command

Top is useful for more than just checking memory. You can use the command top to see a list of running processes, CPU/MEM usage, and as-well as sort your processes. To see more information about your RAM usage use the following command and then press M, you can press it again as-well for a graphical representation and again to return back to normal. To exit top you will press CTRL+C.

Top Command Linux

Checking /proc/meminfo

Last but not least, you can get the information straight from the horses mouth by looking at /proc/meminfo. This will give you way more information than the other commands above and is probably overkill depending on what you are trying to accomplish.

Checking /proc/meminfo

Thanks for reading, I hope this post has helped you. Please don’t forget to like/share/comment! =)

Leave a Reply

Your email address will not be published. Required fields are marked *