swapon
Enables device or file for swapping. More information: <https://manned.org/swapon>.
Install
- All systems
-
curl cmd.cat/swapon.sh
- Debian
-
apt-get install mount
- Ubuntu
-
apt-get install mount
-
Alpine
-
apk add util-linux
- Arch Linux
-
pacman -S util-linux
- Kali Linux
-
apt-get install mount
- CentOS
-
yum install util-linux
- Fedora
-
dnf install util-linux
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install mount
- OS X
-
brew install util-linux
- Raspbian
-
apt-get install loop-aes-utils
- Dockerfile
- dockerfile.run/swapon
- Docker
-
docker run cmd.cat/swapon swapon
powered by Commando
Enables device or file for swapping. More information: <https://manned.org/swapon>.
-
Get swap information:
swapon -s
-
Enable a given swap partition:
swapon /dev/sdb7
-
Enable a given swap file:
swapon path/to/file
-
Enable all swap areas:
swapon -a
-
Enable swap by label of a device or file:
swapon -L swap1
© tl;dr; authors and contributors