|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
list date with seconds from ls command
Hello friends,
When I use "ls -l" command, it only list date of file with hour and minutes. Is there option that I can see by seconds? Thanks
__________________
Help me, help you, help others...
|
|
#2
|
|||
|
|||
|
ls -l --time-style=full-iso
|
|
#3
|
||||
|
||||
|
Hi Strike, need little more help
it's not working! tiger[netboss]/u01/app/netboss/sga/thresholding% ls -l --time-style=full-iso ls: illegal option -- - ls: illegal option -- e ls: illegal option -- - ls: illegal option -- y ls: illegal option -- e ls: illegal option -- = ls: illegal option -- - usage: ls -1RaAdCxmnlogrtucpFbqisfL [files] I am using Solaris 8 |
|
#4
|
||||
|
||||
|
Also I am using tcsh shell, if that's help you help me
![]() |
|
#5
|
|||
|
|||
|
- on some versions of unix you are not allowed to mix short and long parameters. not sure about solaris. and my "ls" has no long version for "-l".
- my "ls" also has this parameter: "--full-time", try this - "man ls" and "ls --help" can also provide valuable help. only the ones on your system though... ![]()
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#6
|
||||
|
||||
|
No, can't find it on Solaris 8 server.
It's such simple list and Unix is so inconsistant. Little disappointed. |
|
#7
|
|||
|
|||
|
Hmm, on the Solaris machine that I checked, it says that you use LC_TIME to affect the date output, but then it points to a nonexistant man page (environ(5)) for what to use ... maybe you have that man page.
|
|
#8
|
||||
|
||||
|
OK, I will check it out. Thanks Strike!
So far I can get around using Perl: perl -e 'foreach(@ARGV){$t =localtime ( ( ( stat ( $_ ) ) [9] ) ); printf("%-20s%s\n",$_,$t);}' * pain, but works better with a simple alias ![]() Last edited by digitsnake : January 14th, 2003 at 08:27 AM. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > list date with seconds from ls command |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|