Decide to be awesome. 7 October 2010. Baltimore Node.
For the novice, commands-line interface commands can appear daunting:
sudo gobbledegook blah_blah -w -t -f
However, it is important to note that even experienced users often cut and paste commands (from a guide or manual) into the command-line terminal; they do not memorize them.
It is important, of course, to know how to use the command-line terminal - and anyone who can manage typing, backspacing, and cutting and pasting can manage the command-line terminal (it is not more difficult than that).
from “Using The Terminal” - https://help.ubuntu.com/community/UsingTheTerminal
streams: 2>&1, >, >>, <, |
Colors! Start with \e[ then a color code (40's for backgrounds, 30's for foregrounds, mix it up with ;'s), then the letter m. Return to default with \e[0m.
echo -e "\e[41m\t\e[47m\t\e[44m\t\e[40;33m\tTHESE COLORS DON'T RUN\e[0m"
Copy and paste that fine fellow and absorb an eyeful.
This is way too deep for a "finding your way around" class. Besides, you should use Ruby (or Python or Perl) if it's anything complex. Seriously, Bash is good for one liners, but if you’re going to have to maintain it, unless you have compelling reasons to the contrary, use a “real” scripting language. Preferably an object oriented one with a healthy standard library.
“Introduction to Command Line Linux” - http://www.physics.ubc.ca/mbelab/computer/linux-intro/html/index.html
“Advanced Bash Scripting” - http://tldp.org/LDP/abs/html/index.html
“In the Beginning was the Command Line” - http://www.cryptonomicon.com/beginning.html
This is Creative Commons Licensed. http://creativecommons.org/licenses/by-nc/3.0/