Category: Advanced – Command Line • Est. reading time: 1 minute
You can see how much memory your server has to work with using the free command. Connect over SSH as root or a user with sudo access, then run one of these.
Human-readable (easiest to read)
The -h option picks a friendly unit for you, like MB or GB, so the numbers stay short. Adding -t prints a Total line that sums your RAM and swap.
free -h -t
In megabytes
free -m -t
In gigabytes
free -g -t
Heads-up: -g rounds down to whole gigabytes, so anything under 1 GB shows as 0. On smaller servers, use -h or -m instead.
What to look at
In the output, the available column is the number that matters. It estimates how much memory is free for new programs to use without slowing the server down.
Running your own dedicated or self-managed server? We are glad to help. Reach us at support@allydrez.com or 1-321-209-2004.