How do I enable swap space in Linux?

How do I enable swap space in Linux?
Answer
Adding Swap Space on a Linux System
  1. Become a superuser (root) by typing: % su Password: root-password.
  2. Create a file in a selected directory to add swap space by typing: dd if=/dev/zero of=/ dir / myswapfile bs=1024 count =number_blocks_needed. …
  3. Verify that the file was created by typing: ls -l / dir / myswapfile.
 

Tìm kiếm

Back
Top