Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

du pages repeated #15468

Open
witt-bit opened this issue Jan 7, 2025 · 5 comments
Open

du pages repeated #15468

witt-bit opened this issue Jan 7, 2025 · 5 comments

Comments

@witt-bit
Copy link
Contributor

witt-bit commented Jan 7, 2025

common/du.md and osx/du.md are highly redundant and have the same usage. It is recommended to merge them.

And there are some problems with the output of tldr du.

tldr du                                                                                                       ✔  4s  

  du

  Disk usage: estimate and summarize file and directory space usage.
  More information: https://www.gnu.org/software/coreutils/du.

  - List the sizes of a directory and any subdirectories, in the given unit (B/KiB/MiB):
    du -b|k|m path/to/directory

  - List the sizes of a directory and any subdirectories, in human-readable form (i.e. auto-selecting the appropriate unit for each size):
    du -h path/to/directory

  - Show the size of a single directory, in human-readable units:
    du -sh path/to/directory

  - List the human-readable sizes of a directory and of all the files and directories within it:
    du -ah path/to/directory

  - List the human-readable sizes of a directory and any subdirectories, up to N levels deep:
    du -h --max-depth=N path/to/directory

  - List the human-readable size of all `.jpg` files in subdirectories of the current directory, and show a cumulative total at the end:
    du -ch */*.jpg

  - List all files and directories (including hidden ones) above a certain [t]hreshold size (useful for investigating what is actually taking up the space):
    du --all --human-readable --threshold 1G|1024M|1048576K .[^.]* *

Found 3 pages with the same name under the platforms: osx, osx, osx.

Multiple duplicate platform values Found 3 pages with the same name under the platforms: osx, osx, osx.

@witt-bit
Copy link
Contributor Author

witt-bit commented Jan 7, 2025

link #15466

@spageektti
Copy link
Member

spageektti commented Jan 7, 2025

Hi. Thanks for creating the issue. I don't think we should merge these pages, as the commands have different options. The common page uses b|k|m, while the OSX one uses k|m|g in the first example.
Also, we have multiple situations where pages are almost the same but still haven't been merged, for example, 7z, 7za, and 7zr.

@witt-bit
Copy link
Contributor Author

witt-bit commented Jan 8, 2025

I found some differences, but Found 3 pages with the same name under the platforms: xxx needs improvement

@acuteenvy
Copy link
Member

I found some differences, but Found 3 pages with the same name under the platforms: xxx needs improvement

That's an issue with the client you're using, please create an issue in the client's repository.

@jxu
Copy link
Collaborator

jxu commented Jan 12, 2025

In general it's annoying because coreutils commands will usually have more flags than OSX commands which are based on ancient BSD utils iirc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants