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 242 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

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

    tmcfarlane@toot.communityT This user is from outside of this forum
    tmcfarlane@toot.communityT This user is from outside of this forum
    tmcfarlane@toot.community
    wrote last edited by
    #148

    @b0rk one advantage with a man page packaged with the tool is the versioning. The man page should hopefully be the correct version for hte installed tool, avoiding some potential confusion.
    I do tend to use man pages for old C libraries if I need docs too. Interestingly I don't do that for Go packages (I either use the local src doc strings that my editor jumps to, or I'll use the pkg.go.dev site).
    (obviously there are no man pages for go pkgs, but I rarely use go doc directly)

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

      gibwar@infosec.exchangeG This user is from outside of this forum
      gibwar@infosec.exchangeG This user is from outside of this forum
      gibwar@infosec.exchange
      wrote last edited by
      #149

      @b0rk Another reason I can think of is when you're working in environments that have strict version policies, so looking at available man pages gets you the documentation for the version of the tool you have installed. Needing to support older Ansible releases? Gotta check the bundled documentation with ansible-doc because the website is the latest rolling version.

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

        levitte@mastodon.nuL This user is from outside of this forum
        levitte@mastodon.nuL This user is from outside of this forum
        levitte@mastodon.nu
        wrote last edited by
        #150

        @b0rk
        Most of all, it's because that's what I have locally on my machinery. If I have that and it's good enough for my level of understanding and purposes, why should I need to go looking on the net?

        Rubbish man-pages do exist, though, just the same as pretty bad help output. It's when I run into those that I start looking on the net.

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

          canacar@ioc.exchangeC This user is from outside of this forum
          canacar@ioc.exchangeC This user is from outside of this forum
          canacar@ioc.exchange
          wrote last edited by
          #151

          @b0rk I got spoilt by the amazing quality and consistency of OpenBSD's man pages. Even when searching the web, I do 'man <command>' first.

          1 Reply Last reply
          0
          • hyperpape@hachyderm.ioH hyperpape@hachyderm.io

            @b0rk I think for me, certain tools feel old and unixy, and a man page feels right. And then certain tools feel new and I expect a website.

            But also, man pages feel more correct for “what’s the syntax for this specific thing that must have a flag?” and a website or LLM is much more correct for “how do I use this thing in varied ways?”

            alpha@hey.kejadlen.devA This user is from outside of this forum
            alpha@hey.kejadlen.devA This user is from outside of this forum
            alpha@hey.kejadlen.dev
            wrote last edited by
            #152

            @hyperpape @b0rk I feel like man pages and --help overlap some in that I use them both as references, but expect man pages to have more explanation than help, and websites to encompass both being a reference as well as having tutorials/deeper explanation?

            1 Reply Last reply
            0
            • hyperpape@hachyderm.ioH hyperpape@hachyderm.io

              @b0rk I think for me, certain tools feel old and unixy, and a man page feels right. And then certain tools feel new and I expect a website.

              But also, man pages feel more correct for “what’s the syntax for this specific thing that must have a flag?” and a website or LLM is much more correct for “how do I use this thing in varied ways?”

              b0rk@social.jvns.caB This user is from outside of this forum
              b0rk@social.jvns.caB This user is from outside of this forum
              b0rk@social.jvns.ca
              wrote last edited by
              #153

              @hyperpape I feel the same way but it's also disorienting because I grew up with the Linux coreutils, and they feel old and unixy, but their man pages afaik are unmaintained and I think it really undermined my confidence in man pages as a format even for old unixy-feeling tools

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

                sigsegv@hachyderm.ioS This user is from outside of this forum
                sigsegv@hachyderm.ioS This user is from outside of this forum
                sigsegv@hachyderm.io
                wrote last edited by
                #154

                @b0rk I started out using man pages before the web was a thing and it’s stuck with me. Too often a web search gives you info on a different variant so options don’t work. That’s if you can find details at all, more a now problem than 5-10 years ago. I’ve always been annoyed with the `info` system. It’s been a few years since I last used it. My path is usually try for a man page, then web search, then remember there’s this `info` thing but I usually strike out there too. I do love a good page that has a nice collection of examples, especially for those complicated commands and functions.

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

                  discontinuity@infosec.exchangeD This user is from outside of this forum
                  discontinuity@infosec.exchangeD This user is from outside of this forum
                  discontinuity@infosec.exchange
                  wrote last edited by
                  #155

                  @b0rk to be honest, I'll often look there first, but immediately get overwhelmed and try a web search instead.

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

                    jschauma@mstdn.socialJ This user is from outside of this forum
                    jschauma@mstdn.socialJ This user is from outside of this forum
                    jschauma@mstdn.social
                    wrote last edited by
                    #156

                    @b0rk Probably has to do with how you grew up on the internet. Before StackOverflow, there really wouldn’t have been anything useful on the web; “RTFM” was indeed the generic advice (and sometimes phrased more politely) on Usenet and mailing lists.

                    Also a factor: the quality of the man pages you’re used to (BSD man pages tend(ed?) to be significantly better than “go use the ‘info’ page” Linux default).

                    d6@merveilles.townD 1 Reply Last reply
                    1
                    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")

                      mtrotz@social.librem.oneM This user is from outside of this forum
                      mtrotz@social.librem.oneM This user is from outside of this forum
                      mtrotz@social.librem.one
                      wrote last edited by
                      #157

                      @b0rk This, when I started in IT not much was on the Internet, man pages, another person, or dead tree books were the first place you looked. As time has progressed, search engines slowly surpassed man pages and books, until recently, now I generally will use a man page before a search, or even an ai, but I have a deep instinctual aversion to ai

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

                        jschauma@mstdn.socialJ This user is from outside of this forum
                        jschauma@mstdn.socialJ This user is from outside of this forum
                        jschauma@mstdn.social
                        wrote last edited by
                        #158

                        @b0rk FWIW, I first write the man page, then the code. Helps me clarify what the user wants, how I will interact with the tool. I then generate the README from the man page.

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

                          M This user is from outside of this forum
                          M This user is from outside of this forum
                          machinewitch@mastodon.gamedev.place
                          wrote last edited by
                          #159

                          @b0rk adding because you lumped man with —help, usually I try -h/—help first then look for authoritative docs

                          b0rk@social.jvns.caB 1 Reply Last reply
                          0
                          • M machinewitch@mastodon.gamedev.place

                            @b0rk adding because you lumped man with —help, usually I try -h/—help first then look for authoritative docs

                            b0rk@social.jvns.caB This user is from outside of this forum
                            b0rk@social.jvns.caB This user is from outside of this forum
                            b0rk@social.jvns.ca
                            wrote last edited by
                            #160

                            @machinewitch haha yeah I added the note about --help because 20 different people said "i use --help first then man" 🙂

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

                              hendric@astronomy.cityH This user is from outside of this forum
                              hendric@astronomy.cityH This user is from outside of this forum
                              hendric@astronomy.city
                              wrote last edited by
                              #161

                              @b0rk in my experience, man pages are written by experts for experts with exhaustive information, while a web search is more likely to point you to the most common uses for the command, or other people asking exactly what you need.

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

                                virtuous_sloth@cosocial.caV This user is from outside of this forum
                                virtuous_sloth@cosocial.caV This user is from outside of this forum
                                virtuous_sloth@cosocial.ca
                                wrote last edited by
                                #162

                                @b0rk My recollection is that a lot of searches for command line info would come up with web man pages, like Ubuntu's or... linux.die.net? Only later did forum posts show up.

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

                                  melroy@mastodon.melroy.orgM This user is from outside of this forum
                                  melroy@mastodon.melroy.orgM This user is from outside of this forum
                                  melroy@mastodon.melroy.org
                                  wrote last edited by
                                  #163

                                  @b0rk yeah if I know the tool has a good man page or help. I will try to use that first.

                                  However, not all tools are equal. Some tools have not even a man page or something. In those cases a google search and stackoverflow often will do.

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

                                    melroy@mastodon.melroy.orgM This user is from outside of this forum
                                    melroy@mastodon.melroy.orgM This user is from outside of this forum
                                    melroy@mastodon.melroy.org
                                    wrote last edited by
                                    #164

                                    @b0rk I do a grep or search on the help output or in the man page. Searching on terms..

                                    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

                                      melroy@mastodon.melroy.orgM This user is from outside of this forum
                                      melroy@mastodon.melroy.orgM This user is from outside of this forum
                                      melroy@mastodon.melroy.org
                                      wrote last edited by
                                      #165

                                      @b0rk Ai is also not helping, if you are using llm? A good man page or help output can correct AIs.

                                      1 Reply Last reply
                                      0
                                      • kaleissin@wandering.shopK kaleissin@wandering.shop

                                        @b0rk @karabaic For the BSD's, you kinda expect there to be man-pages. For linux, it's a crap shoot if they exist or not 😞

                                        melroy@mastodon.melroy.orgM This user is from outside of this forum
                                        melroy@mastodon.melroy.orgM This user is from outside of this forum
                                        melroy@mastodon.melroy.org
                                        wrote last edited by
                                        #166

                                        @kaleissin @b0rk @karabaic I also wish there are more man pages under Linux.

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

                                          fcbsd@hachyderm.ioF This user is from outside of this forum
                                          fcbsd@hachyderm.ioF This user is from outside of this forum
                                          fcbsd@hachyderm.io
                                          wrote last edited by
                                          #167

                                          @b0rk getting good documentation is the important bit. One good thing about mandoc is you can render your man page as html and serve it from you website.

                                          1 Reply Last reply
                                          0
                                          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