I am using the find command to find the files which were created with in 30 minutes.find . -ctime -30mBut it is giving files from up to 30 days. I have tried -mmin too but it is showing that -mmin is not a valid option.What is wrong in my find command?Output for uname -rs is AIX 2.
Finding a file which created X minutes back (without GNU/BSD find)
find;timestamps
To complement @JRFerguson's answer.To obtain a reference file whose modification time is 30 minutes in the past, you can do portably (precision of one second):TZ=ZZZ0 touch -t $(TZ=ZZZ0:30 date +%Y%m%d%H%M.%S) /some/ref/fileAnd then do:find . -newer /some/ref/fileThat only works for intervals of 50 hours:TZ=ZZZ-24:59:59 touch -t $(TZ=ZZZ24:59:59 date +%Y%m%d%H%M.%S) filebeing the oldest file you can obtain portably (POSIXly) with that method.