Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • 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 (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Ikke-kategoriseret
  3. do you have a favourite man page?

do you have a favourite man page?

Planlagt Fastgjort Låst Flyttet Ikke-kategoriseret
72 Indlæg 53 Posters 10 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • b0rk@social.jvns.caB b0rk@social.jvns.ca

    do you have a favourite man page? thinking of writing a short blog post exploring man pages and what makes a good one and I'd love some more examples

    my contribution: I think it's cool that `man curl` includes an example for every single option

    pounce@types.plP This user is from outside of this forum
    pounce@types.plP This user is from outside of this forum
    pounce@types.pl
    wrote sidst redigeret af
    #30

    @b0rk i always think hier(7) is really neat

    b0rk@social.jvns.caB stonebear2@hachyderm.ioS 2 Replies Last reply
    0
    • b0rk@social.jvns.caB b0rk@social.jvns.ca

      do you have a favourite man page? thinking of writing a short blog post exploring man pages and what makes a good one and I'd love some more examples

      my contribution: I think it's cool that `man curl` includes an example for every single option

      nabnux@piaille.frN This user is from outside of this forum
      nabnux@piaille.frN This user is from outside of this forum
      nabnux@piaille.fr
      wrote sidst redigeret af
      #31

      @b0rk the one I've used the most is `man bash`, because it's not just a man page, it's the documentation for the whole scripting language!

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

        do you have a favourite man page? thinking of writing a short blog post exploring man pages and what makes a good one and I'd love some more examples

        my contribution: I think it's cool that `man curl` includes an example for every single option

        greenman@diaspodon.frG This user is from outside of this forum
        greenman@diaspodon.frG This user is from outside of this forum
        greenman@diaspodon.fr
        wrote sidst redigeret af
        #32

        @b0rk

        I love the man bash
        But although the lvm commands man. With useful examples that cover lot of case !

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

          do you have a favourite man page? thinking of writing a short blog post exploring man pages and what makes a good one and I'd love some more examples

          my contribution: I think it's cool that `man curl` includes an example for every single option

          derickr@phpc.socialD This user is from outside of this forum
          derickr@phpc.socialD This user is from outside of this forum
          derickr@phpc.social
          wrote sidst redigeret af
          #33

          @b0rk I do like it too, even thought it makes the man page 7195 lines long 😃 .

          401matthall@mastodon.xyz4 1 Reply Last reply
          0
          • b0rk@social.jvns.caB b0rk@social.jvns.ca

            do you have a favourite man page? thinking of writing a short blog post exploring man pages and what makes a good one and I'd love some more examples

            my contribution: I think it's cool that `man curl` includes an example for every single option

            dertseha@dice.campD This user is from outside of this forum
            dertseha@dice.campD This user is from outside of this forum
            dertseha@dice.camp
            wrote sidst redigeret af
            #34

            @b0rk I don't believe to have a favourite. Yet, due to the rule (rather 'tip') "'Select' Isn't Broken", select(2) and the corresponding story behind the tip from the book "Pragmatic Programmer" comes to my mind 🙂

            1 Reply Last reply
            0
            • derickr@phpc.socialD derickr@phpc.social

              @b0rk I do like it too, even thought it makes the man page 7195 lines long 😃 .

              401matthall@mastodon.xyz4 This user is from outside of this forum
              401matthall@mastodon.xyz4 This user is from outside of this forum
              401matthall@mastodon.xyz
              wrote sidst redigeret af
              #35

              @derickr @b0rk

              ❤ It's searchable.

              That makes it alright. 😄

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

                do you have a favourite man page? thinking of writing a short blog post exploring man pages and what makes a good one and I'd love some more examples

                my contribution: I think it's cool that `man curl` includes an example for every single option

                stonebear2@hachyderm.ioS This user is from outside of this forum
                stonebear2@hachyderm.ioS This user is from outside of this forum
                stonebear2@hachyderm.io
                wrote sidst redigeret af
                #36

                @b0rk my favourite was an early version of less(1), whose one-line synopsis was:

                less - better than more(1)

                Which it was, because you could go _backwards_... that was the first program I ever compiled from downloaded source.

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

                  do you have a favourite man page? thinking of writing a short blog post exploring man pages and what makes a good one and I'd love some more examples

                  my contribution: I think it's cool that `man curl` includes an example for every single option

                  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 sidst redigeret af
                  #37

                  I think my favourite man page example so far is this rsync man page (via @shnizmuffin) https://www.man7.org/linux/man-pages/man1/rsync.1.html

                  it gives examples BEFORE giving an exhaustive list of options!

                  the synopsis just says "rsync [OPTION...] SRC... [DEST]" instead of giving you an exhaustive list of options like "-ABCFGHILOPRSTUWabcdefghiklmnopqrstuvwxy1%"!

                  there's an "OPTION SUMMARY" section that gives you a 1-line summary of each option! (this feels SO SO much useful than the normal SYNOPSIS to me)

                  (2/?)

                  merms@mastodon.socialM shnizmuffin@toots.inbutts.lolS adardis@mstdn.socialA 3 Replies Last reply
                  0
                  • b0rk@social.jvns.caB b0rk@social.jvns.ca

                    do you have a favourite man page? thinking of writing a short blog post exploring man pages and what makes a good one and I'd love some more examples

                    my contribution: I think it's cool that `man curl` includes an example for every single option

                    kestral@masto.hackers.townK This user is from outside of this forum
                    kestral@masto.hackers.townK This user is from outside of this forum
                    kestral@masto.hackers.town
                    wrote sidst redigeret af
                    #38

                    @b0rk it's also my favourite hairstyle

                    1 Reply Last reply
                    0
                    • pounce@types.plP pounce@types.pl

                      @b0rk i always think hier(7) is really neat

                      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 sidst redigeret af
                      #39

                      @pounce that's cool, I'd never seen that

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

                        @shnizmuffin what do you like about it? (also: you mean this one right? https://linux.die.net/man/1/rsync)

                        i like that it takes a different approach to the SYNOPSIS and puts examples before the comprehensive list of all options, I haven't seen that a lot

                        shnizmuffin@toots.inbutts.lolS This user is from outside of this forum
                        shnizmuffin@toots.inbutts.lolS This user is from outside of this forum
                        shnizmuffin@toots.inbutts.lol
                        wrote sidst redigeret af
                        #40

                        @b0rk It leads with examples from most common to least common, and sorts its many options following similar logic.

                        It's basically ...

                        1. WTF am I looking at. (--verbose et al)
                        2. Sensible defaults (--archive)
                        3. How do I change one thing (--no-OPTION)
                        4. Filepath stuff
                        5. Link stuff
                        6. Permission stuff
                        7. File metadata stuff
                        8. Config stuff
                        9. Filter stuff
                        10. Shit one person needed once
                        11. --human-readable
                        12. please don't run forever
                        13. --version, --help

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

                          I think my favourite man page example so far is this rsync man page (via @shnizmuffin) https://www.man7.org/linux/man-pages/man1/rsync.1.html

                          it gives examples BEFORE giving an exhaustive list of options!

                          the synopsis just says "rsync [OPTION...] SRC... [DEST]" instead of giving you an exhaustive list of options like "-ABCFGHILOPRSTUWabcdefghiklmnopqrstuvwxy1%"!

                          there's an "OPTION SUMMARY" section that gives you a 1-line summary of each option! (this feels SO SO much useful than the normal SYNOPSIS to me)

                          (2/?)

                          merms@mastodon.socialM This user is from outside of this forum
                          merms@mastodon.socialM This user is from outside of this forum
                          merms@mastodon.social
                          wrote sidst redigeret af
                          #41

                          @b0rk @shnizmuffin if something needs a solid man page, it's probably rsync. 😄

                          Destroyer of files.
                          With great power comes great responsibility.

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

                            do you have a favourite man page? thinking of writing a short blog post exploring man pages and what makes a good one and I'd love some more examples

                            my contribution: I think it's cool that `man curl` includes an example for every single option

                            multisn8@mastodon.catgirl.cloudM This user is from outside of this forum
                            multisn8@mastodon.catgirl.cloudM This user is from outside of this forum
                            multisn8@mastodon.catgirl.cloud
                            wrote sidst redigeret af
                            #42

                            @b0rk@jvns.ca i often work offline, so i like long and elaborate man pages that go into every absurd detail but also note in-program help mechanisms

                            • nvim because it provides a jump start to :Tutor and :help quickref
                            • zshall because it explains All the syntax
                            1 Reply Last reply
                            0
                            • b0rk@social.jvns.caB b0rk@social.jvns.ca

                              do you have a favourite man page? thinking of writing a short blog post exploring man pages and what makes a good one and I'd love some more examples

                              my contribution: I think it's cool that `man curl` includes an example for every single option

                              sw1nn@fosstodon.orgS This user is from outside of this forum
                              sw1nn@fosstodon.orgS This user is from outside of this forum
                              sw1nn@fosstodon.org
                              wrote sidst redigeret af
                              #43

                              @b0rk In the attention to detail category, the BUG detailed in the NetBSD sleep(1) man page is a favourite:

                              https://man.netbsd.org/sleep.1#BUGS

                              1 Reply Last reply
                              0
                              • shnizmuffin@toots.inbutts.lolS shnizmuffin@toots.inbutts.lol

                                @b0rk It leads with examples from most common to least common, and sorts its many options following similar logic.

                                It's basically ...

                                1. WTF am I looking at. (--verbose et al)
                                2. Sensible defaults (--archive)
                                3. How do I change one thing (--no-OPTION)
                                4. Filepath stuff
                                5. Link stuff
                                6. Permission stuff
                                7. File metadata stuff
                                8. Config stuff
                                9. Filter stuff
                                10. Shit one person needed once
                                11. --human-readable
                                12. please don't run forever
                                13. --version, --help

                                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 sidst redigeret af
                                #44

                                @shnizmuffin i didn’t even notice the option sorting, that’s so good

                                1 Reply Last reply
                                0
                                • ludonaut@timetheft.socialL ludonaut@timetheft.social

                                  @thomastc @b0rk glad to help 🙂

                                  i regularly use that page to show the young ones at work why ^H (Ctrl-H) is backspace, ^I is tab and ^[ is literally escape, it's just a flipped bit in ascii (which i suspect is the reason the columns are laid out like that)

                                  ives@mstdn.socialI This user is from outside of this forum
                                  ives@mstdn.socialI This user is from outside of this forum
                                  ives@mstdn.social
                                  wrote sidst redigeret af
                                  #45

                                  @ludonaut @thomastc @b0rk Is my memory making up things, or did there used to be an ebcdic(7) page as well at some time?

                                  1 Reply Last reply
                                  0
                                  • pounce@types.plP pounce@types.pl

                                    @b0rk i always think hier(7) is really neat

                                    stonebear2@hachyderm.ioS This user is from outside of this forum
                                    stonebear2@hachyderm.ioS This user is from outside of this forum
                                    stonebear2@hachyderm.io
                                    wrote sidst redigeret af
                                    #46

                                    @pounce Oooooh, today I learned! @b0rk

                                    1 Reply Last reply
                                    0
                                    • nabnux@piaille.frN nabnux@piaille.fr

                                      @b0rk the one I've used the most is `man bash`, because it's not just a man page, it's the documentation for the whole scripting language!

                                      technicaladept@techhub.socialT This user is from outside of this forum
                                      technicaladept@techhub.socialT This user is from outside of this forum
                                      technicaladept@techhub.social
                                      wrote sidst redigeret af
                                      #47

                                      @nabnux @b0rk many years ago I was told to read man bash. I referenced it many more times over the years. Mostly when scripting loops.

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

                                        @thatandromeda I have a hard time with them too, that's why I've been thinking about this

                                        benjamingeer@piaille.frB This user is from outside of this forum
                                        benjamingeer@piaille.frB This user is from outside of this forum
                                        benjamingeer@piaille.fr
                                        wrote sidst redigeret af
                                        #48

                                        @b0rk @thatandromeda Often I pipe the output of `man` into `less`, then try to search for something like -n, which returns way too many results (e.g. mentions of that option before its definition). I wonder if a better `man` could be made that would let me search through an *index* of options instead of doing a full-text search.

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

                                          do you have a favourite man page? thinking of writing a short blog post exploring man pages and what makes a good one and I'd love some more examples

                                          my contribution: I think it's cool that `man curl` includes an example for every single option

                                          shanecelis@mastodon.gamedev.placeS This user is from outside of this forum
                                          shanecelis@mastodon.gamedev.placeS This user is from outside of this forum
                                          shanecelis@mastodon.gamedev.place
                                          wrote sidst redigeret af
                                          #49

                                          @b0rk Why were example usages shunned by many man pages I'll never understand.

                                          1 Reply Last reply
                                          0
                                          Svar
                                          • Svar som emne
                                          Login for at svare
                                          • Ældste til nyeste
                                          • Nyeste til ældste
                                          • Most Votes


                                          • Log ind

                                          • Har du ikke en konto? Tilmeld

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          Graciously hosted by data.coop
                                          • First post
                                            Last post
                                          0
                                          • Hjem
                                          • Seneste
                                          • Etiketter
                                          • Populære
                                          • Verden
                                          • Bruger
                                          • Grupper