0

I was in a directory where I had a ~ and I went to remove it by doing

rm -f ~

for which it said it was a directory. So I made the really silly move of doing

rm -rf ~

and suddenly I get the error

-bash: /Users/brent/.rvm/scripts/initialize: No such file or directory

See out put

cd ..
-bash: /Users/brent/.rvm/scripts/initialize: No such file or directory
-bash: /Users/brent/.rvm/scripts/hook: No such file or directory

Can I restore these?

3
  • nope, njet, no, non, nee, rm-rf is fatal :)
    – Ruskes
    Apr 11, 2015 at 20:31
  • Do you have a backup? If not, and you need any of the files from your home directory, SHUT THE COMPUTER DOWN IMMEDIATELY, then use some other computer to research data recovery options. Apr 11, 2015 at 23:31
  • I stopped the rm quickly and fortunately I didn't do it as sudo. Looks like I just lost my bash folder Apr 12, 2015 at 14:13

0

You must log in to answer this question.

Browse other questions tagged .