I tried to switch to root in CentOS by running
su, but it does change to root, but
it doesn't seem to be a real root user. For example, by default,
/sbin is not found in the path for a normal user, but for root, the command can
When I run
su, I still get
bash: ifconfig: command not found output when I try to
However when I run
ifconfig just works.
What is the difference between
su - in CentOS?