Pages

Friday, May 3, 2024

Resizing Swap Size Ubuntu 23


```
# Check current swap size
cat /proc/swaps
sudo swapoff -a
# Create new swap file
sudo fallocate -l 16G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
# Check again
cat /proc/swaps

```

No comments:

Post a Comment