service restart

Ouattara Oumar Aziz wattazoum at gmail.com
Fri Jul 28 17:33:08 UTC 2006


> On Fri, Jul 28, 2006 at 08:59:37AM +0200, Ouattara Oumar Aziz wrote:
>> :) . It's nicer to type $ service than $ /etc/init.d/ . Also even more 
>> interesting is that $ serv +[TAB] gives you $ service . (gain of time).
> 
> In that case, please try, in .bashrc :
> 
> service () { 
>     /etc/init.d/$1 $2
> }
> 
> Then "service networking restart" should perform
> "/etc/init.d/networking restart" for you.
> (And command completion works for shell functions too. :-))
> 
Your solution is a much more better that mine :) . 2 lines to add to 
.bashrc and here you go.

Thanks a lot


	

	
		
___________________________________________________________________________ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. 
http://fr.answers.yahoo.com 






More information about the ubuntu-users mailing list