Sunday 15 December 2013

Quit from shell without saving into history

There are many instances when we want to quit from shell without saving any command in history. We might have run by mistake some rookie command and you don't want to disclose it to others.

kill -9 $$ will do the needful as $$ will provide the PID of the current shell.

No comments:

Post a Comment