What happens when I rename a file with a directory name in same folder?

Viewed 26

I accidentally did just this. I just typed mv .vimrc .vim in my home directory.
.vimrc was a file
.vim is a directory

Did it just disappear? I do have a backup of my .vimrc but it is a little old. Is there a way to recover it the way it was?

Maybe I should have updated my backup, maybe I should have used that confirmation flag for the mv. In fact, both. But it happened ):

Thanks!

1 Answers

You moved .vimrc inside the .vim directory. In other words, you can find the file at .vim/.vimrc.

Related