Archive for February, 2008

-bash: /bin/rm: Argument list too long (AKA: Too Many Files)

find /path/to/directory/ -exec rm {} \;

So apparently that command is magical! Alright, so it’s not magical but it was able to delete over 200,000 spam messages from a users Maildir/ when the rm command failed. “-bash: /bin/rm: Argument list too long”, it complained! So asking around I found out about that beauty of a command and how rm can only take a certain amount of arguments before failing.

Nice to know, as my journey of learning more about Debian Linux (and Linux in general) continues.

Basic Instructions for Moving a Website to Dreamhost

1) Signup for an account
2) Download all files from your current host
3) Get a database dump of any databases you are using
4) Once your account is active add your domain to the dreamhost system <-- getting activated can take a few days so bunker down for a wait
5) Upload all your files to your new account
6) Upload all your databases to new databases on dreamhost
7) Test your site! <-- very important
8) Switch the nameservers – this part is where the real switch is made and can take up to 48 hours for your new host to be used world-wide.
9) Watch a flawless transfer of your website from one host to another :) I love that part.

Let me know if you need help!