Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

vmstat

Show virtual memory statistics

Syntax

vmstat [OPTION]... [DELAY [COUNT]]

Common Options

-aShow active/inactive memory
-sShow event counters
-dShow disk statistics
-SSpecify unit
-wWide output format

Common Examples

vmstat

Show memory stats

vmstat 2 5

Refresh every 2s, 5 times

vmstat -s

Show event counters

vmstat -a

Show active/inactive memory

vmstat -d

Show disk statistics

vmstat -S M

Show in MB

Related Commands

Related Tools

More Code & Dev Tools