我已经安装了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