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 |
fork in unix ?
How can we "forked" process in UNIX? How then recognize in any of the branches we?
How would you change all occurrences of a value using VI?
how to check a file system type
How many bits use for MAC address?
Which command should you use to find the remaining disk space in unix server?
what is the difference between npar and vpar in HP-UX?
Differentiate cmp command from diff command.
1-how will you display a file whose name is starting with '- '? 2-how will you add a patten at end of every line in vi editor?
what is the difference between relative path and absolute path?
What does the command '$ls | wc –l > file1' do?
distinguish between user mode and kernel mode?