You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
232 B

# create swap file
dd if=/dev/zero of=./swapfile bs=1GB count=40
# add permisions
chmod 600 ./swapfile
# format the swapfile
mkswap ./swapfile
# enable swap on swapfile
swapon ./swapfile
# check that it is enabled
swapon --show