소스 검색

script to add and enable swapfile

master
Ignacio Falco 4 년 전
부모
커밋
c5c0d469a9
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7
    0
      addswap.sh

+ 7
- 0
addswap.sh 파일 보기

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

Loading…
취소
저장