Help - Search - Members - Calendar
Full Version: Running Commands On Startup
Linuxhelp > Support > Technical Support
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?
Sweet thanks biggrin.gif
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?
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.
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-2018 Invision Power Services, Inc.