A Python package to add and manage swap space to a Linux system
Project description
swapsys - a linux cmd line utility to manage swap space
Description
This package provides a command-line interface to manage 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.
It also has an options of removing, increasing and decreasing the memory size.
Download & Install
pip install swapsys
sudo pip install swapsys
Note:
Please note that some operating systems might be equipped with the python3 and pip3 commands instead of python and pip.
Usage
swapsys
Note:
Make sure you provide full path of swapsys (which swapsys
to get the path) with sudo or run with root user as updating /etc/fstab requires root permission.
Screenshot
Downloading the package:
Run the utility
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 swapsys-1.0.1.tar.gz
.
File metadata
- Download URL: swapsys-1.0.1.tar.gz
- Upload date:
- Size: 16.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad0a4ade0e1ed3bb879e6ffa1c28d7e81d8ec8975e61efa7ac7b729185e518fd |
|
MD5 | 3036ee8ae9c4e5cb1bffa2291c4ac173 |
|
BLAKE2b-256 | 8be03731b9fcf9dd0285543df63c06981d44cebc1f57acdfeeaf1ae9330fbe22 |
File details
Details for the file swapsys-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: swapsys-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8ccbf9ed0879a9e1cb12181b5749a2c27767bd2ab700b6ed411badfcc10f112 |
|
MD5 | 962062375f6204e74e6361b7e886dddb |
|
BLAKE2b-256 | 1457528aed94db27a4e2178226e20434a74a68e9d73a4868b5252caa12d2eb38 |