LinuxUsing SwapInstructions on creating, formatting, and enabling a swap file in Linux, including configuration for automatic activation at boot. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 # create swap file dd if=/dev/zero of=/.swap bs=1048576 count=4096 # format swap mkswap /.swap # start swap swapon /.swap # check free -h # onboot echo "/.swap swap swap defaults 0 0" >> /etc/fstab