Advertisement
Guest User

update swap file in Ubuntu to 4GB

a guest
Aug 21st, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. # update swap file in Ubuntu to 4GB
  2. sudo swapoff -a && sudo dd if=/dev/zero of=/swapfile bs=500M count=8 && sudo mkswap /swapfile && sudo swapon /swapfile -a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement