How to find the files that are accessed before 10 minutes?

Answers were Sorted based on User's Feedback



How to find the files that are accessed before 10 minutes?..

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

How to find the files that are accessed before 10 minutes?..

Answer / krishna

find . -mmin -10 -type f -ls

Is This Answer Correct ?    0 Yes 1 No

How to find the files that are accessed before 10 minutes?..

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

How to find the files that are accessed before 10 minutes?..

Answer / sagar

ls -lrt | tail -10

Is This Answer Correct ?    0 Yes 13 No

How to find the files that are accessed before 10 minutes?..

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

Post New Answer

More Unix Commands Interview Questions

Can you write a command to erase all files in the current directory including all its sub-directories?

1 Answers  


what is the difference between relative path and absolute path?

7 Answers  


How do you change file permissions?

1 Answers  


What are grep patterns?

0 Answers  


How to use grep command to list find the records of a file containing 10 different strings?

0 Answers  






what are wild cards?

2 Answers  


What is awk used for?

0 Answers  


What is an Unix command to convert HEX value to ASCII value located in any flat file.

2 Answers  


Explain ‘system calls’ with respect to unix commands?

0 Answers  


How would you find the size of a file or directory?

1 Answers  


How do you remove a crontab file?

6 Answers  


What is grep r?

0 Answers  


Categories