- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to find the YEAR of the File Created?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2012 02:05 PM - last edited on 10-26-2012 12:16 AM by Maiko-I
10-25-2012 02:05 PM - last edited on 10-26-2012 12:16 AM by Maiko-I
How to find the YEAR of the File Created ?
Hi,
# ls -lrt|more
-rw-r--r-- 1 root system 599751 Sep 12 12:32 1209121159_wsmncp01.log
-rw-r--r-- 1 root system 602065 Sep 12 18:29 1209121759_wsmncp01.log
-rw-r--r-- 1 root system 600927 Sep 13 00:24 1209122359_wsmncp01.log
-rw-r--r-- 1 root system 582738 Sep 13 01:15 1309120059_wsmncp01.log
-rw-r--r-- 1 root system 589388 Sep 13 06:18 1309120559_wsmncp01.log
-rw-r--r-- 1 root system 598967 Sep 13 12:30 1309121159_wsmncp01.log
-rw-r--r-- 1 root system 600927 Sep 13 18:24 1309121759_wsmncp01.log
-rw-r--r-- 1 root system 602457 Sep 14 00:34 1309122359_wsmncp01.log
-rw-r--r-- 1 root system 582883 Sep 14 01:18 1409120059_wsmncp01.log
-rw-r--r-- 1 root system 588851 Sep 14 06:20 1409120559_wsmncp01.log
-rw-r--r-- 1 root system 599359 Sep 14 12:30 1409121159_wsmncp01.log
-rw-r--r-- 1 root system 602065 Sep 14 18:27 1409121759_wsmncp01.log
These files shows only the Month and Date of the file created....But not the Year .
Can anybody knows ,How to find the YEAR also along with the Month and date and time ?
#ls -l only shows Month and date but not year.
Regards,
Aparna.
P.S. This thread has been moved from HP-UX > System Administration to HP-UX > languages - HP Forums Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2012 02:11 PM
10-25-2012 02:11 PM
Re: How to find the YEAR of the File Created ?
Files less than a year old show a time stamp.
Files with a time stamp can be assumed to be THIS year.
if you look at the man page for ls you can get it to display year on all files.
Try this:
ls -larte
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2012 08:47 PM
10-25-2012 08:47 PM
Re: How to find the YEAR of the File Created?
You can't find when created, only modified, access or inode changed.
But if you want to fiddle with the ls output format, consult the tag cloud:
- Tags:
- ls.cat