Create a Linux Swap File

Follow Us

Our Communities

Create a file that will be used for swap:

$ sudo fallocate -l 1G /swapfile soil sdkdo lkslko ijsaiu klkdslko josjiow usjwiei kokwoe jijcwij ljoijwioj lkwo jsjdij jsiaje joijwau98 joijwi jsaui jkasjiu j kjsaijiu sjaij

Set the correct permissions

Your content goes here. Edit or remove this text inline or in the module Content settings. You can also style every aspect of this content in the module Design settings and even apply custom CSS to this text in the module Advanced settings.

$ sudo chmod 600 /swapfile

Your content goes here. Edit or remove this text inline or in the module Content settings. You can also style every aspect of this content in the module Design settings and even apply custom CSS to this text in the module Advanced settings.

$ sudo chmod 600 /swapfile