Update linux.md

This commit is contained in:
Rico Sta. Cruz 2020-01-01 09:58:25 +11:00 committed by GitHub
parent e21dcf1028
commit caa337d5ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 12 deletions

View File

@ -14,21 +14,18 @@ title: Linux
### Display the amount of available disk space
$ df
All File System:
$ df -a
Human Readable Format:
$ df -h
```sh
df
df -h # human-readable format
df -a # all filesystems
```
### Display disk usage
Largest 10 folder/file in the current directory:
$ du -hsx * | sort -rh | head -10
```sh
du
du -hsx * | sort -rh | head -10 # largest 10 folders
```
### Answer yes in a bash script