A user is complaining that their application runs slowly. You suspect the system is swapping excessively. Which command shows the current usage of swap space?
Trap 1: fdisk -l
fdisk displays partition tables.
Trap 2: vmstat
vmstat shows virtual memory statistics, but swapon is more direct for swap status.
Trap 3: mount
mount shows mounted filesystems.
- A
fdisk -l
Why wrong: fdisk displays partition tables.
- B
vmstat
Why wrong: vmstat shows virtual memory statistics, but swapon is more direct for swap status.
- C
mount
Why wrong: mount shows mounted filesystems.
- D
swapon -s
swapon -s specifically displays swap usage statistics.