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 |
How do you stop a running process?
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.
how many internal commands is there in UNIX?
What is the use of sed command in unix?
How to identify whether a file is normal file or directory?
which command is used to change group?
What is command substitution?
what are the uses of filters?
How do I use grep to search for a file?
What is rmdir command?