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 |
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What are awk commands?
What is nr in awk command?
use of ls command
why unix commands can be divided into internal and external commands?
In Unix file permissions what does the second field denotes?
How do you remove a crontab file?
What is the use of sed command in unix?
Give Command that will change the name of a directly from paypal to eBay
Can you write a command to erase all files in the current directory including all its sub-directories?
How do you create a file in UNIX
36 Answers Accenture, EMG, Nokia, QA, TD,
Through which command will redirect output to bOth screen and files at the same time?