How to pick system time of the file placed on UNIX?

Single quotes suppress shell's expansion. Use double quotes for this special case. And, you should prefer the $(...) construct to backticks `...` for "command substitution".

In short: all you can come up with. Unneeded information is just a (small) waste of bandwidth, missing information makes help impossible with great regularity.

Now, that is at least something.

Issue the command

oslevel -s

To get the exact version. But for any halfways recent version of AIX i can at least answer the question about the shell version. It is a Korn shell 88 and it has been this way since the glorious days of AIX 4.1 (about 20 years ago):

# Version M-11/16/88f

The stat command some mentioned here does not exist on AIX systems, but the command istat does. I suggest you read the man page of this one. Output looks like this (AIX 7.1.3 ML4):

# istat /usr/bin/ls
Inode 238 on device 10/5        File
Protection: r-xr-xr-x   
Owner: 2(bin)           Group: 2(bin)
Link count:   1         Length 28542 bytes

Last updated:   Thu Mar 12 17:20:56 2015
Last modified:  Sat Mar  8 20:49:55 2014
Last accessed:  Sat Jul  2 16:32:49 2016

I hope this helps.

bakunin

1 Like