Linux Command Directory
This directory of Linux commands is from Linux in a Nutshell, 5th Edition.
Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
vmstat [options] [interval [count] ]
System administration command. Print report on virtual memory statistics, including information on processes, memory, paging block I/O, traps, system and CPU usage. vmstat initially reports average values since the last system reboot. If given a sampling period interval in seconds, it prints additional statistics for each interval. If specified, vmstat exits when it has completed count reports. Otherwise, it continues until it receives a Ctrl-C, printing a new header line each time it fills the screen.
Display active and inactive memory.
Display disk statistics.
Display the number of forks since the system was booted.
Display the names and sizes of various kernel objects stored in a cache known as the slab layer. Also see the slabtop command.
Don't print new header lines when the screen is full.
Display detailed statistics for the specified partition.
Display various even counters and memory statistics.
Switch the output units. Possible values are k, K, m or M.
Print version number, then exit.
VM mode fields
Processes waiting for runtime.
Uninterruptible sleeping processes.
Virtual memory used, in kilobytes.
Idle memory, in kilobytes.
Memory used as buffers, in kilobytes.
Cache memory, in kilobytes.
Inactive memory, in kilobytes, displayed with -a.
Active memory, in kilobytes; displayed with -a.
Memory swapped in from disk each second, in kilobytes.
Memory swapped out to disk each second, in kilobytes.
Blocks sent to block devices each second.
Blocks received from block devices each second.
Interrupts per second, including clock interrupts.
Context switches per second.
Percentage of CPU time consumed by user processes.
Percentage of CPU time consumed by system processes.
Percentage of CPU time spent idle.
Percentage of CPU time spent waiting for I/O.
Disk mode fields
Total reads or writes completed successfully.
Reads or writes grouped into one I/O.
Sectors read or written successfully.
Milliseconds spent reading or writing.
I/O in progress
Seconds spent doing I/O.
Disk partition mode fields
Total reads issued to this partition.
Total sectors read for this partition.
Total writes issued to this partition.
Total write requests for this partition.
Slab mode fields
Number of currently active objects.
Total number of available objects.
Size of each object.
Number of pages with at least one active object.
Total number of allocated pages.
Number of pages per slab.