Linux/Swap

From Wiki
< Linux
Revision as of 22:40, 19 November 2023 by Marcluer (talk | contribs)

Status

sudo swapon --show
free -m

Create swapfile

sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile