In linux everything is considered as file, Now if I want to find only folders/directories not the files then how can i do that?
I am getting all the modified files with the following command.
find /Users/ghanshyam -type f -mmin -5 -print
My goal is to generate the log file with all the modified/access folders. Here two options are available.
create a module and call every time when a folder is modified (this one is bit difficult
because I need to check particular event)
create a cron task that will run after every 5 minutes. cron task will execute shell
script and generate the log entries with the modified folders.
Do you have any other option to do this task ?