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 to get the operating system's information in unix?
What are the commands in UNIX to list the files in a Directory?
What is unix command?
What command would users use to see what file one page at a time in UNIX?
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 use of finger command?
What is “chmod” command?
distinguish between interrupts and exceptions?
distinguish between paging and swapping?
What is a bash command?
Describe the zip/unzip command using gzip.
What does the command ' $who | sort –logfile > newfile' do?