How to find the files that are accessed before 10 minutes?
Answers were Sorted based on User's Feedback
Answer / alex
find -type f -amin -10
Explanation: Find all files (excluding directories) from the
current directory which have been accessed no more(-) than
10 minutes ago.
| Is This Answer Correct ? | 31 Yes | 9 No |
Answer / ashok
echo "this script will put the num of 10 min old files
in /tmp in /tmp/chechold.txt
file "
find /tmp -size 0 -a time +10 - exec ls -s {}
\ ; /tmp /checkdd.txt
find /tmp -size 0 -a time +10 -exec rm _f {} \ ;
| Is This Answer Correct ? | 0 Yes | 3 No |
Answer / kirus
ls - ltr
it will show the the files with latest acces time in that
we can find the files that are accessed before 10 minutes
| Is This Answer Correct ? | 0 Yes | 17 No |
What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands?
what is Online(STM) and offline diagnostics in HP-UX?
What is updatedb?
How to copy multiple files and directories into some other directory?
what are the different commands used to create files?
What is clustering in HP and how it's work?
what is the meaning of this command rm -rf / what will it do ?
By using which command we can find the CPU utilization time?
What is the comma to display different lines that are found when compare two files?
What do chgrp command do?
Give the command to display space usage on the UNIX file system.
How do you grep a case insensitive?