Linux Swap and Swapfile: Difference between revisions
From WikiMLT
mNo edit summary |
m (Spas moved page Swapfile to Linux Swap and Swapfile without leaving a redirect) |
Revision as of 17:31, 17 August 2022
Swapfile Конфигуриране
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo nano /etc/fstab
/swapfile swap swap defaults 0 0
Проверка:
sudo swapon --show
sudo free -h