Skip to content

Commit 0e71f07

Browse files
authored
Add script to expand swap file size
1 parent 6b1cdb3 commit 0e71f07

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Linux/ExpandSwapFile.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sudo swapoff /swapfile
2+
sudo fallocate -l 2G /swapfile
3+
sudo mkswap /swapfile
4+
sudo swapon /swapfile
5+
free -h

0 commit comments

Comments
 (0)