Hacker News new | ask | show | jobs
by vram22 3201 days ago
You can use the bash setting called noclobber to prevent such accidental deletion.

https://en.wikipedia.org/wiki/Clobbering