How do I check free and used memory on Debian Linux system using the command line option?
Random Access Memory (RAM) is the memory in the computer that is used to store running process and data. RAM provides faster data access as compared to the disk drive. This page shows how to find out the amount of free and used memory in the Debian Linux system.
Open the terminal app or login to the remote Debian server using ssh command: ssh user@server-name-here
Type the free command to see memory in mebibytes: free -m
You can also /proc/meminfo: cat /pro/meminfo
Let us see all commands to check memory usage on Debian Linux cloud or bare metal server.
1. free command
Display the amount of memory in bytes: free -b Show the amount of memory in mebibytes: free -m Get the amount of memory in megabytes: free --mega Find the amount of memory in gibibyte: free -g Want to see the amount of memory in gigabytes? Pass --giga option as follows: free --giga Pass the -t option to get totals info about memory: free --giga -t
The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.