How can I check the size of the swap space in CentOS?
To check the size of the swap in a CentOS system, you can use the following command:
- Display information about available disk space in human-readable format
free -h
- Display information about swap usage.
cat /proc/swaps
- display current swap usage
swapon --show
You can use any of the three commands above to check the size of the swap, just choose one.