sudo swapon --show

Category: VPS Management

sudo swapon --show

Show active swap spaces — file, type, size, and used amount

Confirms that swap is active and shows how much is in use. If this returns nothing, swap is not configured. Compare with 'free -h' which shows the same info differently.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.