dphys-swapfile

Manage the swap file on Debian-based Linux systems. More information: <https://manpages.debian.org/latest/dphys-swapfile/dphys-swapfile.html>.

Install

All systems
curl cmd.cat/dphys-swapfile.sh
Debian Debian
apt-get install dphys-swapfile
Ubuntu
apt-get install dphys-swapfile
image/svg+xml Kali Linux
apt-get install dphys-swapfile
Windows (WSL2)
sudo apt-get update sudo apt-get install dphys-swapfile
Raspbian
apt-get install dphys-swapfile

Manage the swap file on Debian-based Linux systems. More information: <https://manpages.debian.org/latest/dphys-swapfile/dphys-swapfile.html>.

  • Disable the swap file:
    dphys-swapfile swapoff
  • Enable the swap file:
    dphys-swapfile swapon
  • Create a new swap file:
    dphys-swapfile setup

© tl;dr; authors and contributors