之前man命令是可以正常使用的,yum安装了zip跟unzip之后就出错了,使用man全提示以下错误:
[root@localhost bin]# man cd
sh: /usr/bin/gunzip: No such file or directory
fgets: No such file or directory
Error reading man page /usr/share/man/man1/cd.1.gz
No manual entry for cd
——————————————————————————————————————
[root@localhost bin]# whereis gunzip
gunzip: /bin/gunzip /usr/bin/gunzip /usr/share/man/man1/gunzip.1.gz
——————————————————————————————————————
[root@localhost bin]# ls -lh /usr/bin/gunzip
lrwxrwxrwx 1 root root 16 Mar 5 13:22 /usr/bin/gunzip -> ../../bin/gunzip
——————————————————————————————————————
[root@localhost bin]# ls -lh gunzip
-rwxr-xr-x 1 root root 61 Mar 18 2014 gunzip
——————————————————————————————————————
[root@localhost bin]# cat gunzip
#!/bin/sh
PATH=${'/bin'}:$PATH
exec gzip -d "$@"
——————————————————————————————————————
试过yum reinstall 重新安装gzip这个错误还是存在,各位大虾帮帮忙
[root@localhost bin]# man cd
sh: /usr/bin/gunzip: No such file or directory
fgets: No such file or directory
Error reading man page /usr/share/man/man1/cd.1.gz
No manual entry for cd
——————————————————————————————————————
[root@localhost bin]# whereis gunzip
gunzip: /bin/gunzip /usr/bin/gunzip /usr/share/man/man1/gunzip.1.gz
——————————————————————————————————————
[root@localhost bin]# ls -lh /usr/bin/gunzip
lrwxrwxrwx 1 root root 16 Mar 5 13:22 /usr/bin/gunzip -> ../../bin/gunzip
——————————————————————————————————————
[root@localhost bin]# ls -lh gunzip
-rwxr-xr-x 1 root root 61 Mar 18 2014 gunzip
——————————————————————————————————————
[root@localhost bin]# cat gunzip
#!/bin/sh
PATH=${'/bin'}:$PATH
exec gzip -d "$@"
——————————————————————————————————————
试过yum reinstall 重新安装gzip这个错误还是存在,各位大虾帮帮忙
编辑回复