this post was submitted on 16 Oct 2025
24 points (100.0% liked)

Linux

13653 readers
115 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

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.

all 15 comments
sorted by: hot top controversial new old
[–] SethranKada@lemmy.ca 11 points 6 days ago (1 children)

I use tldr myself, but it's just an easier to read version of man pages, so it doesn't directly help with what your asking for. Sorry

[–] lka1988@lemmy.dbzer0.com 6 points 6 days ago (1 children)

I collect things and put them in my personal notes for reference later.

Naturally, I end up googling it anyway.

[–] spacelord@sh.itjust.works 1 points 6 days ago

⬆️ 😅

[–] vk6flab@lemmy.radio 6 points 6 days ago (1 children)

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@lemmy.dbzer0.com 5 points 6 days ago* (last edited 6 days ago) (1 children)

I'm also a fan of tldr.

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

[–] vk6flab@lemmy.radio 1 points 6 days ago

Wait until you get your head around awk 😇

[–] highball@lemmy.world 1 points 4 days ago

eg although I usually forget to use it and just go with manpages.

I have several decades of using manpages, so you can understand the manpage reflex. If you don't have that manpage muscle memory, I'd say give eg a shot.

[–] strlcpy@lemmy.sdf.org 3 points 6 days ago

man, but preferably BSD ones. They're terrific. It pays to get comfortable with the pager (man less), but for web rendering, https://man.openbsd.org/ is great. I don't know why these other man sites use monospace fonts, the language man pages are written in was literally made for quality typesetting!

[–] SoftestSapphic@lemmy.world 1 points 5 days ago

Commands that are too long to memorize I have a .txt I can copy/paste from

[–] sga@piefed.social 1 points 5 days ago

maybe programs liek navi (or any of the other billion snippets managers) can help you. essentially, these have list of commonly used commands, and then you open it with some keybinding, and you will search, lets say git commit (you know you want to commit, but lets say you forget that flag to give in line message is '-m', then command git commit -m "message" would appear. you would select it, and it should either be typed into terminal, or copied to clipboard, or some other way to quicly enter it. some others do this by autocompleting from suggestions. I have something handrolled for the purpose (which is not in a state to be recommended to others), so i would say just search snippet/command manager/helper/complete, and you should get tonnes of them. i remember one of them, that is navi.

you may also like to check out fish shell (or if you do not mind setting up zsh, if you want posix compatibility as well), as it has a very superior (compared to ootb bash) autocomplete, which will complete commands, and their flags, and sometimes also gives description of what that subcommand/flag does.

[–] frongt@lemmy.zip 2 points 6 days ago

Either the manual or I google it, honestly.

[–] masterofn001@lemmy.ca 1 points 6 days ago* (last edited 6 days ago)

Does nobody use info?

So much more in depth than any manpage.

Granted it doesn't contain every app installed, but it gives very detailed and very verbose explanations, examplea, options, use cases, caveats, warnings, etc, for all of the most essential commands and functions

$ info

In the program these are basic commands :

-I # sets searching to always case insensitive -very necessary (upper case I)
/ # search for pattern
n # search forward
N # search back

You can also search from command line using

Info -k [pattern]
[–] jutty@blendit.bsd.cafe 1 points 6 days ago

I wrote a small script that takes a query as its single argument and if it finds a matching filename in a given directory it shows that in a pager. If it doesn't, it uses ripgrep to search inside that directory and returns the filenames in a picker. If I prepend the filename with e, it opens that file (either existing or new) in an editor. Then I track that directory with Git.

This way I have a quick way to store, find and retrieve notes from the terminal itself.