SkillAgentSearch skills...

Swap

Simple swap setup script for Linux.

Install / Use

/learn @Cretezy/Swap
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Swap

Simple swap setup script for Linux

Swap is an area on a hard drive that has been designated as a place where the operating system can temporarily store data that it can no longer hold in RAM.

Disclamer: This script may not work on every GNU/Linux distro. Sorry.

Usage

First of all, download the main script using wget or curl:

wget https://raw.githubusercontent.com/Cretezy/Swap/master/swap.sh -O swap
# or using curl:
# curl https://raw.githubusercontent.com/Cretezy/Swap/master/swap.sh -o swap

Then simply run the file with this format:

sh swap <size>

Example (with 4G):

sh swap 4G

The default path for the swap file is /swapfile. If you wish to change this, simple the file location (file must not exist) add it to the command:

sh swap 4G /swap
View on GitHub
GitHub Stars223
CategoryDevelopment
Updated6d ago
Forks65

Languages

Shell

Security Score

100/100

Audited on Mar 26, 2026

No findings