I have a directory called /home/mydir/test A file will be sent from some other team which lands in this directory. How to find the file is whether in that directory for more than 4 hours.
I tried the below code.
find . -cmin -240
I don't think this is working . It lists all the file in the folder. What i want is to get the file names of the files which are in this directory for more than 4 hours. How to get that?