简体   繁体   中英

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

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!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM