Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to change swap space on ubuntu

# Disable Swap
sudo swapoff /swapfile
# Edit Swapfile to desired size, 2G, 4G etc
sudo fallocate -l 2G /swapfile
# Enable Swap again
sudo swapon /swapfile
# You can check your new swap with
sudo swapon --show
 
PREVIOUS NEXT
Tagged: #change #swap #space #ubuntu
ADD COMMENT
Topic
Name
7+7 =