AIX's find
lacks the nice GNU features.
You can work around this easily. Create two "reference" files with timestamps that mark the boundaries of interest:
touch -amt 201407251200 myref1
touch -amt 201407251230 myref2
Now do:
find . -type f \( -newer myref1 -a ! -newer myref2 \) -exec ls -ld {} +
This references a file's mtime
or modification time. This will be a file's creation timestamp if no further modifications (writes) were made to it, otherwise it will represent the last time a change was made to the data. For directories, the mtime
is updated when new objects are added or old ones deleted. Classic Unix/Linux lacks a true creation timestamp, although this is implemented (and available for retrieval) on certain platforms. (see further here. MAC OS users can use 'ls -lU' to obtain it.
Don't confuse ctime
with "creation". The ctime
of the stat() structure represents the last timestamp for inode changes (i.e. permissions, ownership and the name of the object).
-ctime
is for last inode change time, not creation time.-mmin/-cmin
are GNU extensions (though also supported by some BSDs). – Stéphane Chazelas Jul 25 '14 at 15:48uname -rs
)? – Stéphane Chazelas Jul 25 '14 at 15:50uname -rs
isAIX 2
– Aravind Jul 25 '14 at 15:52