execute command when Ubuntu boots up ?

hey all,,
I want to add comments when Ubuntu starts up..
now I know that there is a directory called /etc/init.d
which I can place my scripts there to run them at Ubuntu's startup..

but I prefer if there would be a file which runs when Ubuntu starts!!
because it is only one command. not worth to make a new file..

I tried .profile ,, but does not work..
regarding .bash_rc ,,, it runs commands each time I open the terminal.
and I want to run a command once!!

any suggestions?

thanks.

Append the command to /etc/rc.local.

1 Like

thank you radoulov:)