I tried using the mv command in my terminal on my mac to move files into a directory. The files were moved, however it seems that I made a mistake i in my command and did not use a using a trailing slash at the end of my directory name. So a file was created instead. I ran the command multiple times thinking that I was moving the files into my newly created directory. When I tried to CD to the directory, my terminal gave me a notice saying "XX" is not a directory. I then tried to open the file and it gave me an error.
What happened to the several files that I moved to this new "XX" file. The files types were word docs (.docx) and excel (.xlsx) documents. Were they combined somehow?
What kind of file did the new "XX" file become? I can't even open this file in any program as it says that it is corrupt.
When using the MV command, is there any possible way to recover the mv's files? I didn't use the rm command.
Sorry, I am new at this.