2020-02-18 21:55:22 +01: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-06-23 20:21:47 +02:00
|
|
|
─────────────┬────────────────────────────
|
|
|
|
path │ crates/nu-cli/src/commands
|
|
|
|
apparent │ 655.9 KB
|
|
|
|
physical │ 950.3 KB
|
|
|
|
directories │ [table 5 rows]
|
|
|
|
files │
|
|
|
|
─────────────┴────────────────────────────
|
|
|
|
```
|
|
|
|
|
|
|
|
```shell
|
2020-02-18 21:55:22 +01:00
|
|
|
> du -a src/commands
|
2020-06-23 20:21:47 +02:00
|
|
|
─────────────┬────────────────────────────
|
|
|
|
path │ crates/nu-cli/src/commands
|
|
|
|
apparent │ 655.9 KB
|
|
|
|
physical │ 950.3 KB
|
|
|
|
directories │ [table 5 rows]
|
|
|
|
files │ [table 118 rows]
|
|
|
|
─────────────┴────────────────────────────
|
|
|
|
```
|
|
|
|
|
|
|
|
```shell
|
2020-02-18 21:55:22 +01:00
|
|
|
> du *.rs
|
|
|
|
───┬──────────┬──────────┬──────────
|
2020-03-13 18:23:41 +01:00
|
|
|
# │ path │ apparent │ physical
|
2020-02-18 21:55:22 +01:00
|
|
|
───┼──────────┼──────────┼──────────
|
2020-03-13 18:23:41 +01:00
|
|
|
0 │ build.rs │ 78 B │ 4.1 KB
|
2020-02-18 21:55:22 +01:00
|
|
|
───┴──────────┴──────────┴──────────
|
2020-06-23 20:21:47 +02:00
|
|
|
```
|