↓ Ir para o conteúdo principal

← todas as notas

📎 Webclip

5 commands to check memory usage on Linux

The page collects terminal commands for checking memory usage on Linux when a GUI is unavailable. It focuses on RAM and swap, and shows that these commands can help confirm total, used, free, cached, and buffer memory on a system.

Reading notes
#

  • free is presented as the simplest command for checking memory usage, with its output explained in terms of total RAM, used RAM, free memory, buffers, cached memory, and swap.
  • /proc/meminfo is described as a virtual file that exposes kernel and system information, and the page points to MemTotal, MemFree, Buffers, Cached, SwapTotal, and SwapFree as the key values.
  • vmstat -s is shown as another way to display memory statistics, including total memory, used memory, active memory, inactive memory, free memory, buffer memory, and swap.
  • top is described as a command for per-process CPU and memory use that also reports total RAM and swap in its header.
  • htop is described as similar to top, with the header showing CPU, RAM, and swap usage.
  • dmidecode -t 17 is used to retrieve installed RAM hardware information, including size, type, and speed.
  • The page ends by contrasting terminal tools with GUI tools such as gnome-system-monitor and ksysguard, which provide graphical resource usage views.