Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Cretezy/Swap
Simple swap setup script for Linux.
https://github.com/Cretezy/Swap
linux swap
Last synced: 11 days ago
JSON representation
Simple swap setup script for Linux.
- Host: GitHub
- URL: https://github.com/Cretezy/Swap
- Owner: Cretezy
- License: mit
- Created: 2014-08-11T20:18:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T16:52:53.000Z (11 months ago)
- Last Synced: 2024-08-01T19:57:48.729Z (3 months ago)
- Topics: linux, swap
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 201
- Watchers: 8
- Forks: 64
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```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
```