Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Don't wanna get all Unix-macho here, but the regular command line is also pretty safe when you're just launching applications and doing things equivalent to the location bar. It gets dangerous for only a specific subset of administrative commands such as rm, mv, apt- which provide different functionality anyway.

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: