I dont enjoy web searching every time. Id like to just have some sort of document I can read or search to find certain commands.

I do have the man pages on kiwix but is a little complex to navigate. Like if I want to learn how grep works, what’s the best way. Or if I forgot lshw, how do you go about looking up a command that does a certain thing like list out hardware etc.

Showing examples would be super helpful too, like “here’s a typical dd command for a drive image clone”

Preferably a desktop/android app or something that helps with this would be nice.

  • Onno (VK6FLAB)
    link
    fedilink
    English
    62 days ago

    The commands man and apropos are your friends to get you started.

    Learning how to use specific tools like grep, sed and awk is a case of getting started by using them. Most of the subsequent learning process will focus around how to create regular expressions (regex), for which there’s also a manpage.

    The “typical example” for a dd command is like saying, “here’s a great way to shoot yourself in the foot”. A better way is to understand that most of these tools follow the UNIX philosophy:

    1. Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new “features”.
    2. Expect the output of every program to become the input to another, as yet unknown, program. Don’t clutter output with extraneous information. Avoid stringently columnar or binary input formats. Don’t insist on interactive input.
    3. Design and build software, even operating systems, to be tried early, ideally within weeks. Don’t hesitate to throw away the clumsy parts and rebuild them.
    4. Use tools in preference to unskilled help to lighten a programming task, even if you have to detour to build the tools and expect to throw some of them out after you’ve finished using them.

    Once you “grok” that, you’ll be in a much better place.

    • Lka1988
      link
      fedilink
      English
      5
      edit-2
      2 days ago

      I’m also a fan of tldr.

      sed is starting to click for me, which is nice, only took 10 years.