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 |
Can you write a command to erase all files in the current directory including all its sub-directories?
what is the difference between relative path and absolute path?
How do you change file permissions?
What are grep patterns?
How to use grep command to list find the records of a file containing 10 different strings?
what are wild cards?
What is awk used for?
What is an Unix command to convert HEX value to ASCII value located in any flat file.
Explain ‘system calls’ with respect to unix commands?
How would you find the size of a file or directory?
How do you remove a crontab file?
What is grep r?