2020-02-18 20:55:22 +00:00
|
|
|
# du
|
|
|
|
|
|
|
|
`du` stands for disk usage. It will give you the physical and apparent size of files and folders
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
```shell
|
|
|
|
> du src/commands
|
|
|
|
───┬──────────────┬──────────┬──────────┬────────────────
|
2020-03-13 17:23:41 +00:00
|
|
|
# │ path │ apparent │ physical │ directories
|
2020-02-18 20:55:22 +00:00
|
|
|
───┼──────────────┼──────────┼──────────┼────────────────
|
2020-03-13 17:23:41 +00:00
|
|
|
0 │ src/commands │ 411.5 KB │ 647.2 KB │ [table 1 rows]
|
2020-02-18 20:55:22 +00:00
|
|
|
───┴──────────────┴──────────┴──────────┴────────────────
|
|
|
|
> du -a src/commands
|
|
|
|
───┬──────────────┬──────────┬──────────┬─────────────────┬────────────────
|
2020-03-13 17:23:41 +00:00
|
|
|
# │ path │ apparent │ physical │ files │ directories
|
2020-02-18 20:55:22 +00:00
|
|
|
───┼──────────────┼──────────┼──────────┼─────────────────┼────────────────
|
2020-03-13 17:23:41 +00:00
|
|
|
0 │ src/commands │ 411.5 KB │ 647.2 KB │ [table 95 rows] │ [table 1 rows]
|
2020-02-18 20:55:22 +00:00
|
|
|
───┴──────────────┴──────────┴──────────┴─────────────────┴────────────────
|
|
|
|
> du *.rs
|
|
|
|
───┬──────────┬──────────┬──────────
|
2020-03-13 17:23:41 +00:00
|
|
|
# │ path │ apparent │ physical
|
2020-02-18 20:55:22 +00:00
|
|
|
───┼──────────┼──────────┼──────────
|
2020-03-13 17:23:41 +00:00
|
|
|
0 │ build.rs │ 78 B │ 4.1 KB
|
2020-02-18 20:55:22 +00:00
|
|
|
───┴──────────┴──────────┴──────────
|
|
|
|
```
|