Running commands at startup

Jerry McAllister jerrymc at clunix.cl.msu.edu
Fri Nov 26 12:31:28 PST 2004


> 
> 
> This will probobly seem like such a basic question, but where can do i put 
> commands i want to run at startup.
> 
> freeBSD 4.10
> 
> i want to run (for example)
> 
> alias 'ls=ls -G'
> alias 'vi=vim'
> alias 'shutdown=shutdown -h now'
> etc...

You should put alias commands in your shell startup script.
That would be .cshrc for csh and tcsh and .profile for sh and bash.
There are also system wide startup scripts for each of these so you 
can make everyone have those aliases.

Some things like path commands work better in the .login startup script
because you may want to add to a path rather than set from scratch each
time and if you add in a shell startup, the path can get unnecessarily long.

Things that you really want to execute at system startup need to go
in either /etc/rc.local or better, in /usr/local/etc/rc.d/
See man pages for rc.d

////jerry

> 
> Also, i am running fluxbox, but my mouse is very slow when it starts up. at the moment i have to enter xset m 5/1 in the terminal to speed it up. How can i get fluxbox do do this at startup? 

Never used fluxbox.

> 
> ____________________________________________________________
> Danny Browne
> 
> 
> 
> _________________________________________________________________
> Sign up for eircom broadband now and get a free two month trial.*
> Phone 1850 73 00 73 or visit http://home.eircom.net/broadbandoffer
> 
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 



More information about the freebsd-questions mailing list