Ver código fonte

script to add and enable swapfile

master
Ignacio Falco 4 anos atrás
pai
commit
c5c0d469a9
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7
    0
      addswap.sh

+ 7
- 0
addswap.sh Ver arquivo

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

Carregando…
Cancelar
Salvar