How to list hh:mm:ss in 'ls -l'

How to list hh:mm:ss in 'ls -l'

Post by Jame » Thu, 15 Dec 2005 03:17:15



How do I list hour:min:sec in the long list of files (ls -l)?
Must use fstat? Any utilities?

James

 
 
 

How to list hh:mm:ss in 'ls -l'

Post by Michael Heimin » Thu, 15 Dec 2005 03:26:33



Quote:> How do I list hour:min:sec in the long list of files (ls -l)?
> Must use fstat? Any utilities?

What's the output of 'uname -a'?

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)

#bofh excuse 375: Root name servers corrupted.

 
 
 

How to list hh:mm:ss in 'ls -l'

Post by Ed Morto » Thu, 15 Dec 2005 03:24:35



> How do I list hour:min:sec in the long list of files (ls -l)?
> Must use fstat? Any utilities?

Take a look at GNU find.

        Ed.

 
 
 

How to list hh:mm:ss in 'ls -l'

Post by Jame » Thu, 15 Dec 2005 03:40:38




> > How do I list hour:min:sec in the long list of files (ls -l)?
> > Must use fstat? Any utilities?

> What's the output of 'uname -a'?

Solaris and Linux.

$ uname -a
SunOS xxxxx 5.8 Generic_117350-20 sun4u sparc SUNW,Ultra-5_10 Solaris

$ uname -a
Linux xxxxx 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:08:39 EDT 2005
i686 i686 i386 GNU/Linux

James

 
 
 

How to list hh:mm:ss in 'ls -l'

Post by Michael Heimin » Thu, 15 Dec 2005 04:50:25





>> > How do I list hour:min:sec in the long list of files (ls -l)?
>> > Must use fstat? Any utilities?

>> What's the output of 'uname -a'?

> Solaris and Linux.
> $ uname -a
> SunOS xxxxx 5.8 Generic_117350-20 sun4u sparc SUNW,Ultra-5_10 Solaris

Easiest would be to install GNU 'ls'.

Time consuming:

 tar -cf - . | tar -tvf -

I'll leave out the other 20 possibilities or so, for others to
add.

Quote:> $ uname -a
> Linux xxxxx 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:08:39 EDT 2005
> i686 i686 i386 GNU/Linux

 ls --full-time

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)

#bofh excuse 104: backup tape overwritten with copy of system
manager's favourite CD

 
 
 

How to list hh:mm:ss in 'ls -l'

Post by Jame » Thu, 15 Dec 2005 06:56:34



> Easiest would be to install GNU 'ls'.

> Time consuming:

>  tar -cf - . | tar -tvf -

> I'll leave out the other 20 possibilities or so, for others to
> add.

>  ls --full-time

I did not know of 'ls --full-time' before.
Many thanks.

James