D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Doh!

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rob Beard wrote:
> Quoting Michael Mortimore <nospamformike@xxxxxxxxxxxxxx>:
> 
>> what happens if you are running yakuake which seems to be in the
>>> background,  I can type a command,  click the desktop,  the window
>>> scrolls up but it's still running in the background  this is useful  but
>>> i guess highlights a potentual danger of using sudo or even su as I do.
>>>
>>> Whats the best key combo to get out of this situation,  apart from
>>> hitting reset of course, which could end up doing more damage.
>> you can turn off the autoscrolling. you can also set a "close session"
>> shortcut which would have the same result as closing the terminal
>> window.
>>
>> you could always tell sudo not to remember passwords. the man page
>> says that such an option exists.
>>
>> you could set an alias for rm=rm --preserve-root so you can't make
>> that particular mistake.
>>
> 
> Thanks for the hints.  I will do that rm alias.  Don't fancy it 
> happening again.
> 
> Rob
> 
> 
> 

might also consider adding a "-i -v" to the end of the aliased command

- --
Neil Stone

Systems Administrator
FlashTek UK

- -----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT d+(++) s: a-(?) C++++(--) UL++++$ P+ L+++ E- W+++ N+
o+ w--- O M PS+ Y+ PGP++ t+ 5+ X+ R+ tv+ b- DI++ D+++ G
e h--- r+++ y++++(**)
- -----END GEEK CODE BLOCK-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFQxTaz3Av8JKgzxQRAngxAJ9b0Dxklm3mhvBam4V+/AbkD43kDQCgk4xZ
2vzcqTFhe4RhzVVac0pT/Vw=
=OawP
-----END PGP SIGNATURE-----

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html