Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to find the size of swap partition in Ubuntu

📅 2013-Mar-18 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ partition, swap, ubuntu ⬩ 📚 Archive

The total amount of swap space in a Ubuntu system can be found easily from the commandline:

$ grep SwapTotal /proc/meminfo

Tried with: Ubuntu 12.04.2 LTS