LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ls -al file creation date (https://www.linuxquestions.org/questions/linux-newbie-8/ls-al-file-creation-date-221121/)

blackzone 08-22-2004 10:31 PM

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?

idaho 08-23-2004 12:21 AM

If you don't see the year displayed, then the file was created in the current year.

karunesh 08-23-2004 01:31 AM

Quote:

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. :cool:


All times are GMT -5. The time now is 04:46 AM.