what happens if you mv /file , instead of mv /file . ?

what happens if you mv /file , instead of mv /file . ?

I just did this with a file by mistake, and cannot seem to find it. I went to the root directory and ran this:

touch newfile.for.testing
mv newfile.for.testing ,

the file seems gone what happens if you mv /file , instead of mv /file . ?

info mv and man mv reveal nothing to the . or .. features that I use all the time.
I also tried this:

there is no file named "," in the original nor destination folder. Also, doing a locate , did not find anything there as to where it went...

Interestingly enough I do a locate for the old file name and see it where it was:

/backup/cpbackup/weekly/account_login/mysql
/backup/cpbackup/weekly/account_login/mysql/account_login_db1.sql
/backup/cpbackup/weekly/account_login/mysql/account_login_db2.sql
/backup/cpbackup/weekly/account_login/mysql/account_login.sql


When I go there, to /backup/cpbackup/weekly/account_login/ and do an ls, there is no mysql folder there what happens if you mv /file , instead of mv /file . ?

so somehow it seems to be in a sort of linux limbo...

Any ideas would be greatly appreciated what happens if you mv /file , instead of mv /file . ?

 

 

 

 

Top