How to find the files that are accessed before 10 minutes?
Answer Posted / 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 |
Post New Answer View All Answers
How to display no of records in oracle using unix command?
What are the commands in UNIX to list the files in a Directory?
Which command is used to kill the last background job?
What is the use of the command 'ls -x chapter[1-5]' ?
Does cp command overwrite files?
What is the use of finger command?
What are reported commands?
How do I run a bash script?
What does the command '$ls | wc –l > file1' do?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
How do I search a whole word in vim?
What does the command ' $who | sort –logfile > newfile' do?
Why is it called grep?
What is the command to view process running?
What is the unix command to confirm a remote host is alive or not?