This pull request suggests changing the -s and * for --max-depth 1 in the last two examples on du usage. There are two reasons for this suggestion:
Firstly, the docs say:
If you want to see the size of any file or top-level subdirectory in the current directory, you could use the following command: du -s -h *
Because * does not expand hidden files and directories it could be misleading for users trying to figure out the space their files are taking up. In contrast, --max-depth 1 does take this into account.
Secondly, I overheard @hajgato say users who hit quota frequently overlook hidden files and directories when cleaning up disk space. Some unnecessary tickets could be avoided with the new commands
This pull request suggests changing the
-s
and*
for--max-depth 1
in the last two examples ondu
usage. There are two reasons for this suggestion:Firstly, the docs say:
Because
*
does not expand hidden files and directories it could be misleading for users trying to figure out the space their files are taking up. In contrast,--max-depth 1
does take this into account.Secondly, I overheard @hajgato say users who hit quota frequently overlook hidden files and directories when cleaning up disk space. Some unnecessary tickets could be avoided with the new commands