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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.