Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
themeMidnight
    htop 

     2. vmstat Reports virtual memory statistics.-s provides a detailed breakdown of memory usage and other related metrics since the last system boot. 

Code Block
languagebash
themeMidnight
    vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0      0  73236  21024 396016    0    0    16    32   23    9  2  1 95  0  2 -s        
       980492 K total memory
       480208 K used memory
       132040 K active memory
       582364 K inactive memory
        67924 K free memory
        21724 K buffer memory
       410636 K swap cache
            0 K total swap
            0 K used swap
            0 K free swap

     3. free -h Displays memory usage in "human-readable" format

Code Block
languagebash
themeMidnight
titleCommands
    vmstat # Reports virtual memory statistics.
    free -h # Displays memory usage.
    mpstat # Reports CPU usage.    free -h
               total        used        free      shared  buff/cache   available
Mem:           7.7G        1.9G        3.9G        487M        1.9G        5.0G
Swap:          2.0G          0B        2.0G


Div
classtitle-box

Disk Usage and Health

...