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

How do you stop a running process?

7 Answers  


how unix kernel distinguishes between a normal file and device file ?

7 Answers   Google, IBM, McAfee, Vodafone,


how to find largest file?

14 Answers   HCL, Microsoft, Thomson Reuters,


Explain mount and unmount command.

0 Answers  


how many internal commands is there in UNIX?

3 Answers   TCS, Virtusa,






What is the use of sed command in unix?

0 Answers  


How to identify whether a file is normal file or directory?

3 Answers  


which command is used to change group?

5 Answers  


What is command substitution?

0 Answers  


what are the uses of filters?

3 Answers  


How do I use grep to search for a file?

0 Answers  


What is rmdir command?

0 Answers  


Categories