Skip to content

rbashish/add-swap-space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Python package to add swap space to a Linux system

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages