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


Please Help Members By Posting Answers For Below Questions

What happens when we execute a unix command?

597


How does shebang work?

588


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

759


How do I open a port?

589


Can you enlist some commonly used network commands?

600






Which command is used to restrict incoming messages?

592


What is s and g in sed command?

557


Which unix command lists files/folders in alphabetical order?

614


How does the system know where one command ends and another begins?

1574


What command is used to check the current users?

592


What is .sh file?

616


What does the “echo” command do?

624


Is command prompt unix?

579


What do know about tee command and its usage?

586


Explain mount and unmount command.

613