How to run a command when boots up?

http://www.cyberciti.biz/tips/linux-how-to-run-a-command-when-boots-up.html
http://www.debian-administration.org/articles/28
http://cosmolinux.no-ip.org/raconetlinux2/boot.html