0

How to monitor a directory and sub-directory using the inotify command

I need to monitor the directory and sub-directory with single command, what is the option to monitor the sub-directory?

jayce
asked Oct 28, 2019
edited
1 Answer
0

Answer:

To Monitor the directory and sub-directory with a single command

Install inotify tool using the below command

yum install inotify-tools

then use the below command to monitor the specific directory recursively

inotifywait -m -r /tmp
View More
linuxhelp
answered Oct 28, 2019
Your Answer
||||
 
100:0