mirror of
https://github.com/Idnan/bash-guide.git
synced 2018-11-09 02:29:39 +01:00
Add du command options & better example (#25)
This commit is contained in:
parent
f5d4727522
commit
b8311a48a0
1 changed files with 14 additions and 2 deletions
16
README.md
16
README.md
|
@ -747,9 +747,21 @@ dig domain
|
||||||
```
|
```
|
||||||
|
|
||||||
### f. `du`
|
### f. `du`
|
||||||
Shows the disk usage of the files and directories in filename (du -s give only a total).
|
Shows the disk usage of files or directories. For more information on this command check this [link](http://www.linfo.org/du.html)
|
||||||
```bash
|
```bash
|
||||||
du filename
|
du [option] [filename|directory]
|
||||||
|
```
|
||||||
|
Options:
|
||||||
|
- `-h` (human readable) Displays output it in kilobytes (K), megabytes (M) and gigabytes (G).
|
||||||
|
- `-s` (supress or summarize) Outputs total disk space of a directory and supresses reports for subdirectories.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```shell
|
||||||
|
du -sh pictures
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
|
1.4M pictures
|
||||||
```
|
```
|
||||||
|
|
||||||
### g. `fg`
|
### g. `fg`
|
||||||
|
|
Loading…
Reference in a new issue