Gruber: Today's command line isn't dangerous, just convenient
daringfireball.net
daringfireball.net
That said. you can get burnt clobbering important files with output redirection. It's a good idea to enable the "noclobbler" setting in Bash like so:
set -o noclobber
It's saved me plenty of times from deleting important partially process data. cd /
rm *
essentially renders your machine useless. Surely it would be easy to make it less dangerous than this.