Hendra Nicholas I am a software engineer, consultant and CEO at 41studio currently living in West Java, Indonesia. My interests range from programming to sport. I am also interested in entrepreneurship, technology, and design.

Increase swap space on linux ubuntu

6 sec read

Increase swap space on linux ubuntu

Follow this steps to increase swap space on linux ubuntu :

  1. $ sudo swapoff /swapfile
  2. $ sudo fallocate -l 4G /swapfile
  3. $ chmod 600 /swapfile
  4. $ sudo mkswap /swapfile
  5. $ sudo swapon /swapfile
  6. $ sudo swapon -s
Hendra Nicholas I am a software engineer, consultant and CEO at 41studio currently living in West Java, Indonesia. My interests range from programming to sport. I am also interested in entrepreneurship, technology, and design.