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

Re: Command history



On Jo, 28 apr 11, 15:13:11, Sophoklis Goumas wrote:
> 
> Instead of tampering with your system what would you say on issuing those
> sensitive commands in a new shell and then KILL that shell?

Cool ideea ;)

> For example:
> 
> $ echo "This will propably get into .bash_history."
> This will propably get into .bash_history.
> $ bash
> $ echo "While this won't when this shell gets KILLED!" | sha512sum
> ...
> $ pgrep bash
> $ kill <PID-of-that-new-bash-shell>
> $

I think closing the second bash with Ctrl-C (instead of Ctrl-D or 
'exit') will also do the trick ;)

Regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic

Attachment: signature.asc
Description: Digital signature


Reply to: