Show how much disk space a directory or file uses with a single command.
du -sh <PATH>
Arguments:
| # | Name | Description |
|---|---|---|
| --- | ------ | ------------- |
| 1 | PATH | Path to file or directory to measure |
du -sh /home/user/projects
Output:
1.2G /home/user/projects
Format: SIZE PATH
共 1 个版本