Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Add 1 GB swap file

Code Block
dd if=/dev/zero of=/swapfile1 bs=1K count=1M
chown root:root /swapfile1
chmod 0600 /swapfile1
mkswap /swapfile1
swapon /swapfile1
echo '/swapfile1  none        swap    sw              0   0' >>/etc/fstab