Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Running Commands On Startup, Cant believe i forgot how to do this....
Bacardi34
post Feb 4 2004, 07:31 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 15
Joined: 13-September 03
Member No.: 1,429



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
Go to the top of the page
 
+Quote Post
Joey
post Feb 4 2004, 09:30 PM
Post #2


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



/etc/rc.d/rc.local
Go to the top of the page
 
+Quote Post
Bacardi34
post Feb 4 2004, 10:22 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 15
Joined: 13-September 03
Member No.: 1,429



Sweet thanks biggrin.gif
Go to the top of the page
 
+Quote Post
Bacardi34
post Feb 6 2004, 03:00 PM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 15
Joined: 13-September 03
Member No.: 1,429



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?
Go to the top of the page
 
+Quote Post
hughesjr
post Feb 6 2004, 03:16 PM
Post #5


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



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.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Bacardi34
post Feb 6 2004, 03:35 PM
Post #6


Whats this Lie-nix Thing?
*

Group: Members
Posts: 15
Joined: 13-September 03
Member No.: 1,429



Excelent! Thanks alot biggrin.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 12th December 2017 - 11:10 AM