Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ls -lt does not appear to sort within seconds

Status
Not open for further replies.

JB99

Technical User
Jan 31, 2002
1
CA
I need to sort my directory by time i use ls -lt to achieve this but have noticed that if several files are created within the same second it sorts those by filename. So you end up with a sorting by seconds by filename.

Is this how it's supposed to work and how can i sort by milliseconds

Thanks
John
 
John,

I don't think that the filenames are stored with time at that accuracy - it just stores the number of seconds since the epoch. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top