Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. when do you usually use the man page for a complex command line tool to answer a question you have?

when do you usually use the man page for a complex command line tool to answer a question you have?

Scheduled Pinned Locked Moved Uncategorized
200 Posts 155 Posters 239 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • b0rk@social.jvns.caB b0rk@social.jvns.ca

    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")

    bew@floss.socialB This user is from outside of this forum
    bew@floss.socialB This user is from outside of this forum
    bew@floss.social
    wrote last edited by
    #184

    @b0rk it depends on the question..

    - For "can I even do X..." (or if I know it's quite annoying to get the params right), I like to ask Perplexity
    - For "I know I can do X, what's the param again", I like to use `--help` or `man`
    - For "I don't remember the exact semantic of X, what does it do exactly?", I like to use `man`

    1 Reply Last reply
    0
    • b0rk@social.jvns.caB b0rk@social.jvns.ca

      i think part of the reason I'm feeling interested in man pages right now even though I rarely use them is that search has gotten so much worse, it's frustrating, and it makes it feel more appealing to have trustworthy sources with clear explanations

      davecb@hachyderm.ioD This user is from outside of this forum
      davecb@hachyderm.ioD This user is from outside of this forum
      davecb@hachyderm.io
      wrote last edited by
      #185

      @b0rk One of the best features of the older man pages was a keyword-in-context index. See https://en.wikipedia.org/wiki/Key_Word_in_Context for an example.

      If I thought of a word, I could see where it was used in man pages, and ONLY in man pages. Low noise, high granularity.

      I'm tempted to make one as Appendix B of a small reference book I'm writing. I bet I can use my concordance file and grep for each of the words, reporting chapter instead of page in on-line formats.

      1 Reply Last reply
      0
      • b0rk@social.jvns.caB b0rk@social.jvns.ca

        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")

        duien@xoxo.zoneD This user is from outside of this forum
        duien@xoxo.zoneD This user is from outside of this forum
        duien@xoxo.zone
        wrote last edited by
        #186

        @b0rk I struggled with which option to choose for that exact reason! There’s a fairly complex interaction between what kind of new thing I’m doing, how the command is structured, and how much of an idea I have of how to approach it. A “what flags do I need to pass” question (more common with curl) will almost always start with man, but for “how do I even approach this” (more common with git) I’m more likely to start with search. But if I think I can find the right man page, I start there.

        1 Reply Last reply
        0
        • b0rk@social.jvns.caB b0rk@social.jvns.ca

          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")

          aartaka@merveilles.townA This user is from outside of this forum
          aartaka@merveilles.townA This user is from outside of this forum
          aartaka@merveilles.town
          wrote last edited by
          #187

          @b0rk two points:

          • Investing in collateral knowledge of other options and the information the developer / documenter put there on purpose. The implied idea is that they know what to emphasize in docs.

          • Preference for local information. So it’s --help/man > Google/SO > everything else *gestures vaguely*

          1 Reply Last reply
          0
          • b0rk@social.jvns.caB b0rk@social.jvns.ca

            also it just occurred to me that the one time I wrote a command line tool (https://rbspy.github.io/) I didn't write a man page for it, I made a documentation website instead. I don't remember even considering writing a man page, probably because I rarely use man pages

            (not looking to argue about whether command line tools "should" have man pages or not, just reflecting about how maybe I personally would prefer a good docs website over a man page. Also please no "webpages require internet")

            phl@mastodon.socialP This user is from outside of this forum
            phl@mastodon.socialP This user is from outside of this forum
            phl@mastodon.social
            wrote last edited by
            #188

            @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.

            1 Reply Last reply
            0
            • b0rk@social.jvns.caB b0rk@social.jvns.ca

              also it just occurred to me that the one time I wrote a command line tool (https://rbspy.github.io/) I didn't write a man page for it, I made a documentation website instead. I don't remember even considering writing a man page, probably because I rarely use man pages

              (not looking to argue about whether command line tools "should" have man pages or not, just reflecting about how maybe I personally would prefer a good docs website over a man page. Also please no "webpages require internet")

              cate@mastodon.xyzC This user is from outside of this forum
              cate@mastodon.xyzC This user is from outside of this forum
              cate@mastodon.xyz
              wrote last edited by
              #189

              @b0rk note: Because Debian requires man pages, I notice that lot of the are written by debian developers, so I assume also a lot of developers don’t use man pages. (note also that writing man pages was very difficult, not just content, but technically: complex non standardized language, various tools, and I still not sure there is a guide on conventions)

              1 Reply Last reply
              0
              • b0rk@social.jvns.caB b0rk@social.jvns.ca

                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")

                colen@hachyderm.ioC This user is from outside of this forum
                colen@hachyderm.ioC This user is from outside of this forum
                colen@hachyderm.io
                wrote last edited by
                #190

                @b0rk same, I would only look at a man page in direst need, they are borderline unusable to me from the perspective of “someone who doesn’t know the command at all”

                1 Reply Last reply
                0
                • b0rk@social.jvns.caB b0rk@social.jvns.ca

                  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")

                  kalfeher@infosec.exchangeK This user is from outside of this forum
                  kalfeher@infosec.exchangeK This user is from outside of this forum
                  kalfeher@infosec.exchange
                  wrote last edited by
                  #191

                  @b0rk --help and man let me figure things out without changing context. sure I have a browser right there, but while on the cli, I want my answers there.

                  Red Hat drew the same conclusion with the use cases for their wonky Lightspeed cli LLM helper thingy.

                  ofc if theres no man page Ill go to the website and not really think about it.

                  1 Reply Last reply
                  0
                  • b0rk@social.jvns.caB b0rk@social.jvns.ca

                    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")

                    fanf@mendeddrum.orgF This user is from outside of this forum
                    fanf@mendeddrum.orgF This user is from outside of this forum
                    fanf@mendeddrum.org
                    wrote last edited by
                    #192

                    @b0rk if i’m answering a question about a tool that i’ve used before, then i’ll check the man page

                    if it’s a new tool or a new problem and i don’t know the lay of the land, i’ll probably read blog posts about how others have tackled it to gain confidence that i’m looking at a suitable tool, before digging into its documentation

                    1 Reply Last reply
                    0
                    • b0rk@social.jvns.caB b0rk@social.jvns.ca

                      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")

                      teivel@mas.toT This user is from outside of this forum
                      teivel@mas.toT This user is from outside of this forum
                      teivel@mas.to
                      wrote last edited by
                      #193

                      @b0rk I'm kinda half and half right now between `man` and `cmd --help`, I've been using `man` more since I have `nvim` set as my `man pager`, so I can easily grep for parts of the documentation. For example, today I was looking at a series of commands `git clone && git checkout $tag && git submodule`, and I thought to myself, that looks redundant, bet you can do all that with just `git clone`, so I grepped the git clone man page for `checkout` and `submodule` to find all the relevant flags

                      1 Reply Last reply
                      0
                      • b0rk@social.jvns.caB b0rk@social.jvns.ca

                        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")

                        jasonkarns@indieweb.socialJ This user is from outside of this forum
                        jasonkarns@indieweb.socialJ This user is from outside of this forum
                        jasonkarns@indieweb.social
                        wrote last edited by
                        #194

                        @b0rk one thing that I don’t think gets enough attention:

                        If I go on the web I have to worry about versioning. Is my version too old? This doc might not apply to me. Or maybe the online post is too old and my version has newer/better options or features. Man page and -help are locked to my actual version.

                        1 Reply Last reply
                        0
                        • b0rk@social.jvns.caB b0rk@social.jvns.ca

                          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")

                          bracken@ruby.socialB This user is from outside of this forum
                          bracken@ruby.socialB This user is from outside of this forum
                          bracken@ruby.social
                          wrote last edited by
                          #195

                          @b0rk I almost always do a man page (habit) or especially --help first. Though, unless I'm already kinda familiar and am just looking up a specific flag I usually also exit it right away because I find most quite confusing unless they already have an example usage that fits my exact case.
                          Then I do a web search for my specific need and usually find it easier there.

                          1 Reply Last reply
                          0
                          • tartley@fosstodon.orgT tartley@fosstodon.org

                            @b0rk I suppose that adding a man page requires extra hurdles of not just creating the man page itself, but packaging your tool such that the man page gets installed along with it. Now you have to make a .deb and and .apt and whatever else, instead of just saying "download this script or executable and run it."

                            fanf@mendeddrum.orgF This user is from outside of this forum
                            fanf@mendeddrum.orgF This user is from outside of this forum
                            fanf@mendeddrum.org
                            wrote last edited by
                            #196

                            @tartley @b0rk an idea i copied from git is to make -h print the short summary and --help brings up the man page

                            i have embedded the man page in the script or binary so it doesn’t have to be installed separately (tho it only works with the man command if the man page is installed)

                            1 Reply Last reply
                            0
                            • b0rk@social.jvns.caB b0rk@social.jvns.ca

                              i think part of the reason I'm feeling interested in man pages right now even though I rarely use them is that search has gotten so much worse, it's frustrating, and it makes it feel more appealing to have trustworthy sources with clear explanations

                              T This user is from outside of this forum
                              T This user is from outside of this forum
                              toasted_flakes@mastodon.social
                              wrote last edited by
                              #197

                              @b0rk Google used to show me what I needed quite quickly. The search quality feels like it declined, and I now know those tools enough I’ll look up the man page first.

                              1 Reply Last reply
                              0
                              • b0rk@social.jvns.caB b0rk@social.jvns.ca

                                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")

                                ferrix@mastodon.onlineF This user is from outside of this forum
                                ferrix@mastodon.onlineF This user is from outside of this forum
                                ferrix@mastodon.online
                                wrote last edited by
                                #198

                                @b0rk what side of the line is "I search the web for the man page because the browser is the best view/search/scroll experience but the data is in man page"

                                1 Reply Last reply
                                0
                                • b0rk@social.jvns.caB b0rk@social.jvns.ca

                                  i think part of the reason I'm feeling interested in man pages right now even though I rarely use them is that search has gotten so much worse, it's frustrating, and it makes it feel more appealing to have trustworthy sources with clear explanations

                                  knees@mathstodon.xyzK This user is from outside of this forum
                                  knees@mathstodon.xyzK This user is from outside of this forum
                                  knees@mathstodon.xyz
                                  wrote last edited by
                                  #199

                                  @b0rk 100% agree with this. I sometimes joke that this is how you know search is so bad these days, that people actually have to use man pages now 😭

                                  1 Reply Last reply
                                  0
                                  • b0rk@social.jvns.caB b0rk@social.jvns.ca

                                    i think part of the reason I'm feeling interested in man pages right now even though I rarely use them is that search has gotten so much worse, it's frustrating, and it makes it feel more appealing to have trustworthy sources with clear explanations

                                    ferrix@mastodon.onlineF This user is from outside of this forum
                                    ferrix@mastodon.onlineF This user is from outside of this forum
                                    ferrix@mastodon.online
                                    wrote last edited by
                                    #200

                                    @b0rk oh god I hadn't thought about hallucinated manual web pages

                                    1 Reply Last reply
                                    0
                                    • R relay@relay.infosec.exchange shared this topic
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • World
                                    • Users
                                    • Groups