nushell/docs/commands/du.md
Waldir Pimenta 5ca9e12b7f
Fix whitespace and typos (#1481)
* Remove EOL whitespace in files other than docs

* Break paragraphs into lines

See http://rhodesmill.org/brandon/2012/one-sentence-per-line/ for the rationale

* Fix various typos

* Remove EOL whitespace in docs/commands/*.md
2020-03-14 06:23:41 +13:00

2 KiB

du

du stands for disk usage. It will give you the physical and apparent size of files and folders

Examples

> du src/commands
───┬──────────────┬──────────┬──────────┬────────────────
 # │ path         │ apparent │ physical │ directories
───┼──────────────┼──────────┼──────────┼────────────────
 0 │ src/commands │ 411.5 KB │ 647.2 KB │ [table 1 rows]
───┴──────────────┴──────────┴──────────┴────────────────
> du -a src/commands
───┬──────────────┬──────────┬──────────┬─────────────────┬────────────────
 # │ path         │ apparent │ physical │ files           │ directories
───┼──────────────┼──────────┼──────────┼─────────────────┼────────────────
 0 │ src/commands │ 411.5 KB │ 647.2 KB │ [table 95 rows][table 1 rows]
───┴──────────────┴──────────┴──────────┴─────────────────┴────────────────
> du *.rs
───┬──────────┬──────────┬──────────
 # │ path     │ apparent │ physical
───┼──────────┼──────────┼──────────
 0 │ build.rs │     78 B │   4.1 KB
───┴──────────┴──────────┴──────────