"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 :)

Regards,
--matt
> 
> 
> I'll leave the rest up to others to help with the clarification.
> 
> I think what you showed below is sick ;)
> 
> I'm even on the fence with my old favourite: ^ (the quick sub character)
> 
> Also, I don't think we need to add (not really history specific) the
> emacs/vi/etc keybindings for editting on the command line.  
> 
> Comments?  Additional really useful history related topics?
> 
> Remember, this is junior level and history is just one part of the 4
> weight objective.
> 
> Regards,
> --matt
> 
> 
> On Fri, 2008-12-05 at 15:31 +0100, Anselm Lingnau wrote:
> > Here's one that makes me wonder: How far does »Use and edit command 
> > history« 
> > in the new-style objective 103.1 extend into the territory of arcane 
> > history 
> > substitutions, i.e., do LPIC-1 candidates have to be able to parse and/or 
> > produce things like
> > 
> >   $ echo !?foo?$:t:s/bar/baz/
> > 
> > ? If not, where does objective 103.1 stop?
> > 
> > (Just in case you're wondering: This will look for the most recent command 
> > line in the history containing the string »foo«, pick up the last word of 
> > that line, discard everything from that word except for the last filename 
> > component, and return that with the string »bar« replaced by »baz«. And 
> > just 
> > for the record, I don't use such things myself as my poor brain cannot 
> > handle 
> > them as a matter of course.)
> > 
> > Anselm
> 
> _______________________________________________
> lpi-examdev mailing list
> [email protected]
> http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev
> 

-- 
g. matthew rice <[EMAIL PROTECTED]>      starnix care, toronto, ontario, ca
phone: 647.722.5301 x242                                  gpg id: EF9AAD20
http://www.starnix.com              professional linux services & products
_______________________________________________
lpi-examdev mailing list
[email protected]
http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev

Reply via email to