The swap usage on a system needs to be checked. Which TWO commands can be used to
display a swap usage summary?
A.
swapconfig
B.
cat /proc/swaps
C.
swapon -s
D.
swapshow
E.
cat /etc/fstab
Explanation:
From the man pages:
swapon, swapoff – enable/disable devices and files for paging and swapping
-s, –summary Display swap usage summary by device. Equivalent to “cat /proc/swaps”.
/proc/swaps provides a snapshot of every swap file name, the type of swap space, the total size,
and the amount of space in use (in kilobytes). The priority column is useful when multiple swap
files are in use. The lower the priority, the more likely the swap file is to be used.