I was trying to move a RubyOnRails.txt
file into a /RUBY
directory, so for some reason I typed:
mv RubyOnRails.txt /Ruby"
And I got this error: mv: cannot move ‘Untitled Document’ to ‘/Ruby’: Permission denied
Obviously, I typed: sudo mv RubyOnRails.txt /Ruby
And then, I understood my error, the folder wasn't /Ruby
, was /RUBY
.
Now the file is gone, and I can't find it anywhere.
There is some way to find it or recover it?
The file isn't gone, it's just renamed to Ruby
and it's in root directory of your system /
You can still move it where you want like that sudo mv /Ruby your_destination