What are some good bash tutorials? I would like to learn more about the bash shells commands and how to use them.
4 Answers
Advanced Bash Scripting Guide from The Linux Documentation Project pages.
(Also available as a PDF file if you prefer that).
- Recommended online resources for learning bash scripting
- How to learn your way through Linux’s shell
General search tags:
- Stackoverflow: bash+scripting, bash+script
- Serverfault: bash+scripting, bash+script, etc
- Command Line Fu -- for quick tricks (think of them as short tutorials)
Empty at this time... :-)
- Superuser: bash+scripting, bash+script
But, don't go by that.
-
I don't know exactly why, but I think that the Advanced Bash Scripting Guide is very unfriendly. I never found an answer in that guide. Greg's wiki, and especially the FAQ, as mentioned by spatz, are great for beginners.– mrucciApr 30, 2010 at 18:33
-
@mrucci, On the contrary, I can remember a large number of times looking up things directly in the guide with Google searches. Meanwhile, Greg's Wiki links referred by
spatz
are good too.– nikMay 1, 2010 at 2:46 -
Yes, the problem is that every time I search google for "bash [something]" I found and follow the ABSG link but very rarely I found an answer in the cryptict, badly organized and presented material.– mrucciMay 1, 2010 at 7:08
-
Well, there is at least one person finding TLDP ABS Guide less useful -- So, I'm up-voting
spatz's
answer too...– nikMay 1, 2010 at 8:24
I find Greg's Bash Guide and Bash FAQ very helpful, even for beginners.
Also, I remember learning bash from Daniel Robbins' series, Bash by example, which is a very good read in my opinion.
If you don't mind to pay for the best resources in book format:
- http://oreilly.com/catalog/9780596526788/ (Bash Cookbook)
- http://oreilly.com/catalog/9780596009656/ (Learning Bash - slightly outdated)
- http://oreilly.com/catalog/9780596527761/ (bash Quick Reference - I do use it frequently...)
- http://oreilly.com/catalog/9780596003302/ (Unix power tools - OK, not only bash. But it's a must have)
This is a great video tutorial for command line editing: http://teachmetocode.com/screencasts/bash-command-line-editing/