600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > The command could not be located because ‘/sbin:/usr/sbin‘ is not included in the PATH.......

The command could not be located because ‘/sbin:/usr/sbin‘ is not included in the PATH.......

时间:2023-12-25 07:25:44

相关推荐

The command could not be located because ‘/sbin:/usr/sbin‘ is not included in the PATH.......

使用一些linux命令有时候会找不到那就有可能是没有加到环境变量里,直接将命令所在的目录加到环境变量即可解决。一般linux的命令都在/usr/bin和/usr/sbin目录下,不过/usr/bin这个目录一般肯定是默认有在环境变量里的,看自己系统的情况缺哪个加哪个。

以下是将/usr/sbin目录添加到环境变量里:

export PATH=/usr/sbin:$PATH

这种方式是临时的,系统重启后就没了,可以将要写的环境变量写入~/.bashrc这个文件中去。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。