Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-22-2004, 10:31 PM   #1
Registered: Jun 2004
Posts: 256

Rep: Reputation: 30
ls -al file creation date

when I use ls -al, files are display in different format:

month day time
month day year

I'm not sure why there would be 2 different format, but for some of the file in the "month day time" format I really want to know which year it is made.

Can someone help?
Old 08-23-2004, 12:21 AM   #2
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
If you don't see the year displayed, then the file was created in the current year.
Old 08-23-2004, 01:31 AM   #3
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126

Rep: Reputation: 15
Originally posted by idaho
If you don't see the year displayed, then the file was created in the current year.
Actually its not like that !. By default, file timestamps are output in abbreviated form. For
files with a time more than six months old or in the future, the timestamp contains the year instead of the time of day.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding out the creation date for files/folders... darkarcon2015 Linux - Software 1 03-24-2005 05:59 PM
php read file creation, modified date problem antony_csf Programming 3 08-18-2004 06:46 AM
RPM Spec file creation: %file section question davidas Linux - Newbie 0 03-16-2004 10:36 PM
file creation in C ratheesh Programming 1 01-08-2004 05:39 AM
creation date of file using the 'ls' command robt Linux - Newbie 1 03-27-2003 12:34 AM

All times are GMT -5. The time now is 11:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration