From 436d34c01a2416e7fb25c16fd05d6bc69dc0d822 Mon Sep 17 00:00:00 2001 From: bmen Date: Mon, 23 Sep 2019 07:45:12 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fe9b40d..6ff0cfb 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,26 @@ # server-befehle -## Wichtige Befehle -Festplattenverbrauch ermitteln: +## Festplattenverbrauch ermitteln: ``` df -h ``` +### du (Disk Usage) +``` +du /home/ +``` +https://www.tecmint.com/check-linux-disk-usage-of-files-and-directories/ +### ncdu (CLI-based) +``` +sudo apt install ncdu +ncdu +``` + +## rsync Rsync ohne Rechteübernahme (gut für gemountete Laufwerke SAMBA) ``` sudo rsync -rltv --exclude '/storage/tzm_de/var/lib/nextcloud/*' /storage/ /mnt/backup-storage/ ``` - ## Gute Quellen * Bash-Skripte: https://wiki.ubuntuusers.de/Shell/Bash-Skripting-Guide_für_Anfänger/ * Cronjobs: https://www.stetic.com/developer/cronjob-linux-tutorial-und-crontab-syntax.html \ No newline at end of file