Ksh Clobbering

The general format for redirecting output on Bash/ksh shell is:

command > output.txt
command > /dev/device

However, you may end up overwriting file accidentally using > operator. For example:

$ ls -l *.c > output.txt

{ 4 comments }