when we use the "l" command we get the list of all files & directories available. Files aged less than 6 months, when listed do not display the year. Now my requirement is, i need the time stamp should contain the year for file spooled as of date. Can u suggest me the command.
replies appreciated.
raguram R
ex:
-rw-r--r-- 1 rram group 1130 Jan 3 2003 a.c
-rw-r--r-- 1 rram group 32 Feb 3 18:05 a.sh
ls(C)
*****
ls, l, lc, lf, lr, lx -- list contents of directories
Description
===========
-l
Lists in long format, giving mode, number of links, owner, group,
size in bytes, the time that each file was last modified. The -1
option is assumed. For files less than six months old, minutes and
seconds are included in the modification time and the year is
excluded. For a consistent format, use -T.
-T
Similar to -l, except that the modification time is always displayed
in full, as in this example:
Aug 31 09:37:00 2001
Unless one of the -c or -u options is specified, the modification
time refers only to changes made to the file's data, or the
creation of the file. It does not record the time that changes were
made to the information stored in the inode.
I have never heard of a -T argument for ls (or its aliases). I can't get -T to work on hp-ux nor sunos. Linux uses -T to set tabstops and -T requires an argument.