mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 08:27:46 +00:00
Base: Add more manpages for command-line utilities
This commit is contained in:
parent
5d8585df97
commit
57340dda36
25 changed files with 749 additions and 0 deletions
54
Base/usr/share/man/man1/du.md
Normal file
54
Base/usr/share/man/man1/du.md
Normal file
|
@ -0,0 +1,54 @@
|
|||
## Name
|
||||
|
||||
du - print disk usage
|
||||
|
||||
## Synopsis
|
||||
|
||||
```**sh
|
||||
$ du [files...]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
`du` prints disk usage data for every argument, in KiB (kibibytes).
|
||||
|
||||
## Options
|
||||
|
||||
* `-a`, `--all`: Write counts for all files, not just directories
|
||||
* `--apparent-size`: Print apparent sizes, rather than disk usage
|
||||
* `-d N`, `--max-depth N`: Print the total for a directory or file only if it is N or fewer levels below the command line argument
|
||||
* `-s`, `--summarize`: Display only a total for each argument
|
||||
* `-t size`, `--threshold size`: Exclude entries smaller than size if positive, or entries greater than size if negative
|
||||
* `--time time-type`: Show time of time time-type of any file in the directory, or any of its subdirectories. Available choices: mtime, modification, ctime, status, use, atime, access
|
||||
* `--exclude pattern`: Exclude files that match pattern
|
||||
* `-X file, --exclude_from`: Exclude files that match any pattern in file
|
||||
|
||||
## Arguments
|
||||
|
||||
* `files`: Files to print disk usage of
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
~ $ du -s *
|
||||
4 Desktop
|
||||
4 Documents
|
||||
4 Downloads
|
||||
6 README.md
|
||||
4 Source
|
||||
4 js-tests
|
||||
4 tests
|
||||
4 web-tests
|
||||
~ $ du -a Documents
|
||||
2 Documents/emoji.txt
|
||||
2 Documents/zip/archive.zip
|
||||
4 Documents/zip
|
||||
2 Documents/tips.txt
|
||||
4 Documents
|
||||
~ $ du --apparent-size -a Documents
|
||||
4 Documents/emoji.txt
|
||||
4 Documents/zip/archive.zip
|
||||
4 Documents/zip
|
||||
4 Documents/tips.txt
|
||||
4 Documents
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue