Browse Source

script to add and enable swapfile

master
Ignacio Falco 4 years ago
parent
commit
c5c0d469a9
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      addswap.sh

+ 7
- 0
addswap.sh View File

1
+#! /bin/bash
2
+
3
+fallocate -l 3G /swapfile && \
4
+chmod 600 /swapfile && \
5
+mkswap /swapfile && \
6
+swapon /swapfile && \
7
+swapon --show

Loading…
Cancel
Save