Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am working on a red hat server
I want to list the files in a way where the year when each was file created would appear in the Date
how is that possible ?

share|improve this question
    
no i dont think i try "ls -lT" its not found –  bob Oct 10 '12 at 7:12

2 Answers 2

You can use man ls and here you can find --time-style parameter. Or you can use:

ls --full-time.

share|improve this answer
    
Thanks this is what i want –  bob Oct 10 '12 at 7:14
1  
@bob: Completely agree with Turco. If you don't do that, nobody is going to bother about answering your question . –  The Dark Knight Oct 10 '12 at 9:33

Since you asked for the year, ls -lac is an easy one to remember if, like me, you use ls -la all the time. The c gives you ctime which will display a year if it's not the current year or the hour and minute if it is.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.