From d184261ab04b32437d93e8975e299c2d2a601670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20=C4=B0lhan?= Date: Sat, 12 Jan 2019 21:36:17 +0300 Subject: [PATCH] Adds disk space commands to linux. --- linux.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/linux.md b/linux.md index 3bb925b7c..23b9f7b36 100644 --- a/linux.md +++ b/linux.md @@ -11,3 +11,19 @@ title: Linux sudo visudo username ALL=(ALL) NOPASSWD:/sbin/restart whatever + +### Display the amount of available disk space + + $ df + +All File System: + + $ df -a + +Human Readable Format: + + $ df -h + +Largest 10 folder/file in the current directory: + + $ du -hsx * | sort -rh | head -10