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
Built Distribution
File details
Details for the file add_swap_space-1.1.0.tar.gz
.
File metadata
- Download URL: add_swap_space-1.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 586344236fcff07f9e41a5e5fbe6481806c6e0c6aedde4f2721d952b9f442474 |
|
MD5 | 91d97b85d08e945558a4173f4dfa8d4d |
|
BLAKE2b-256 | d96946a9d1965957ba8d41aac77898cdbf16f5113d9da3a745f3eb5234f06f1f |
Provenance
File details
Details for the file add_swap_space-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: add_swap_space-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a26be9e892049051426cd54736367d0af90c6d39b36fea6c21aa9b0f878c5cd |
|
MD5 | 81fdf288acdb4c100eb6219e105a2000 |
|
BLAKE2b-256 | 2e9324c60b8f68c65431cdd2d51ed42eb851e7580ad02294e973bdadecef4f7a |