How to add more swap on-the-fly?

C

carbon333

Guest
You can do this by executing following commands:

dd if=/dev/zero of=/swap2gb bs=1024k count=2000
mkswap /swap2gb
swapon /swap2gb
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top