In this video we go over how to create and manage swap files on Linux.
Support the channel:
BTC - 3NzWDDH3n5PsBKqWJyAb7rvsGvJKxcAPFv
Follow me:
SecureRandom on YouTube -
[ Ссылка ]
SecureRandom on LBRY / Odysee -
[ Ссылка ]
---------------------------------------------------------------------------------------------
Get information on your swap file:
swapon --show
Create the swap file:
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
/etc/fstab setup:
/swapfile none swap sw 0 0
Change swap file priority:
/swapfile none swap sw,pri=10 0 0
sudo swapon -p 10 /swapfile
Ещё видео!