which
如:
输入:which reboot
输出:/sbin/reboot
输入:which shutdown -h now
输出:/sbin/shutdown
如有不对之处,欢迎指出,一起成长