< BACK TO BLOG

swap in almalinux

Published Wed Jul 17 2024



sudo dd if=/dev/zero of=/swap count=2048 bs=1MiB

sudo chmod 600 /swap

sudo mkswap /swap

sudo swapon /swap

sudo echo "/swap swap swap sw 0 0" >> /etc/fstab





Subscribe to my Newsletter

Get the latest posts delivered right to your inbox