2
I have a habit of typing rm -rf *
every time I'm in some kind of sleep mode. It seems that my subconscious wants me to delete everything I code at the end of the day.
Is there a way to block this particular command (rm -rf *
) in Linux in the C-shell or bash-shell?
Alternatively, is there a way in which I can set up a command filter for my shell inputs before it goes to the shell for further processing?
11Don't sleep and code? – None – 2011-12-13T14:33:37.190
12Break the habit rather than seek a technological solution. It's still and counter productive. – Noufal Ibrahim – 2011-12-13T14:35:18.997
7You seem to be searching technical solutions for psychological problems. Always try to solve a problem within its solution domain. – thiton – 2011-12-13T14:39:08.383
I second this, if you ever ssh into my box you might accidentally kill everything. NO GOOD! – reconbot – 2011-12-13T20:56:17.717