[英]How do I run man without using sudo and not under root directory?
I've encountered a problem that I can't seem to find a solution for.我遇到了一个似乎找不到解决方案的问题。 Running the man
command anywhere that isn't in ~ or without using sudo returns:在不在 ~ 或不使用 sudo 的任何地方运行man
命令返回:
"/usr/bin/man: can't execute less: Invalid argument "/usr/bin/man: 不能少执行:无效参数
/usr/bin/man: command exited with status 255: ..." /usr/bin/man: 命令退出,状态为 255: ..."
I've tried running export MANPAGER=less
我试过运行export MANPAGER=less
$PAGER
and $MANPAGER
are set to less. $PAGER
和$MANPAGER
设置为 less。 It still does not seem to work.它似乎仍然不起作用。
What do I do?我该怎么办?
Edit: After further review I've noticed that the command works everywhere except a mounted network directory that I use.编辑:经过进一步审查,我注意到除了我使用的挂载网络目录外,该命令在任何地方都有效。 I can use less
and echo
man ls`` just fine, but just using man
as usual brings up the mentioned issue.我可以使用less
和echo
man ls`` 就好了,但是像往常一样使用man
会带来提到的问题。
Try to change the permission and ownership of /usr/bin/man.尝试更改 /usr/bin/man 的权限和所有权。 Make it so that it is executable by everyone.使其对每个人都可以执行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.