Middle
How to view the usage of RAM on a server?
sobes.tech AI
Answer from AI
To view the usage of RAM on a Linux server, you can use several commands:
free -h— shows total, used, and free memory in a human-readable format.toporhtop— interactive utilities that display current CPU and memory load by processes.vmstat— provides statistics on memory, processes, and the system as a whole.
Example:
free -h
The output will show lines with information about memory: total, used, free, buffers/cache. This helps quickly assess the load on RAM.