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

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

                            onyxraven@hachyderm.ioO This user is from outside of this forum
                            onyxraven@hachyderm.ioO This user is from outside of this forum
                            onyxraven@hachyderm.io
                            wrote last edited by
                            #168

                            @b0rk I feel this. The part about search is the main point. keyword/regex search in man has always been a bit awkward even with helpers, google used to be great at bringing up the official site or man pages (which, even if it was for a diferent distro, at least help with context).

                            usually I try `-h` or `--help` first, then search, 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")

                              ratfactor@mastodon.artR This user is from outside of this forum
                              ratfactor@mastodon.artR This user is from outside of this forum
                              ratfactor@mastodon.art
                              wrote last edited by
                              #169

                              @b0rk I'm a "I'd look there first". Some of my reasons:

                              1. I'm a recent OpenBSD convert.

                              2. You already mentioned the decline of Web search.

                              3. The man documentation is current for the *installed version* of the program.

                              4. My "weirdo" reason is that I find the Web incredibly distracting and addicting. Using man, even if it takes a little longer to get an answer, keeps me from distracting myself, which ultimately saves time.

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

                                A This user is from outside of this forum
                                A This user is from outside of this forum
                                alexthesortofok@hachyderm.io
                                wrote last edited by
                                #170

                                @b0rk if I'm gonna Google something then I need to switch windows and will probably get distracted by whatever other tabs I had open ("oh I'll just respond to this email quick ..."). `man thing` or `thing --help` is right there in the terminal, no extra steps needed.

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

                                  jarhill0@hachyderm.ioJ This user is from outside of this forum
                                  jarhill0@hachyderm.ioJ This user is from outside of this forum
                                  jarhill0@hachyderm.io
                                  wrote last edited by
                                  #171

                                  @b0rk For me, the man page (or --help) is more accessible if I'm already on the command line. I'll open the man page, search for a few keywords, and then resort to a web search if needed.

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

                                    geeksam@ruby.socialG This user is from outside of this forum
                                    geeksam@ruby.socialG This user is from outside of this forum
                                    geeksam@ruby.social
                                    wrote last edited by
                                    #172

                                    @b0rk I'd look there first, because it's immediately available and relatively quick to scan or search for likely strings. That doesn't mean I'll find the answer, though. -h is L1 cache; --help is L2; stfw is RAM 😜

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

                                      thomastc@mastodon.gamedev.placeT This user is from outside of this forum
                                      thomastc@mastodon.gamedev.placeT This user is from outside of this forum
                                      thomastc@mastodon.gamedev.place
                                      wrote last edited by
                                      #173

                                      @b0rk I start with --help because if it doesn't work, it's unlikely to do anything undesirable either.
                                      Then I try -h.
                                      Then the man page.
                                      If all those fail, a web search.

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

                                        sj@social.scriptjunkie.usS This user is from outside of this forum
                                        sj@social.scriptjunkie.usS This user is from outside of this forum
                                        sj@social.scriptjunkie.us
                                        wrote last edited by
                                        #174

                                        @b0rk if I am looking for a specific flag and I know the keyword I'm looking for, man page it is, but if I just have a fuzzy idea, like "find all files created after June 4" then typing that into an AI spits out the right flags far easier than scrolling through pages of "-newermt" in a man page

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

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

                                          @b0rk if I look at the man page first, its because I want to stay on the command line. I forgot that tldr existed, so glad to be reminded of that in this thread.

                                          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