Hello everyone,
There is a find command running on some regular intervals without my intention, and I want to understand what it does. It has may regex in it and I am a bit alien to those regex stuff, so can someone please translate it to me (especially this
\(^/mnt$\)\|\(^/cdrom$\).... part)? and how come there is some parenthesis after directory to be searched? Anyway, here's the output of the command via
Code:
ps -aux | grep 'find'
: Thanks in advance!
Code:
/usr/bin/find / ( -fstype nfs -o -fstype NFS -o -fstype proc -o -fstype afs -o -fstype proc -o -fstype smbfs -o -fstype autofs -o -fstype iso9660 -o -fstype ncpfs -o -fstype coda -o -fstype devpts -o -fstype ftpfs -o -fstype devfs -o -fstype mfs -o -fstype sysfs -o -fstype shfs -o -type d -regex \(^/mnt$\)\|\(^/cdrom$\)\|\(^/tmp$\)\|\(^/usr/tmp$\)\|\(^/var/tmp$\)\|\(^/var/spool$\)\|\(^/proc$\)\|\(^/media$\) ) -prune -o -print0