sujana
June 26, 2008, 6:37am
1
Hi,
Am new to unix..i want some help..
when am using ls command like ls-ltr it displaying output like this:
rw-r--r-- 1 infauser dba 36 Jun 16 12:36 s1_midify
-rw-r--r-- 1 infauser dba 66 Jun 16 12:42 sample_one
-rw-r--r-- 1 infauser dba 77 Jun 16 13:05 removelist
but if i want year also like
rw-r--r-- 1 infauser dba 36 Jun 16 2008 12:36 s1_midify
what command i have to give........can you please help............
if no year is given, it's the current year. older files (from LAST year) have a year in the "ls" output. read the manpage for "ls" (man ls) to see if there are other options to always display the year.
ynir
June 26, 2008, 6:51am
3
ls -l --time-style +"%b %d %Y"
total 16
drwxr-xr-x 2 root root 4096 Apr 15 2008 pluginconf.d
-rw-r--r-- 1 root root 386 Jan 10 2007 yum-updatesd.conf
sujana
June 27, 2008, 1:05am
4
Thanks for your reply...
but when i tried y using ur command am not able get the output some error is coming...
ls -l --time-style +"%b %d %Y"
ls: illegal option -- -
ls: illegal option -- e
ls: illegal option -- -
ls: illegal option -- y
ls: illegal option -- e
usage: ls -1RaAdCxmnlogrtucpFbqisfL [files]...
can you please help me...