swapsys

A Python package to add and manage swap space to a Linux system


Keywords
swap, add, space, linux, memory, swap-space, virtual-memory
License
MIT
Install
pip install swapsys==0.1.0

Documentation

swapsys - a linux cmd line utility program to manage swap space

A Python package to add swap space to a Linux system

GitHub language count PyPI - Python Version PyPI - Wheel

GitHub issues PyPI - License PyPI - Downloads

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 swapsys

Note: If pip is unrecognized try pip3 instead.

Usage

sudo python3 -m swapsys

Note: Make sure you have pip install under root user as updating /etc/fstab requires root permission.

Screenshot

pypi-add-swap-space.png

Feedback/Issue

Have a feedback, feature request, known bug, please report it at this issue page