Skip to content

Commit b8311a4

Browse files
tobiasbueschelAdnan Ahmed
authored and
Adnan Ahmed
committed
Add du command options & better example (Idnan#25)
1 parent f5d4727 commit b8311a4

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,9 +747,21 @@ dig domain
747747
```
748748

749749
### f. `du`
750-
Shows the disk usage of the files and directories in filename (du -s give only a total).
750+
Shows the disk usage of files or directories. For more information on this command check this [link](http://www.linfo.org/du.html)
751751
```bash
752-
du filename
752+
du [option] [filename|directory]
753+
```
754+
Options:
755+
- `-h` (human readable) Displays output it in kilobytes (K), megabytes (M) and gigabytes (G).
756+
- `-s` (supress or summarize) Outputs total disk space of a directory and supresses reports for subdirectories.
757+
758+
Example:
759+
```shell
760+
du -sh pictures
761+
```
762+
763+
```shell
764+
1.4M pictures
753765
```
754766

755767
### g. `fg`

0 commit comments

Comments
 (0)