when do you usually use the man page for a complex command line tool to answer a question you have?
-
i'm very curious about everyone who says "I'd look there first", if I want to figure out how to do something new I think I'll usually google how to do it rather than look at the man page, and then maybe later look at the man page to look up the details
(I've gotten enough of these answers:
- "I like that man pages don't require changing context"
- "with the man page I know I have the right version of the docs")@b0rk reading the manpage I also accidentally learn stuff I wasn't looking for. Oftentimes I learn that what I was planning to do was the wrong approach and learn how to do it better.
Reading the man page also makes the knowledge "sink in" more for me, so next time I won't have to look it up.
That's why I read the --help and the manpage first. Your brain might work differently, I'm not trying to tell you you should as well.
-
@b0rk for some commands I know the manpage is decent and I'll look there. for others I know it doesn't exist or is crap, so I'll check -h or just search online. I sometimes reach for it first on new commands, sometimes not. no real rhyme or reason, mostly just whatever direction my brain goes in the moment.
I do, however, hate certain manpages with a fiery passion. like builtins being one giant manpage that you can't search because it looks for results in all builtin commands. hateful design.
@gsuberland @b0rk pet hate: when you type <command> -h, and it responds along the lines of “-h is not a recognised option, use -? for help” (or vice versa).
That’s some passive aggressive bullshit, just give me the damn help options 🤨
-
i'm very curious about everyone who says "I'd look there first", if I want to figure out how to do something new I think I'll usually google how to do it rather than look at the man page, and then maybe later look at the man page to look up the details
(I've gotten enough of these answers:
- "I like that man pages don't require changing context"
- "with the man page I know I have the right version of the docs")@b0rk Assuming the man page docset is properly curated, it should be a comprehensive an authoritative answer to how the tool works.
Caveat: I spent years in a techpubs department writing and maintaining UNIX man pages. I have strong opinions!
-
i'm very curious about everyone who says "I'd look there first", if I want to figure out how to do something new I think I'll usually google how to do it rather than look at the man page, and then maybe later look at the man page to look up the details
(I've gotten enough of these answers:
- "I like that man pages don't require changing context"
- "with the man page I know I have the right version of the docs")@b0rk I guess it depends on what you mean by "figure out how to do something"
If I've already figured out what command/function to use but am unsure of the details, man pages are just faster. And if that doesn't help, I'll look elsewhere
If I don't know what man page to even look at, then I'll search first
-
i'm very curious about everyone who says "I'd look there first", if I want to figure out how to do something new I think I'll usually google how to do it rather than look at the man page, and then maybe later look at the man page to look up the details
(I've gotten enough of these answers:
- "I like that man pages don't require changing context"
- "with the man page I know I have the right version of the docs")@b0rk I learned Unix thirty years ago, when the manpages were what was easiest to get at, and so that's what became my habitual first stop ... for things that have manpages anyway. I also have Firefox "custom search keywords" dedicated to the Python and Rust documentation websites.
-
when do you usually use the man page for a complex command line tool to answer a question you have? (like git, openssl, rsync, curl, etc)
(edit: no need to say "i use --help then man")
@b0rk I use the man page reference on the web first. It’s just quicker for me.
-
@b0rk The point of having a man page (or as you edited the original post: a --help) is that it's self-contained and, hopefully, true to the actual thing you're trying to run. The website requires an internet connection and it might be about a newer version than you have (did your distro or you forget to upgrade the tool?) or older (did the author forget to update the documentation?) and while a site is often a better UX (graphical browsers and whatnot), those are issues to be considered.
-
when do you usually use the man page for a complex command line tool to answer a question you have? (like git, openssl, rsync, curl, etc)
(edit: no need to say "i use --help then man")
@b0rk 1. Scan --help. If I can’t figure it out within a minute or two,
2. Web search. If not found,
3. man pageIn that order.
-
i'm very curious about everyone who says "I'd look there first", if I want to figure out how to do something new I think I'll usually google how to do it rather than look at the man page, and then maybe later look at the man page to look up the details
(I've gotten enough of these answers:
- "I like that man pages don't require changing context"
- "with the man page I know I have the right version of the docs")@b0rk With cross platform differences in CLI tools, the man pages locally are more authoritative than Google.
Mostly, though, I go there first to verify the flags provided in a script or other source, or to convert short flags to long flags in my own scripts, since I prefer that “self-documenting” enhancement.
-
i'm very curious about everyone who says "I'd look there first", if I want to figure out how to do something new I think I'll usually google how to do it rather than look at the man page, and then maybe later look at the man page to look up the details
(I've gotten enough of these answers:
- "I like that man pages don't require changing context"
- "with the man page I know I have the right version of the docs")@b0rk generally with CLI-tools, I already know how they work and just have a new case that I'm fairly confident it can do but need to quickly check the syntax for. In this case, man is the straightforward way to find it.
I have never found them at all useful to learn a new tool, and perfectly useless to discover tools with.
-
@b0rk 1. Scan --help. If I can’t figure it out within a minute or two,
2. Web search. If not found,
3. man pageIn that order.
@drahardja @b0rk I normally go 3 - 1 - 2
-
when do you usually use the man page for a complex command line tool to answer a question you have? (like git, openssl, rsync, curl, etc)
(edit: no need to say "i use --help then man")
@b0rk I do use them pretty often. But it’s usually very hard to find what I want, especially for complex questions. Simpler tools have more useful man pages, more complex tools are basically so comprehensive that every word in the English language is in them so you can’t find anything
-
when do you usually use the man page for a complex command line tool to answer a question you have? (like git, openssl, rsync, curl, etc)
(edit: no need to say "i use --help then man")
@b0rk if I'm reading the manpage, it's probably because I'm looking for the exact name/syntax of some rarely-used (usually non-posix) command-line argument or setting and --help elided it.
For trying to learn some larger concept, I find that prose on websites works better.
For trying to figure out what's /really/ supported (eg, an envvar default for some --switch or alternate config file search locations), I'll probably find the git repo and read the argument parser / config loader.
-
@b0rk I do use them pretty often. But it’s usually very hard to find what I want, especially for complex questions. Simpler tools have more useful man pages, more complex tools are basically so comprehensive that every word in the English language is in them so you can’t find anything
-
when do you usually use the man page for a complex command line tool to answer a question you have? (like git, openssl, rsync, curl, etc)
(edit: no need to say "i use --help then man")
@b0rk I think my algorithm is roughly:
If I imagine there's probably a flag that does exactly what I want, or I know there's a flag and I need to remember a detail (e.g. what the flag is called, what the valid options are for it, etc) I'll look in the manpage (and/or --help).
Otherwise I will look elsewhere, and probably never even fall back to the manpage.
-
when do you usually use the man page for a complex command line tool to answer a question you have? (like git, openssl, rsync, curl, etc)
(edit: no need to say "i use --help then man")
@b0rk I like the convenience and predictable UX of a man page. I can press Esc-H in my shell to open the man page for whatever command I have pending on the command line, and (assuming it has one) I know I can always expect plain text with consistent key bindings to page through it, search for keywords, etc. The biggest unknown is always the potential quality of a man page, but that’s also true for searching online, etc.
-
i'm very curious about everyone who says "I'd look there first", if I want to figure out how to do something new I think I'll usually google how to do it rather than look at the man page, and then maybe later look at the man page to look up the details
(I've gotten enough of these answers:
- "I like that man pages don't require changing context"
- "with the man page I know I have the right version of the docs")@b0rk I can use grep to search the man pages and often get what I want much faster than a search engine will give me the same info.
I also find myself leaning even more heavily into man pages as the web becomes AI slop answers that may or may not show real commands and arguments.
-
i'm very curious about everyone who says "I'd look there first", if I want to figure out how to do something new I think I'll usually google how to do it rather than look at the man page, and then maybe later look at the man page to look up the details
(I've gotten enough of these answers:
- "I like that man pages don't require changing context"
- "with the man page I know I have the right version of the docs")@b0rk For much of my working life any one computer wasn't guaranteed to be on the internet -- I'm in and out of cleanrooms (and we don't want Russian hacker kids in our $100M hardware so definitely no internet there) and/or in the air trying to make some instrument work on some survey airplane. Now I'm retired but the habit is still to look locally first and only reach outward if that doesn't get me anywhere.
-
i'm very curious about everyone who says "I'd look there first", if I want to figure out how to do something new I think I'll usually google how to do it rather than look at the man page, and then maybe later look at the man page to look up the details
(I've gotten enough of these answers:
- "I like that man pages don't require changing context"
- "with the man page I know I have the right version of the docs")@b0rk I use GNU Emacs to read manual pages. It has a builtin `man' command to display man pages. It also has hyperlinks to jump to. `man -k' and `appropos' helps for searching. More advanced `info' manuals are there if needed. Offline reading has its own benefits. My main issue is the man pages are very terse at the beginner level. But very smooth once we use a command more than 1 times.
-
when do you usually use the man page for a complex command line tool to answer a question you have? (like git, openssl, rsync, curl, etc)
(edit: no need to say "i use --help then man")
@b0rk Man pages have a huge edge over searching the web in that they are generally part of whatever package provides the command they document. They aren’t for an earlier version or a different implementation. They are not usually written by people with weak understanding of the program.