[oclug] Solaris ls command question?

todd.clattenburg at sdc-dsc.gc.ca todd.clattenburg at sdc-dsc.gc.ca
Tue Jun 8 12:10:31 EDT 2004


hey cool. I found it at the same time. Thanks for the reply.

---------------------------------------------------------------------|
Todd Clattenburg
Programmer / Analyst
Todd.Clattenburg at sdc-dsc.gc.ca


-----Original Message-----
From: oclug-bounces at lists.oclug.on.ca [mailto:oclug-bounces at lists.oclug.on.ca] On Behalf Of Ross Jordan
Sent: Tuesday, June 08, 2004 12:15 PM
To: General Membership Discussion List
Subject: Re: [oclug] Solaris ls command question?


It would seem todd.clattenburg at sdc-dsc.gc.ca, on Tue, Jun 08, 2004 at 11:55:05AM -0400, wrote:
> 
> I am working on Solaris 5.6. Don't laugh if this is a stupid question,
> but, the 'ls -l' command shows the date and not the time. How do I get
> it to show the date and the time? 

ls -l shows the time, if it is recent enough:

$ uname -a
SunOS rees.math 5.8 Generic_108528-27 sun4u sparc

$ touch blah
$ ls -l blah
-rw-rw----   1 rjordan  none            0 Jun  8 12:02 blah

If the files are older than a year, then Solaris will try to
be helpful and plug in the year instead.

You can force it with ls -lc (ctime) ls -lu (mtime)

-Ross
-- 
OCLUG general discussion list
OCLUG at lists.oclug.on.ca
http://www.oclug.on.ca/mailman/listinfo/oclug



More information about the OCLUG mailing list