Joco Salvatti wrote:
Let's suppose I deleted a directory, but I didn't meant to do that, for example, /usr/bin. Is there any way to recover the contents of this directory? Is there any tool or technique that I could use to recover my lost data?
Yeah, it's "restore from backup". Other than that, rm(1) is final. In your example case, you're lucky. You can use the install media to upgrade to the same version you're already running - that'd bring /usr/bin back.
Be careful with rm(1), always, and don't rely on non-standard features that make rm ask for confirmation for each file when running as root.
Moritz

