[oclug] Solaris ls command question?
rjordan at numb.ca
Tue Jun 8 12:14:46 EDT 2004
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)
More information about the OCLUG