EZ Linux Admin random header image

Entries from August 2011

Tracking down the biggest folders

August 11th, 2011 by EZ linux · No Comments

du -ax –max-depth 1 /var/cpanel | sort -n | tail This is a great command to simply find what folders are the biggest in a directory. You can replace the /var/cpanel with any folder and it will list everything in there and how big they are in order. Once you find the big folder then [...]

Click to continue →

Tags: Cheat Sheets · Cpanel and WHM · Linux Commands · Linux Security · Linux Software / Scripts · Linux Tricks

Cleaning up /var

August 11th, 2011 by EZ linux · No Comments

Cpanel and linux leaves a lot of log files in /var After several years these can add up, especially in the cpanel/bandwidth folder. So a couple quick folder moves and symlinks can clean things up. This is assuming you have a /backup partition and some room in it. Moving the log folder mv /var/log /backup/ [...]

Click to continue →

Tags: Cheat Sheets · Cpanel and WHM · Linux Operating Systems · Linux Security · Linux Software / Scripts · Linux Tricks