Skip to main content

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

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 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

pypi-add-swap-space.png

Feedback/Issue

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

Project details


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)

Uploaded Source

Built Distribution

add_swap_space-1.1.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page