Find / -amin -60... Where am I doing wrong?
This is my first message here, so first of all I want to say hello to everyone.
And here is my first question:
Just for checking if I use find command correctly, I did followings in order:
1. Boot with Ubuntu netobok remix 10.04 live-usb.
2. Plug my MyPassport external hard drive.
3. Open a "desktop.ini" file in that disk by gedit, with the help of nautilus to find the file.
4. Did not change the document and Close gedit.
5. In terminal I run following command:
find /media/MyPassport -amin -60
6. It did not display desktop.ini file, but it displays a folder named something like ".Trash999" and some folders I have not surely accessed in the last 60 minutes.
I was expecting only desktop.ini to be listed.
Could you please guide me where am I doing wrong?
Has the external drive a Linux filesystem on it?
Probably the folders that pop up are not accessed by you but by an application.
If your drive is formatted with FAT32 I believe it has only an access date, not an access time. You could try `ls -ltu` to see what linux thinks the access ('use') stamps on your files are. Use `ls -ltud` to get the stamps from the directories themselves rather than their contents.
Thank you for your replies.
There was not any linux partition on the external drive. It was formatted with FAT32. I was not known that access time is not stored on FAT32 file system. Very useful information for me.
Jthill, thank you very much for guiding me about ls commands. I was afraid of using any ls command that it might change access times of listed files itself. Do you think it is possible? I had a similiar problem with Windows Explorer before.
I can't think why ls would change any stamps find doesn't, but you're in try-it-and-see territory here. And do note the date-only stamps don't explain why the find command found anything at all. Post what you find out? I'm curious (just not as curious as you are :). Thanks.
|All times are GMT -5. The time now is 02:19 AM.|