Merge pull request #986 from ilhan-mstf/feature/linux-disk-size

Adds disk space and disk usage commands to linux.
This commit is contained in:
Rico Sta. Cruz 2020-01-01 09:58:33 +11:00 committed by GitHub
commit 0bc396c632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

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