Cookies help us deliver our better services. By using our site, you agree to our use of cookies.

Linux find total usage of files older than specified number of days

Sometimes I need to calculate a total disk usage of files older than a specified interval (days, months, years).

Here is a 1 liner to do that:

find . -type f -mtime +7 -print0 | du -hc --files0-from - | tail -n 1 

Detailed info ?


Email archiving with MailPiler 1.3.x on Debian 8 Jessie

If you are in a search for an email archiving solution, MailPiler is a recommend solutions.

If you didn't heard about MailPiler, check out the comparison with MailAr ...

Cum functioneaza un sms Gateway?

**Trimite si monitorizeaza mesaje si campanii SMS. Usor & in siguranta, oriunde in lume. **

Platforma ElementarySMS este alcatuita din doua aplicatii, conectate prin Internet, pregatite sa trimita si sa receptioneze meseje text (SMS) catre si dinspre operatorii de telefonie ...

Detecting CSV delimiter with PHP

Excel doesn't do a very good job on exporting comma separated files (CSV or TXT). Reading the file with fgetcsv could fail, since the field separator might not be as expected (a comma).

Here is a quick method to find the field delimiter from a CSV file. We'l ...

Debian Linux cron error: bad username (nscd and libnss-mysql)

If your system setup is based on nscd with libnss-mysql and you have setup a cron job for a database user, it might be possible to get this error in your syslog after ...

Setting up SRV records for an Office 365 domain using PowerDNS with PowerAdmin

Adding a domain to Office 365 requires adding some DNS records.

The details are explained here Cre ...