[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: newbie-esque: how to cut & paste?



Quoting Jim Richardson (warlock@eskimo.com):
> On Fri, Mar 30, 2001 at 02:37:13PM -0600, Bud Rogers wrote:
> > Wait til you type 'shutdown -h now' on the workstation in front of you 
> > and nothing happens, then from the other room (where all the servers 
> > are...) you hear, "Hey!  What the %$%#@?!" 
> 
> Or do the same thing by hitting the up arrow key one time too many
> followed by return...
> Anyone know how to make bash history *not* keep certain commands?  :)

export HISTCONTROL=foo

where foo is ignorespace (what you asked for), ignoredups or
ignoreboth (also ignores successive duplicate command lines).

Then add a space at the beginning of the line when you you type
things like rm -f * or shutdown.

Cheers,

-- 
Email:  d.wright@open.ac.uk   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.



Reply to: