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?

Linux Monitoring tool Add a comment
jayce
asked Oct 28 2019
edited Oct 28 2019

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
Add a comment
linuxhelp
asked Oct 28 2019
Post your Answer