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 command is used to replace the existing string with some other?
what is the command to list files in a directory in UNIX?
what is the default permission for /etc/shadow file in UNIX
Is grep faster than awk?
write grep commands to select the lines that have exactly two characters
which script will invoke first ,when /etc/init.d starts
distinguish between interrupts and exceptions?
How to use grep command to list find the records of a file containing 10 different strings?
How do you know about running processes of a particular user?
Explain ‘system calls’ with respect to unix commands?
what is mount ,tell me about mount ,how can u use in real time project??
Give two UNIX kernel parameters that effect an Oracle install