How to add a file based swap to Linux?

I have a CentOS 7 based VM in the cloud. All disks space are mounted to /. I do not want to have another disk. How to add a file based swap to Linux by making use of the mounted space under /?

asked Aug 17 by anonymous

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...