Created
April 9, 2018 02:39
-
-
Save zoonderkins/fc29e53726a12a6db0136601ce0a994f to your computer and use it in GitHub Desktop.
Linux create SWAP file #linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dd if=/dev/zero of=/swapfile count=2048 bs=1M | |
| chmod 600 /swapfile | |
| mkswap /swapfile | |
| swapon /swapfile | |
| echo '/swapfile none swap sw 0 0' >> /etc/fstab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment