File doesn't exist in Linux although it's located in Terminal

Posted by Mazen Ayman on Super User See other posts from Super User or by Mazen Ayman
Published on 2012-11-29T21:45:53Z Indexed on 2012/11/30 11:10 UTC
Read the original article Hit count: 319

Filed under:
|
|

I'm a bit new to unix/linux environment, but I have a small problem.

I'm using "locate" to find the path of a file I need, it gives me the path for it, but the file doesn't exist in that path, like that:

locate test1.txt

/home/user/test files/text1.txt
/home/user/test1.txt~

"test files" directory is where I was keeping the file and I copied it to the home directory once but I deleted it, no idea what it keeps telling me there is still a tmp file for it.

it worth mentioning that I used the command:

locate test1.txt~ |xargs -n1 rm

to remove that tmp file, but maybe that what caused the problem. I tried to show hidden files, and check for temp files, didn't find it either.

any clue what happened?

© Super User or respective owner

Related posts about linux

Related posts about unix