SwapForge (swafo) 🔄
SwapForge is a simple yet powerful bash script for creating and managing Linux swapfiles. Whether you need to boost system performance or add swap space to your setup, SwapForge automates the process quickly and reliably.
🛠 Features
- Automated Swapfile Creation: Easily create a swapfile with a specified size.
- FSTAB Integration: Automatically updates
/etc/fstab
to ensure the swapfile is mounted at boot. - Safety Checks: Skips swapfile creation if an entry already exists.
- Simple CLI Interface: Run the script with a single command.
📥 Installation
Install SwapForge using Kevin's Package Manager under the alias swafo
:
package-manager install swafo
This command installs SwapForge globally, making it available as swafo
in your terminal. 🚀
🚀 Usage
Run SwapForge from the command line by specifying the desired swapfile size. For example, to create a 2G swapfile:
swafo 2G
The script will check if a swapfile entry already exists in /etc/fstab
. If not, it will create the swapfile, set the correct permissions, format it as swap, activate it, and append the necessary entry to /etc/fstab
.
🧑💻 Author
Developed by Kevin Veen-Birkenbach
📜 License
This project is licensed under the MIT License.
🤝 Contributions
Contributions are welcome! Feel free to fork the repository, submit pull requests, or open issues if you have suggestions or encounter any problems. Let's make Linux swap management easier together! 😊