diff --git a/linux.md b/linux.md index 82cd89acc..8deecd38c 100644 --- a/linux.md +++ b/linux.md @@ -12,6 +12,21 @@ title: Linux username ALL=(ALL) NOPASSWD:/sbin/restart whatever +### Display the amount of available disk space + +```sh +df +df -h # human-readable format +df -a # all filesystems +``` + +### Display disk usage + +```sh +du +du -hsx * | sort -rh | head -10 # largest 10 folders +``` + ### Answer yes in a bash script ```bash