- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: file creation time
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-20-2008 01:02 AM
10-20-2008 01:02 AM
file creation time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 01:12 AM
10-20-2008 01:12 AM
Re: file creation time
(blushing) regards and regrets,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 01:16 AM
10-20-2008 01:16 AM
Re: file creation time
perl -e 'foreach(@ARGV){$t =localtime ( ( ( stat ( $_ ) ) [9] ) ); printf("%-20s%s\n",$_,$t);}' *
Cheers,
Awadhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 01:18 AM
10-20-2008 01:18 AM
Re: file creation time
As far as I know there is no info for seconds in the standard 'ls' command.
That is funny because a command like touch,
to create a file allows you to add timestamp including seconds. Where do these seconds go.
Anyway down to the nitty grityy:
someone@somewhere:/opt/mozilla/icons $ ls -l
total 32
-rw-r--r-- 1 bin bin 1668 Mar 5 2004 mozicon16.xpm
-rw-r--r-- 1 bin bin 2944 Mar 5 2004 mozicon50.xpm
Here is a single perl command that can print the timestamp of files with full date and time, accurate down to the seconds:
perl -e 'foreach(@ARGV){$t =localtime ( ( ( stat ( $_ ) ) [9] ) ); printf("%-20s %s\n",$_,$t);}' *
Happy ever after :))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 03:14 AM
10-20-2008 03:14 AM
Re: file creation time
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=774753
# echo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 03:28 AM
10-20-2008 03:28 AM
Re: file creation time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 05:22 AM
10-20-2008 05:22 AM
Re: file creation time
a (less lame) date-time format.
http://www.gnu.org/software/coreutils/
http://www.gnu.org/software/coreutils/manual/coreutils.html#Formatting-file-timestamps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 02:11 PM
10-20-2008 02:11 PM
Re: file creation time
dumpmsg /usr/lib/nls/msg/C/ls.cat > ls.msg
Change to:
11 %b %2d %Y(%H:%M:%S)
12 %b %2d %H:%M:%S
gencat ls.cat ls.msg
Then invoke ll:
$ NLSPATH=%N.cat ll -tr
dr-xr-xr-x 2 bin bin 96 May 30 2002(09:27:15) ntp/
- Tags:
- ls.cat