There's a small book about shell by Zed Shaw, recommended: http://cli.learncodethehardway.org/book/
Ask HN: how did you learn the command line?
31–40 of 59 posts
Re: Ask HN: how did you learn the command line?
#32Everytime I wanted to do something in the command line as well as everytime I had to do something in it, I would then write down what the command was in a text file as well as my understand of what the command did.
If you program a keyboard shortcut to launch the text file with but one keystroke it's a not as bad as it sounds.
The reason I did this was because I would always enter a command and totally forget it and then need to look it up again and so I forced myself to stop wasting time by compiling my own command line glossary.
If you are new to UNIX, don't go poking around the MAN pages because you'll be lost, discouraged and less likely to acheive your goal of terminal excellency.
It's really not something you can just pickup overnight unless you're very very diligent and proficient with another language and very familiar with all things computers. If you can take a Unix course some where in person, do that. always the best to have a pro help you out while you're starting.
And one last point of particular importance. Respect the Sudo. I can't tell you how much frustration I endured while messing with the sudo--it's not a good thing to be bushwhacking no the command like as the root user which I did at first because I am just a curious kid and didn't know any better.
My advice is to abstain from messing with things like the ACL, file ownership, and the wheel group until you know the hierarchy cold.
Re: Ask HN: how did you learn the command line?
#33Have an IRC connection to Freenode open so you can ask about these sorts of things that are more easily understood by humans (#bash, ##linux, ##workingset are good channels to be in). If you're really lucky, you have some knowledgeable mentor around who doesn't mind you asking them about the best way to perform some task (I was not so blessed).
Re: Ask HN: how did you learn the command line?
#34-Sam's Teach Yourself Unix in 24 Hours
-Sam's Teach Yourself Shell Programming in 24 Hours
These won't make you a shell genius immediately, but they'll create a good basis for future, specialized learning.
Also, I try not to be a material snob, but buying the book instead of using a website or .pdf file made a world of a difference (especially during a morning commute).
Re: Ask HN: how did you learn the command line?
#35Re: Ask HN: how did you learn the command line?
#36Re: Ask HN: how did you learn the command line?
#37Re: Ask HN: how did you learn the command line?
#38Today, I'd recommend working through Linux From Scratch. You'll develop a rich understanding of how a UNIX-like OS fits together, including a fair bit of shell functionality: http://www.linuxfromscratch.org/lfs/
My favourite dead-tree UNIX book would be UNIX Power Tools, 3rd Edition (http://www.amazon.com/Power-Tools-Third-Shelley-Powers/dp/05...). It may be a while before it's a truly valuable resource, but keep it in mind.
Re: Ask HN: how did you learn the command line?
#39Re: Ask HN: how did you learn the command line?
#40Know how to get help with specific topics. (1) At the terminal, via man or apropos and (2) online by googling. These are useful when you have a specific task you want to get done, not so much otherwise. Therefore, (3) Try to do things at the command line that you would normally do via mouse. If you have no idea how, google or 'apropos'. If you learn of a tool and have no idea how to use it, google more or 'man'. (3a)…
Turns out it's a synonym for "man -k".