On Thu, Dec 11, 2008 at 10:14:55AM -0500, G. Matthew Rice wrote: > "G. Matthew Rice" <[email protected]> writes: > > I would say minimally: > > > > 1. knowledge of .bash_history > > > > how many times have you accidentally typed your password on the > > command line and then had to edit it out of the history file? I've lost > > count for myself :) > > > > 2. history command > > > > natch - it's already listed > > > > and probably: > > > > 3. !n > > > > rerunning the nth command in the history > > > > 4. !-n > > > > rerunning the nth previous command > > I think I'd like to vote for adding: > > 5. !<string> > > rerunning the previous command that started with <string> > > I had top running all night to prevent a ssh session from hanging and, after > doing some commands this morning, typed '!top' without even thinking. > > No comments from anyone on this (even Anselm and he brought it up ;)). > > Does anyone think that this is far enough (I actually prefer #5 over #3 and > #4 for LPIC-1)? > > Your last chance to say something is coming up because I have to write this up > for the addendum. Hopefully, everyone's finished their <insert favourite > winter holiday> shopping by now :)
Hmm, I actually think that other than knowing that stuff gets stored in the shell history when you logout, and that you can check the history to see what has been done on the last login, the rest is pretty irrelevant. All the commands that '!' activates to do with the history has all to do with being efficient and nothing to do with actual linux administration skills. Just because you don't know the quickest way to run the same command you ran 5 minutes ago without just retyping it from scratch doesn't mean you don't know how to fix things. I consider them like keyboard shortcuts and I do not expect people to know them unless they happen to think they are useful. So anything other than knowing about 'history' and .bash_history has nothing to do with administration, only efficiency. As a result I wouldn't include it at all. It is simply not relevant. -- Len Sorensen _______________________________________________ lpi-examdev mailing list [email protected] http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev
