Skip to content

Instantly share code, notes, and snippets.

@Feiron
Created July 15, 2025 12:52
Show Gist options
  • Select an option

  • Save Feiron/18589ee0583ab4def858bf777a42839f to your computer and use it in GitHub Desktop.

Select an option

Save Feiron/18589ee0583ab4def858bf777a42839f to your computer and use it in GitHub Desktop.
[Swap] Создание свап файла
sudo dd if=/dev/zero of=/swapfile count=4096 bs=1MiB
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
(проверить swapon -s)
/etc/fstab
/swapfile swap swap sw 0 0
(проверить mount -a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment