Possible Duplicate:
how to run shell (bash) script automatically at startup?
Hey there,
I need to do some more homework ;-) The question is where do I have to place a script so it runs on every startup ?
Cheers
Hey there, I need to do some more homework ;-) The question is where do I have to place a script so it runs on every startup ? Cheers | ||||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.
|
From Startup files: startup files These files contain the aliases and environmental variables made available to Bash running as a user shell and to all Bash scripts invoked after system initialization. /etc/profile systemwide defaults, mostly setting the environment (all Bourne-type shells, not just Bash 1) /etc/bashrc systemwide functions and aliases for Bash $HOME/.bash_profile user-specific Bash environmental default settings, found in each user's home directory (the local counterpart to /etc/profile) $HOME/.bashrc user-specific Bash init file, found in each user's home directory (the local counterpart to /etc/bashrc). Only interactive shells and user scripts read this file. See Appendix G for a sample .bashrc file. | |||||
feedback
|
man bash. Learning how to find the answers is a good skill, but relying on a site like superuser.com is a secondary choice after doing your own research first. – Doug Harris Jul 20 '10 at 2:01