Finding big files and directories on a Linux system

techie-iconTo find big files on a Linux system, try:

find . -type f -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}

To find big directories on a Linux system, try:

find . -type d -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}

The tail -10 on each of those controls how many you’ll see, so if you wanted to see the 20 biggest you’d change that to tail -20.

LFD spamd – suspicious process running under user cpanel

techie-iconIf you’ve installed the CSF firewall and its associated LFD process, you may be plagued with: suspicious process running under cpanel messages relating to spamd child. It will have something like /usr/local/cpanel/3rdparty/perl/514/bin/perl as the executable.

In most cases this is a false-positive in terms of being a suspicious process and you could probably do without the emails cluttering up your inbox.

So to get rid of it:

Continue reading …