mv command deleted a folder - Ask Ubuntu


i new linux. had folder called "código" kept of .h's , .cpp's when programmed. wanted move said folder 1 directory , new folder called "code", in terminal typed following:

mv ./código ..-code 

of course, meant type:

mv ./código ../code 

but forgot keyboard in spanish mode. "código" folder not exist. cant find searches of file system. tried cd-ing "..-code", "-code", , ".-code" , didn't that... can tell me happened folder, , if it's contents recoverable (without disk recovery utility)?

i looked @ man page , did basic googling found nothing useful. wasn't sure google...

i followed instructions :)

i mean, created folder called código/ , executed same (wrong) command.

what happened folder código/ renamed ..-code/. name of folder starts dot (.) hidden folder.

now if execute ls -a in terminal, folder ..-code/ should appear (as every hidden file in directory).

you can see hidden files using nautilus (the ubuntu file manager) pressing ctrl+h.

edit: in order recover ('un-hide') folder need execute mv ..-code ./code , you'll have folder named wanted.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User