Ask HN: How can I get better at bash?
1–10 of 195 posts
Re: Ask HN: How can I get better at bash?
#2Re: Ask HN: How can I get better at bash?
#3Re: Ask HN: How can I get better at bash?
#4Re: Ask HN: How can I get better at bash?
#5Aliases are something I use a lot - it's very basic but just having "big long command with options" aliases to something easy to remember makes it much more likely I will not make mistakes, can repeat it easily in loops.
Another thing that complements using bash effectively are using other applications config files. As soon as I have a new host to interact with I add it to my ssh.config file - then any scripting I need to do I don't need to deal with any special files. Other files like ~/.netrc or ~/.pgpass make my shell sessions that much more productive. For some reason many people don't bother ever updating these and rely on the shell history to do anything more than once.
CommandlineFu (http://www.commandlinefu.com/commands/browse) has some nice one liners and there's often some gems on ServerFault (https://serverfault.com/questions/tagged/bash) - just browsing those for topics matching your workflow can be very fruitful.
I've found the more I do anything at the shell of any complexity I end up writing a small python command line client to do any heavy lifting. Argparse (https://docs.python.org/3/library/argparse.html) makes this trivially easy and then I can use regular shell "glue" to combine a few commands together.
Re: Ask HN: How can I get better at bash?
#6http://www.tldp.org/LDP/Bash-Beginners-Guide/html/
EDIT : Additional links -
Advanced - http://tldp.org/LDP/abs/html/
Bash programming - http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
Re: Ask HN: How can I get better at bash?
#7Helping you how? If you actually have a problem you are trying to solve, then do just that. My experience with command line came from solving problems I had. Today I do a lot in the command line and I am learning new things all the time. However if I just wanted to get "better" at it, then I don't even know where to start because there is no clear goal.
Re: Ask HN: How can I get better at bash?
#8Re: Ask HN: How can I get better at bash?
#9Here is the path for learning bash : https://learn-anything.xyz/operating-systems/unix/shells/bas...
Re: Ask HN: How can I get better at bash?
#10learn from this wiki that has many tutorials and good examples http://wiki.bash-hackers.org/bash4