Help - Search - Members - Calendar
Full Version: Running Commands On Startup
Linuxhelp > Support > Technical Support
Bacardi34
I need to make a couple commands and an alias load on startup and i cant remember what file i need to put the commands in to make them run when my server boots. Anyone throw me a bone?
Thx!
wink.gif
Joey
/etc/rc.d/rc.local
Bacardi34
Sweet thanks biggrin.gif
Bacardi34
Hrm. Ok i am trying to load some alias commands on startup and i put them in /etc/rc.d/rc.local and they did not load up on start. Where should i be putting these commands?
hughesjr
For individual users, usually .bashrc or .bash_profile for that user.

To make all newly created users get that as a default ... change /etc/skel/.bashrc and /etc/skel/.bash_profile.

So distros have a file named /etc/bashrc that is a script run by all users ... if your distro has that file, you can put aliases for all users there.
Bacardi34
Excelent! Thanks alot biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.