A Python package to add swap space to a Linux system
Project description
add-swap-space
A Python package to add swap space to a Linux system
Description
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.
Download & Install
pip install add-swap-space
Note:
If pip is unrecognized try pip3 instead.
Usage
sudo python3 -m add_swap_space
Note:
Make sure you have pip install under root user as updating /etc/fstab requires root permission.
Screenshot
Feedback/Issue
Have a feedback, feature request, known bug, please report it at this issue page
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
add_swap_space-1.1.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for add_swap_space-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a26be9e892049051426cd54736367d0af90c6d39b36fea6c21aa9b0f878c5cd |
|
MD5 | 81fdf288acdb4c100eb6219e105a2000 |
|
BLAKE2b-256 | 2e9324c60b8f68c65431cdd2d51ed42eb851e7580ad02294e973bdadecef4f7a |