Any really good source to learn advanced bash?
2026-07-22 17:50 UTC
Replies (11)
-
@CallMeAl@piefed.zip 2026-07-22 18:00
The Advanced Bash-Scripting Guide and Classic Shell Scripting are both great IMO.
-
@a_fancy_kiwi@lemmy.world 2026-07-22 18:06
I run Qwen2.5 Coder 14B locally for boiler plate stuff that I then edit myself and it’s been great. I write code very irregularly so using an LLM is great when I know what I want to do, how to logically do it, but I’ve since forgotten the syntax.
-
@I_Am_Jacks_____@sh.itjust.works 2026-07-22 18:22
You Suck at Programming on Youtube
-
@RyanUrq1328@programming.dev 2026-07-22 18:37
www.youtube.com/channel/UCMN0a7GHQnC6H74SmCGSmdw YSAP, does a lot of basics, but has some videos about more obscure stuff too Well delivered and interesting
-
@Franconian_Nomad@feddit.org 2026-07-22 19:46
Shh, LLMs are quite good at stuff like this. Let them teach you. Use a command line harness like opencode or whatever tickles your fancy. Use a local model like Qwen 3.6 if you can, and start having fun. You might to have to learn how to use a LLM effectively though, to mitigate their disadvantages like hallucinating and their non-deterministic nature. Also, they want to do everything with curl, maybe find some alternatives to that.
-
@vas@lemmy.ml 2026-07-22 21:39
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… Search in internet if you think your particular question is very “repeatable”. Stackoverflow used to be good, but now they’re all “AI AI AI by the way have ypu heard about AI?”. So I’m not recommending it anymore. Run shellcheck to read your code and give suggestions/warnings. It’s a great tool for learning, too, besides the primary goal of reviewing code to be production-ready. Sometimes, with extreme care, ask an LLM to review your code or give siggestions. It tends to hallucinate a lot, makes up wrong and unexisting stuff, but sometimes it’s useful, too. Especially at finding bugs. Again, it can be useful, but use with care. Oh, and it can actually be great at explaining, too. Throw it some syntax/code and it’ll explain wtf is going on. This part is very reliable and good. At my current level of experience I need mostly man bash, before I used a lot of stackoverflow and simply thinking of what I even want.
-
@JTskulk@lemmy.world 2026-07-22 22:45
Everyone here is throwing resources about where to learn more about Bash instead of answering the question. I’d say regex is good to learn regardless as it’s pretty much used everywhere, but advanced bash scripting probably isn’t worth the trouble unless you’re using sysvinit scripts or something. Bash was really the first language I learned and nowadays I find myself starting scripts in bash and then quickly converting over to python the moment I have to manipulate strings. Python is much more straightforward in that regard.
-
@ranzispa@mander.xyz 2026-07-23 00:45
To be fair, bash is pretty simple. You can find the syntax for regular expressions, string manipulation and stuff like that by searching the syntax on the internet. It is not too long. You can read the manual, it explains all that. That should be enough, I would not say you need much more than that. Now, if you’re talking about using bash scripts professionally, I’d say you should focus on studying programming in general, not really focused on bash scripting. But at that point you’ll realize that bash scripts are pretty much a useful quick utility, not something you’d really want to write complex logic with. If you want to be proficient in using your system, rather than learning the whole syntax of bash I’d say knowing what the GNU tools are is very much more useful. You want to get the number of unique values in a column of CSV? cut | uniq | wc at this point bash just becomes a way to put pieces together and you do not need very advanced features.
-
@MonkderVierte@lemmy.zip 2026-07-23 10:52
shellcheck
-
@vi21@lemmy.ml 2026-07-23 14:13
The hard part for me was dynamic scope, which I found it was explained nicely in The Common Lisp Condition System: Beyond Exception Handling with Control Flow Mechanisms. Since then I have begun to feel that dynamic scope in Bash is a feature, not limitation.
-
@GaumBeist@lemmy.ml 2026-07-23 18:44
Not to be that gal, but… the GNU site’s Bash Reference Manual documents everything you could ever want to know right up until you get into weird edge cases and abusing bugs/unintended behaviors for your own nefarious purposes. For that, others have pointed to YSAP, whom I will also recommend. I can’t find it right now, but I swear in some videos he mentions a website or forum where people discussi Bash extremely in-depth, and that is end-game stuff (the stuff you learn right before you start auditing the code yourself or editing the source to enable your own custom behaviors)