linux – create a swap file

dd if=/dev/zero of=/10g.img bs=1000 count=0 seek=$[1000*1000*10]

mkswap /10g.img

swapon /10g.img

/10g.img swap swap defaults 0 0

Leave a Reply

Your email address will not be published. Required fields are marked *