shorten swapfile path

This commit is contained in:
Malin Freeborn 2022-05-01 20:52:45 +02:00
parent 8ba582fa7a
commit bef0be669a
Signed by: andonome
GPG Key ID: 52295D2377F4D70F
1 changed files with 2 additions and 4 deletions

View File

@ -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: