Skip to content

Instantly share code, notes, and snippets.

@doituikhovai
Last active March 15, 2022 04:34
Show Gist options
  • Save doituikhovai/53bfb8741de57d0cf4d12bfed2c0ebd2 to your computer and use it in GitHub Desktop.
Save doituikhovai/53bfb8741de57d0cf4d12bfed2c0ebd2 to your computer and use it in GitHub Desktop.
extend swap
sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1G count={number size: example: 8}
sudo mkswap /swapfile
sudo swapon /swapfile
grep SwapTotal /proc/meminfo
// Exp: https://linuxize.com/post/how-to-add-swap-space-on-debian-10/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment