In this video, I show you how to create a swap file on Ubuntu/Linux Mint.
How To Create A Swap File
Stat swap:
sudo swapon -s
free -m
Turn swap off:
sudo swapoff -av
Create new swap file:
sudo fallocate -l 4G /.swapfile
Secure the swap file:
sudo chmod 600 /.swapfile
Verify the swap file:
ls -lh /.swapfile
Format the swap sapce:
sudo mkswap /.swapfile
Turn swap on with new swap file:
sudo swapon /.swapfile
Verify that the system is using the new swap file:
آی-ویدئو