linux错误—2.man:command not found

文章目录


第一种可能是你没有安装man
只需要安装就可以

[root@centos ~]# yum install man

第二种可能是环境变量PATH不对的问题
此时,把该路径加入PATH即可,

# 用whereis命令查看,该指令的位置。
[root@centos swpu]# whereis man
man: /usr/share/man
# 通过编辑/etc/profile来改PATH
[root@centos swpu]# vim /etc/profile
进入编辑模式,在最后,添加:
export PATH="/usr/share/man:$PATH"
保存,退出,然后运行:
[root@centos swpu]# source /etc/profile
不报错则成功。

如果输入vim /etc/profile,出现vim: command not found错误,则参考这个网址:linux错误—1.vim: command not found来解决。


参考博客:Linux中可以man到一个命令,但是使用时报错command not found

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值