• ForthEorlingas@lemmy.ca
    link
    fedilink
    arrow-up
    32
    arrow-down
    1
    ·
    1 year ago

    On a related note, the website cheat.sh is also a great resource. Just curl it with the command you want to learn about as the endpoint.

    For example, if I want to learn about grep, just open a terminal and

    $ curl cheat.sh/grep
    

    And a short and sweet description with examples will be returned.

      • 347_is_p69@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Cheat.sh has usage examples, with short descriptions. It’s purpose is remembering something you have already done. It’s much more similar to --help flag than full manpage.

        Reading the cheat.sh of a command I don’t know at all is rarely useful. I use it when simply listing the flags isn’t enough, or the output unhelpfully long. curl returns so fast that it’s faster to request data from external server than read through three paragraphs.

        If you haven’t tried it, give it a go. The whole point is to be very quick to type and give back text that is fast to read.

      • ISOmorph@feddit.de
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        I added a custom function to my bashrc:

        cheat-sheet() {
        	curl cheat.sh/"$1"
        }
        

        Then you can call cheat-sheet grep for example