System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Shorten full command of sudo

SOLVED
Go to solution
mohdamir
Frequent Advisor

Shorten full command of sudo

Hi guys,
I've installed sudo in my server. But when I try to execute sudo command, it cannot be found. I've to put full path of sudo command as below:
#/usr/local/bin/sudo .

How should I do to shorten up this full path into sudo only:
#sudo

TQ
2 REPLIES
Ivan Krastev
Honored Contributor
Solution

Re: Shorten full command of sudo

Add /usr/loca/bin in your PATH.

regards,
ivan
mohdamir
Frequent Advisor

Re: Shorten full command of sudo

As answered by Ivan. Thanks Ivan (^_^)