When I switched to root user using su command, I still need to use sudo reboot instead of reboot to reboot the system, otherwise bash returns
bash: reboot: command not found
Why is that the system would not look for executables in sbin/ directories for root user automatically?
PATHofroot/sbin. Add it and voila. – Romeo Ninov Jun 13 '23 at 14:47/sbins by default? Isn't it supposed to be able to execute any commands withoutsudo? – Yiyang Yan Jun 13 '23 at 14:57PATHvariable. Why you do not have it we do no know. – Romeo Ninov Jun 13 '23 at 15:01su -instead of onlysu. Have a look at man su(1). – Oliver Knodel Jun 13 '23 at 15:37