Files
configs/swap-create.sh

15 lines
232 B
Bash

# 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