mv: argument list too long – processing millions of files


Due to my forgetfulness, a cron job had accumulated more than 3 million files in a directory, which I now wanted to process. So that my script doesn’t work on it for days (more 60 GB of data!), the files should be divided into smaller chunks. Unfortunately, mv couldn’t handle it, it complained with “argument list too long”. The remedy is a combination of command line commands:

find folder1/ -name ‘2017-07*’ -exec mv {} folder2 ;

sendmail 8.13.3 and SMTP AUTH


(Warning: I’m not the big Linux sysadmin, so please take the following lines with a grain of salt!)

It always bothered me that the sendmail configuration of my root server (SuSE Linux 9.3) did not want to send mails to the outside, but instead all mails always ended up in /var/mail/(username). The following changes work for me, and maybe this is a terrible hack that can lead to nasty side effects, so all without guarantee.

Continue reading “sendmail 8.13.3 and SMTP AUTH”