Skip to content

Commit 47e5a7d

Browse files
authored
Create add_swap
1 parent 231ff5f commit 47e5a7d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

add_swap

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
swapon --show
2+
free -h
3+
df -h
4+
fallocate -l 2G /swapfile
5+
ls -lh /swapfile
6+
chmod 600 /swapfile
7+
ls -lh /swapfile
8+
mkswap /swapfile
9+
swapon /swapfile
10+
swapon --show
11+
free -h

0 commit comments

Comments
 (0)