[SATLUG] how do i always show year, when doing "ls -l"

Eli eli at then7.com
Thu Apr 26 15:58:27 CDT 2007


thanks, skimmed right over that, time-style is what I needed.

ls -l --time-style=long-iso

e

Greg Willden wrote:
> Check out the manpage for ls
> There are options like '--full-time', '--time-style=full-iso'
> Greg
> 
> On 4/26/07, Eli <eli at then7.com> wrote:
>> ls -l
>>
>> For files older then 6 months, it shows year.
>>
>> For files less then 6 months old, it shows time.
>>
>> I find this useless.  is there a way to force ls -l always show year, or
>> always show time, but not mixed?
>>
>> Thanks,
>> Eli
>>
>> example
>>
>> -rw-r--r--    1 root     root            0 Nov 30 23:59 nov.end
>> -rw-r--r--    1 root     root            0 Nov  1 00:00 nov.start
>> -rw-r--r--    1 root     root            0 Oct 31 23:59 oct.end
>> -rw-r--r--    1 root     root            0 Oct  1  2006 oct.start
>> -rw-r--r--    1 root     root            0 Sep 30  2006 sept.end
>> -rw-r--r--    1 root     root            0 Sep  1  2006 sept.start
>> -- 
>> _______________________________________________
>> SATLUG mailing list
>> SATLUG at satlug.org
>> http://alamo.satlug.org/mailman/listinfo/satlug to unsubscribe
>> Powered by Rackspace (www.rackspace.com)
>>
> 
> 


More information about the SATLUG mailing list