A Python package to add swap space to a Linux system
This package provides a command-line interface to add swap space to a Linux system.
It prompts the user for the desired swap size in GB and then adds the swap space using the dd and mkswap commands. After the swap space has been added, it updates /etc/fstab
to make the swap permanent.
pip install add-swap-space
Note:
If pip is unrecognized try pip3 instead.
sudo python3 -m add_swap_space
Note:
Make sure you have pip install under root user as updating /etc/fstab requires root permission.
Have a feedback, feature request, known bug, please report it at this issue page