HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
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 (^_^)