What you're doing is what I did. I would say, OK, I need to do this now, look it up, study why it works, and do it. You may find this [0] useful as well, I did read it when I was starting out. The Linux tutorial and scripting tutorials are most related to what you want, but everything here is good.
[0] https://ryanstutorials.net/