From bef0be669a0115238f6366e00db46a4c823af4a3 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 1 May 2022 20:52:45 +0200 Subject: [PATCH] shorten swapfile path --- system/swap.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/system/swap.md b/system/swap.md index fcb4170..6ff87e5 100644 --- a/system/swap.md +++ b/system/swap.md @@ -4,9 +4,7 @@ tags: [ "Documentation", "basics" ] --- # Making a Swap File -> sudo mkdir -v /var/cache/swap - -> cd /var/cache/swap +> cd /var/cache/ > sudo dd if=/dev/zero of=swapfile bs=1K count=4M @@ -25,7 +23,7 @@ Test it's working with top or: -> echo "/var/cache/swap/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab +> echo "/var/cache/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab Test it'll work at boot with: