LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 08-22-2004, 11:31 PM   #1
blackzone
Member
 
Registered: Jul 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, 01:21 AM   #2
idaho
Member
 
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, 02:31 AM   #3
karunesh
Member
 
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126

Rep: Reputation: 15
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.
 
  


Reply


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 06:59 PM
php read file creation, modified date problem antony_csf Programming 3 08-18-2004 07:46 AM
RPM Spec file creation: %file section question davidas Linux - Newbie 0 03-16-2004 11:36 PM
file creation in C ratheesh Programming 1 01-08-2004 06:39 AM
creation date of file using the 'ls' command robt Linux - Newbie 1 03-27-2003 01:34 AM


All times are GMT -5. The time now is 06:11 PM.

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