Update ubah-ukuran-swap.MD

This commit is contained in:
mbahsomo 2026-05-08 15:31:23 +00:00
parent 48568c9c0a
commit c437190960
1 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,6 @@
cara menubah ukuran swap cara menubah ukuran swap
``` ```
swapon --show
sudo swapoff -a sudo swapoff -a
sudo rm -f /swapfile sudo rm -f /swapfile
sudo fallocate -l 8G /swapfile sudo fallocate -l 8G /swapfile
@ -16,4 +17,9 @@ sudo vim /etc/fstab
check swap check swap
``` ```
free -h free -h
```
Untuk menonaktifkan swap
```
sudo swapoff /swapfile
``` ```