OK, RedHat 7.3, Bash shell.
I want to add /usr/sbin to my path so that I can run common commands from any directory.
I ran this command to add this path:
export path=$path:/usr/sbin
But I still can't run common commands like useradd, or traceroute...I get:
bash: useradd: command not found
My path now looks like this:
echo $path
:/usr/sbin:/usr/sbin:/usr/sbin:/usr/local/sbin:/usr/bin:.
(note the extra /usr/sbin entries)
What I am I doing wrong? please help.
Thanks,
HC
I
I want to add /usr/sbin to my path so that I can run common commands from any directory.
I ran this command to add this path:
export path=$path:/usr/sbin
But I still can't run common commands like useradd, or traceroute...I get:
bash: useradd: command not found
My path now looks like this:
echo $path
:/usr/sbin:/usr/sbin:/usr/sbin:/usr/local/sbin:/usr/bin:.
(note the extra /usr/sbin entries)
What I am I doing wrong? please help.
Thanks,
HC
I