1. byrnejb

    Solved find - does not seem to return filenames as they are found?

    We have a server with an excessively large /var/spool/clientmqueue. I am trying to clear this out. The technique I tried was: find /var/spool/clientmqueue -type f -exec rm -f {} \; This command exhibits behaviour that I was not expecting. I anticipated that this would remove files as find...
  2. lifepillar

    Intense I/O: found pkg and find running at night

    Last night at about 3am I noticed my server doing a lot of I/O. Top showed first pkg then find being run by root (not in a jail). After several minutes they stopped. Is there a periodic task that is supposed to run those processes? All my services run inside jails. Root has no crontab. Running...
  3. I

    How to limit search result of directories/files to limited top-level directories only?

    I did a find / -name 'XXX' and the output is insane. It lists every file and the list never ends (I had to Ctrl-C to stop it). How can I view the results meaningfully? For example, I'd like to limit to the result to appear only for, say the top-level (or top 2nd or 3rd level) directories only...
  4. T

    Solved What is running find -sx / /usr/home /var/mail /usr/src /projects /dev/null daily?

    Every morning, I hear my hard-drive thrashing and do a ps aux to find this: find -sx / /usr/home /var/mail /usr/src /projects /dev/null I grepped /etc/cron*, but didn't find anything in there referencing find. I also looked at all the crontabs. I'm running ZFS on my root FS. I have locate...
  5. MMacD

    Solved A complicated "find"

    If you need to find a substring (e.g. a function header) in every file of a certain type no matter where in a nest of subtrees it might be, AND you want the date and size of the file, this will do it for you: find root-of-search -name...
  6. G

    Searching issue

    Hi everybody! First up, sorry for my bad English. I don't found a simply way to collect the Apache errorlog's old directories... I have FreeBSD 9.1 with Bash. The Apache error logs are within each domain directory (for the users): /domains/[domain]/errorlog/[YEAR]/[month]/[day] I need a...