注意:命令要写绝对路径,/usr/sbin默认不在普通用户的搜索路径中,可以加入此路径:PATH=$PATH:/usr/sbin;export PATH。
另外,不同系统命令的路径不尽相同,可以使用命令“whereis 命令名”来查找其路径。
这时会显示下面的输出结果:
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two t页码:[1] [2] [3] [4] [5] [6] 第5页、共6页 |