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 |
hw will u use awk in replacing cahrs and files
In Unix file permissions what does the second field denotes?
in UNIX,How to copy file into directory?
How would you find the size of a file or directory?
Which command will print your home directory on screen?
What is the pipe command?
How do you stop a running process?
Give a regular expression that finds two things, try to come up with regular expressions that find each individually using "egrep" command?
what is mount ,tell me about mount ,how can u use in real time project??
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
what is the significance of "su" command?
What are filter commands in unix?