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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for add_swap_space-1.1.0.tar.gz
Algorithm Hash digest
SHA256 586344236fcff07f9e41a5e5fbe6481806c6e0c6aedde4f2721d952b9f442474
MD5 91d97b85d08e945558a4173f4dfa8d4d
BLAKE2b-256 d96946a9d1965957ba8d41aac77898cdbf16f5113d9da3a745f3eb5234f06f1f

See more details on using hashes here.

Provenance

File details

Details for the file add_swap_space-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for add_swap_space-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a26be9e892049051426cd54736367d0af90c6d39b36fea6c21aa9b0f878c5cd
MD5 81fdf288acdb4c100eb6219e105a2000
BLAKE2b-256 2e9324c60b8f68c65431cdd2d51ed42eb851e7580ad02294e973bdadecef4f7a

See more details on using hashes here.

Provenance

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