Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
$ istat TESTFILE.txt
Inode 2317 on device 12/7       File
Protection: rw-------   
Owner: 4847(testuser)           Group: 346(testuser)
Link count:   1         Length 1480 bytes

Last updated:   Sun Jun 15 08:20:17 2014
Last modified:  Sun Jun 15 08:20:17 2014
Last accessed:  Sun Jun 15 13:03:37 2014


istat doesn't know any format for UNIX TIME on AIX?

My question: How can I display the modification time for a file in UNIX TIME format on AIX?

share|improve this question
up vote 6 down vote accepted

You can use perl:

$ perl -le 'print((stat shift)[9])' test.txt

Or GNU date:

$ date -r test.txt +%s

You can install GNU date on AIX refer to this link.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.