What does HackerNews think of tldr?

📚 Collaborative cheatsheets for console commands

Language: Markdown

#2 in Shell
#2 in Terminal
There's also tldr: https://github.com/tldr-pages/tldr

It lets you check the most commonly used options from your terminal, for example "tldr badblocks".

> Along those lines, a quick way to drive adoption could be a huge "how do i do x" or recipes page to Ctrl+F through. If I have to search the internet for how to do x in nushell/fish/etc, I might as well stick to arcane bash - at least you know someone has had the same problem before.

https://github.com/tldr-pages/tldr

I've used tldr (https://github.com/tldr-pages/tldr) if I'm a beginner to a specific tool, then read up the manpages and/or SO if I need more flags.
I hadn't heard of tldr. Looks neat! Here's a link for other people who didn't know: https://github.com/tldr-pages/tldr
Well, loving "tldr"[1] and smashing the tab key for my autocompletes that Copilot CLI thing kind of sounds like another level of laziness and less Googling.

[1] https://github.com/tldr-pages/tldr

Before clicking through I thought this was for this great command line tool [0]. I'm skeptical about GPT-3 generated comments, but I can recommend the other TLDR whole heartedly!

[0] https://github.com/tldr-pages/tldr

These might help:

* https://github.com/jlevy/the-art-of-command-line notes and tips on using the command-line, suitable for both beginners and experienced users

* https://github.com/tldr-pages/tldr collection of community-maintained help pages for command-line tools

* http://www.compciv.org/unix-tools/ examples for most common usecases

* https://devmanual.gentoo.org/tools-reference/bash/index.html Bash reference cheatsheet

Slightly unrelated, but this proposal is my first time running into tldr pages (https://github.com/tldr-pages/tldr).

Has anyone used them before (or the variants that the repo mentions)? Are they good? Their live demo seems to be producing decent-ish results from playing around with it. Tried a random sampling of non-default programs on my computer and it's got some of them, but not most of them.

Is this a space I should be looking at more, and is there a dominant project that's getting more attention/coverage of obscure programs?

I think it's worth mentioning tldr as an effort towards more readable man pages: https://github.com/tldr-pages/tldr

Personally I like tealdeer for a tldr client b/c it's written in Rust and I think the name is fun, but the other tldr clients I've tried all seem fine as well: https://github.com/dbrgn/tealdeer

tldr doesn't do autocomplete, but between fish shell's autocomplete and tldr I feel I'm able to figure out most simple commands in the terminal.

I guess you could consider https://github.com/tldr-pages/tldr.

I personally wouldn't touch that, but that's related to my allergies to JS ecosystem and predisposition to panic attacks when I see stuff like that https://github.com/tldr-pages/tldr/blob/master/package-lock.....

Focusing on "more efficient" in "better":

- emacs: works for me to code in R, python, connect to remotes, etc

- keyboard shortcuts: got started with them early, and never looked back. Bonus: linux/macOS/emacs text navigation works across all of them (ctrl-f, ctrl-b, ctrl-a, ctrl-k, alt-delete, etc)

- git: managing file versions and file diffs (!)

- GitHub: terrific for project management, even when I'm the only one on the project ;)

- CLI utilities that I love:

    - ag, a better "grep"
    - fd, a better "find"
    - tldr, a better "man"
My dotfiles and new box setup: https://github.com/pavopax/dotfiles

CLI tools:

https://github.com/ggreer/the_silver_searcher

https://github.com/sharkdp/fd/

https://github.com/tldr-pages/tldr

EDIT: formatting

I personally like using the "tldr" command line tool. It gives a short overview of the most common commands.

https://github.com/tldr-pages/tldr/

tldr [0] fills the missing piece you mention: good examples of common actions. (Though I use the Rust implementation tealdeer [1])

[0]: https://github.com/tldr-pages/tldr [1]: https://github.com/dbrgn/tealdeer

I've been using tldr [1] instead of man pages lately to get started with a command (or to remind myself how to use one). I've learned a lot just by reading the examples shown, and then read the man pages if I am missing something.

[1] https://github.com/tldr-pages/tldr

Im a big fan of a cli program called tldr[1].

Usually when the internet says "Run these commands", they either don't tell you what they do, or tell you to just check `man`. The problem is that man pages can be super long, can have a somewhat intimidating syntax, and 1,000 flags that arent your flag. Running `tldr program_name` gives you a way simpler manual with common flags and actual examples.

[1]https://github.com/tldr-pages/tldr

What about: man foo | grep bar

Then you only get the line with "bar" in it. (append -C 1 at the end to get 1 line before and 1 after the term you grepped for).

And of course you can pimp your terminal experience by using fish (https://fishshell.com/) as it ships with autosuggestions and other really nice features. (Beware that it will not provide 100% POSIX compliance but if that's an issue you can use ZSH or pimp your bash as well).

Then there is other kind of man pages like TLDR (https://github.com/tldr-pages/tldr) which is curated by community and quite awesome ;-)

There is a similar cli tool called tldr[1]. It's very useful and simple to invoke.

[1] https://github.com/tldr-pages/tldr

> 1. Great help is essential

I like how this is their #1. In my opinion the best way to do this is with tldr.

https://github.com/tldr-pages/tldr

I'd highly recommend folks create a tldr page for their CLI app. Add 4-8 examples to cover 80%+ of the most common use cases. -h flags, readmes & man pages can cover the other 20%.

I love the idea of this utility (I use TLDR myself) and wonder if there is a way that tldr could be integrated with your tooling https://github.com/tldr-pages/tldr.

I can see that there may be instances where you/your company would like to have internal docs that should not be public and this utility would would work for it

Not very respectful of https://github.com/chrisallenlane/cheat to use the same name.

The original cheat does exactly the same thing, has a big following and more stars, and has existed for years.

I've opened an issue re: the name conflict https://github.com/chubin/cheat.sh/issues/34

Afaik these are the big players in the space: - bro: https://github.com/hubsmoke/bro - tldr: https://github.com/tldr-pages/tldr - cheat: https://github.com/chrisallenlane/cheat

`tldr`[0] can be helpful for quick references like this. I never worry about commands like `ssh` anymore because of this. This is the output for `dd`:

$ tldr dd

dd

Convert and copy a file.

- Make a bootable usb drive from an isohybrid file (such like archlinux-xxx .iso):

    dd if=file.iso of=/dev/usb_drive
- Clone a drive to another drive with 4MB block and ignore error:

    dd if=/dev/source_drive of=/dev/dest_drive bs=4m conv=noerror
- Generate a file of 100 random bytes by using kernel random driver:

    dd if=/dev/urandom of=random_file bs=100 count=1
- Benchmark the write performance of a disk:

    dd if=/dev/zero of=file_1GB bs=1024 count=1000000
[0]: https://github.com/tldr-pages/tldr
Something similar, if you want to search most commonly used commands - https://github.com/tldr-pages/tldr
If you want to cheat a little more you can try tldr: https://github.com/tldr-pages/tldr/

It gives actual examples of commands, just like a cheatsheet does.

Wow, a man page that is actually readable and understandable.

I've been using Linux for years, and never once have I seriously looked at a man page. One of the more useless pieces of advice Linux beginners are given is to `man [tool]`. The documentation often has tonnes of useless information and no examples. It's frustrating, and it's also why projects like tldr[0] have gotten so popular.

But, the page linked in the OP is actually brilliant. It's easy to read, has examples, compartmentalises into sections that are relevant to different people. It's a step in the right direction.

Note: I'm not saying there aren't other pages like OP. There probably are, but the vast majority are not.

[0] https://github.com/tldr-pages/tldr

Check out http://bropages.org/ and https://github.com/tldr-pages/tldr

Both examples of community driven man pages with examples

You might have an easier time getting tldr pages to work: https://github.com/tldr-pages/tldr