How do I add swap space to Ubuntu?

Thê Hy

New member
How do I add swap space to Ubuntu?
Answer
Perform the steps below to add swap space on Ubuntu 18.04.
  1. Start by creating a file which will be used for swap: sudo fallocate -l 1G /swapfile. …
  2. Only the root user should be able to write and read the swap file. …
  3. Use the mkswap utility to set up a Linux swap area on the file: sudo mkswap /swapfile.
 

Tìm kiếm

Back
Top