There is lots of books, videos and manuals about bash. So it is hard to tell if one is good or not. By advanced bash I mean regular expressions, complex scripts, and kind-of obscure options of basic commands no beginner tutorial tells about.
There is lots of books, videos and manuals about bash. So it is hard to tell if one is good or not. By advanced bash I mean regular expressions, complex scripts, and kind-of obscure options of basic commands no beginner tutorial tells about.
My personal basic tools for learning:
man bash. That’s the documentation for everything. It’s very careful and serious though, so sometimes you need…At my current level of experience I need mostly
man bash, and occasionally all of the rest. Before I used a lot of stackoverflow and simply thinking of what I even want.I have a tough time reading man pages. It seems to be harder since everything went to systemd. After 20 years of Linux use, I still feel really dumb. I’m just now getting better with Vim keying.
Is there a trick to reading man page formats? I’m a bit autistic and not an intuitive communicator. Sometimes I wish man pages had more example commands. I also wish there was a way to freeze the format at the top while scrolling options so I didn’t need to have 3 windows open to see format, scroll options, and have another open for actually typing.
Unfortunately I don’t think I know the answers to your questions. I do what you say: open one or multiple tabs in my terminal emulator if I need to read multiple parts at the same time. I press
/and then type in some case-sensitive text if I want to search for occurrences of this text. Or I press?and some text to search backwards. And the rest I “lamely” do with pressing up-down arrows…Learning by example is exactly the second layer I’m referring to in my text above. Man pages are very… formal. If I don’t yet understand what they even talk about, I need examples before their concepts become “native” to me.
I can’t “teach” well really - but I’m explaining how this works for me. I used to hate man pages, now I love them. Even a very difficult one like
man bash. There is a point in the learning curve where it gets a lot better…That’s still useful information. I use the Linux Command Library from FDroid. It is really good for seeing similar commands, variations, one liner examples, cheat sheets for Vim/Emacs, etc.
I can recommend that for others like me who have trouble with commands.