Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Bash Script on Startup? (Linux)

I want to run some commands at boot time.

share|improve this question

marked as duplicate by Gilles, Caleb, echox, Michael Mrozek May 16 '11 at 14:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

possible duplicate of Bash Script on Startup? (Linux); see also Create services in Linux (Start up in linux) – Gilles May 16 '11 at 11:44

Use /etc/rc.local

On my system, the comment header says this:

# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
share|improve this answer
This is for Debian and Debian-derived distributions such as Ubuntu. Other distros might be different. – LawrenceC May 16 '11 at 13:40
It works on CentOS/RHEL as well. – jonescb May 16 '11 at 14:00
Thanks, didn't know that. – LawrenceC May 16 '11 at 14:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.