Notifications
Clear all

ls for mac times

5 Posts
3 Users
0 Reactions
512 Views
(@mwade)
Trusted Member
Joined: 18 years ago
Posts: 77
Topic starter  

Hello,

I read where you can get file mactimes (in linux) from from just typing ls (plus a switch). I have read the man files for ls and see nothing relating to mactimes. Am I missing something?

I know that there are plenty of tools that will provide the mactimes for you, but and trying to find out how to do it from the simple ls command.

thanks,

Mark


   
Quote
Jamie
(@jamie)
Moderator
Joined: 5 years ago
Posts: 1288
 

Mark,

This article has a table about a quarter of the way in called "displaying MACtimes using ls".

Cheers,

Jamie


   
ReplyQuote
(@mwade)
Trusted Member
Joined: 18 years ago
Posts: 77
Topic starter  

Thanks Jamie


   
ReplyQuote
keydet89
(@keydet89)
Famed Member
Joined: 21 years ago
Posts: 3568
 

Mark,

Dude, I'm not sure which man pages you were looking at, but I'd take them back and get my money back if I were you. I Googled "man ls" and got this…

From http//unixhelp.ed.ac.uk/CGI/man-cgi?ls

-c with -lt sort by, and show, ctime (time of last modification of
file status information) with -l show ctime and sort by name
otherwise sort by ctime

-t sort by modification time

-u with -lt sort by, and show, access time with -l show access
time and sort by name otherwise sort by access time


   
ReplyQuote
(@mwade)
Trusted Member
Joined: 18 years ago
Posts: 77
Topic starter  

Ha, you are right, I skipped right over that.

thanks


   
ReplyQuote
Share: