Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. sudo fallocate -l 1G /swapfile
  2. sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
  3. sudo chmod 600 /swapfile
  4. sudo mkswap /swapfile
  5. sudo swapon /swapfile
  6. echo "/swapfile swap swap defaults 0 0\n" | sudo tee -a /etc/fstab
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement