Solaris 10 What's New

Enhancements to ls Command

This feature is new in the Solaris Express 8/04 release.

The ls command can now display file times to the second or to the nanosecond. Use the -e option for seconds and the -E option for nanoseconds. The following example illustrates these new options:


% ls -l foo
-rw-r--r--   1 jpk    staff   0 Aug  6 15:08 foo
% ls -e foo
-rw-r--r--   1 jpk    staff   0 Aug  6 15:08:28 2004 foo
% ls -E foo
-rw-r--r--   1 jpk    staff   0 2004-08-06 15:08:28.776641000 -0700 foo

See the ls(1) man page for further information about this command.