Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
linux:linux-tutorials:swap [2023/07/30 12:12] – ↷ Page moved from linux:linux_tutorials:swap to linux:linux-tutorials:swap Zyzonix | linux:linux-tutorials:swap [2025/01/21 18:25] (current) – [Disable SWAP permanently] Zyzonix | ||
---|---|---|---|
Line 10: | Line 10: | ||
//Sourced from [[https:// | //Sourced from [[https:// | ||
+ | |||
+ | ==== Add SWAP ==== | ||
+ | **Create SWAP file:** | ||
+ | <code bash> | ||
+ | → Change 4G to the size of the swap space. | ||
+ | |||
+ | **Change permissions and format file:** | ||
+ | <code bash> | ||
+ | <code bash> | ||
+ | |||
+ | **Enable SWAP and verify:** | ||
+ | <code bash> | ||
+ | <code bash> | ||
+ | |||
+ | **Make swap permanent by adding the following line to ''/ | ||
+ | <code bash>/ | ||
+ | |||
+ | To change the swappiness look at the upper paragraph. | ||
+ | |||
+ | //Sourced from [[https:// | ||
==== Disable SWAP permanently ==== | ==== Disable SWAP permanently ==== |