Parcourir la source

script to add and enable swapfile

master
Ignacio Falco il y a 4 ans
Parent
révision
c5c0d469a9
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 7
    0
      addswap.sh

+ 7
- 0
addswap.sh Voir le fichier

@@ -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

Chargement…
Annuler
Enregistrer