Published: 24 Nov 2018 › Updated: 24 Nov 2018
Ubuntu Swap
Check configured swap:
sudo swapon --show
NAME TYPE SIZE USED PRIO
/swap-128 file 128G 127.9G -2
/dev/md0 partition 32G 32G -1
Create a swap file:
sudo fallocate -l 64G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
Resources
Leave Ubuntu Swap to:
Read more #ubuntu posts
Best Posts From gists
We have not curated any of gists's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.