os:linux:create_swap_file
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
os:linux:create_swap_file [2023-01-27 19:00] – Manuel Frei | os:linux:create_swap_file [2024-06-26 11:58] (current) – change permissions on swap file Manuel Frei | ||
---|---|---|---|
Line 5: | Line 5: | ||
< | < | ||
fallocate -l 1G /swapfile | fallocate -l 1G /swapfile | ||
+ | chmod 0600 /swapfile | ||
mkswap /swapfile | mkswap /swapfile | ||
swapon /swapfile | swapon /swapfile |
os/linux/create_swap_file.1674842449.txt.gz · Last modified: 2023-01-27 19:00 by Manuel Frei