LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 08-04-2010, 04:51 AM   #1
aksovalye
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
Question 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:

Code:

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?
 
Old 08-04-2010, 03:30 PM   #2
michielv
LQ Newbie
 
Registered: Feb 2009
Location: Belgium, Antwerp
Distribution: Mint
Posts: 24

Rep: Reputation: 1
Has the external drive a Linux filesystem on it?

Probably the folders that pop up are not accessed by you but by an application.
 
Old 08-05-2010, 08:03 AM   #3
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 209

Rep: Reputation: 65
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.
 
Old 08-07-2010, 04:03 AM   #4
aksovalye
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
Old 08-08-2010, 01:48 AM   #5
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 209

Rep: Reputation: 65
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.
 
  


Reply

Tags
find, how


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
find -name command finds the wrong files Snouser Linux - Software 2 08-01-2008 09:45 PM
find: WARNING: Hard link count is wrong for /proc/1: Ramonvel Slackware 2 05-27-2008 10:28 PM
Error when using 'find' -- "WARNING: Hard link count is wrong..." xGreenmanx Linux - Software 6 03-11-2006 06:35 PM
PHP: what's wrong with this line (shell_exec, find, xargs, grep)? J_Szucs Programming 3 11-19-2003 07:44 PM
Can't find what's wrong; card, config...? CIO_BlackRainbo Linux - Networking 2 06-28-2003 11:26 AM


All times are GMT -5. The time now is 05:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration