![使用 most 作为分页器时,需要使用 sudo 来查看手册页](https://linux22.com/image/932787/%E4%BD%BF%E7%94%A8%20most%20%E4%BD%9C%E4%B8%BA%E5%88%86%E9%A1%B5%E5%99%A8%E6%97%B6%EF%BC%8C%E9%9C%80%E8%A6%81%E4%BD%BF%E7%94%A8%20sudo%20%E6%9D%A5%E6%9F%A5%E7%9C%8B%E6%89%8B%E5%86%8C%E9%A1%B5.png)
我已经安装了most
它作为默认分页器来查看手册页。被导出most
为。当我运行如下命令时,出现以下错误:PAGER
.bashrc
man grep
man: can't execute “most”: No such file or directory
man: command exited with status 255: sed -e '/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }' | LESS=-ix8RmPm Manual page grep(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page grep(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=grep(1) “most”
但是,以下命令可以正常运行。
man -P most grep
man -P pager grep
<<< 加载最多sudo man grep
<<< 以 root 用户身份运行命令时有效
Ubuntu 版本:Ubuntu 20.04.1 LTS
PS:我从 18.04 升级到了 20.04