This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
linux:general:swap [2018/08/22 11:25] – [What is Swap?] lunetikk | linux:general:swap [2018/12/20 17:40] – Discussion status changed lunetikk | ||
---|---|---|---|
Line 12: | Line 12: | ||
< | < | ||
mkswap / | mkswap / | ||
- | chown root:root /tmp/swapfile | + | chown root:root /swap/swapfile |
chmod 600 / | chmod 600 / | ||
</ | </ | ||
Add the swapfile to swap | Add the swapfile to swap | ||
< | < | ||
- | swapon /tmp/swapfile | + | swapon /swap/swapfile |
</ | </ | ||
Line 24: | Line 24: | ||
Turn off the swapfile (used swap will be moved to other swap or memory, might take a while) | Turn off the swapfile (used swap will be moved to other swap or memory, might take a while) | ||
< | < | ||
- | swapoff /swap/swap | + | swapoff /swap/swapfile |
</ | </ | ||
\\ | \\ | ||
\\ | \\ | ||
- | ~~DISCUSSION~~ | + | ~~DISCUSSION:closed~~ |