What are the worst/best unix shell nightmares? My favourites are:
rm -rf / tmp/foo(deletes everything if you are root; typo :-( )rm -rf .*(deletes everything if you are root; not just all hidden files)- Files in
*that are used as parameters, e.g. aftertouch -- -rf,rm *eventually evaluates torm -rf foo bar cat foo | sed 's/foo/bar/g' > foo(deletes foo)some_command > /dev/sda
WARNING: Do not try any of these or the following commands!