If you need to know the current memory usage on your Linux server, as well as the free or total memory, simply use the free command.
As with running any other Linux command, you will need to access your server via SSH.
Additional information
You can find more information about accessing your server via SSH in the article: Access Linux via SSH
Once in the server console, you can run the following command:
free -mtThis will display information about the server's RAM and SWAP memory, including the total and currently free memory, in Megabytes.
The output of this command should look similar to this image:
In these lines, you can see, in order, the total, used, and free amounts.
You can use other file size units, kilobytes, megabytes, gigabytes, and terabytes, with the following options:
free -k
free -m
free -g
free --tera