使用man无法查询命令
发表于 : 2018-08-20 20:00
1.当我使用man查询命令时会报错,例如:man ls
2.
3.不过,命令ls依然可以用,只是用man无法查询了。
4.在stackoverflow我看到一个类似的但用那的方法没效果,链接:
拜托了,感激不尽。
4.我的系统是ubuntu-18.04.1
2.
代码: 全选
$ man ls
man: can't execute which less: No such file or directory
man: command exited with status 255: sed -e '/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }' | LESS=-ix8RmPm Manual page ls(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page ls(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=ls(1) which less -s
4.在stackoverflow我看到一个类似的但用那的方法没效果,链接:
代码: 全选
https://stackoverflow.com/questions/26524559/git-commands-execution-like-git-diff-or-git-help-commit-returns-errors-abo/41726440
4.我的系统是ubuntu-18.04.1