oracle1:/usr/share/perl/5.10.0# cat /etc/issue
Debian GNU/Linux 5.0 \n \l
oracle1:/usr/share/perl/5.10.0# uname -a
Linux oracle1 2.6.26-2-686 #1 SMP Wed Nov 4 20:45:37 UTC 2009 i686 GNU/Linux
oracle1:/usr/share/perl/5.10.0# whoami
root
oracle1:/usr/share/perl/5.10.0#
=============================================
oracle1:/tmp# cd /tmp
oracle1:/tmp# touch exfile
oracle1:/tmp# cat exfile
cat: /tmp/exfile: No such file or directory
oracle1:/tmp# ls -al
drwxr-xr-x 1 root root 4096 2011-04-08 21:38 .
drwxr-xr-x 1 root root 4096 2011-04-08 21:38 ..
drwxrwxrwx 1 root root 4096 2009-11-20 09:19 .ICE-unix
drwxrwxrwx 1 root root 4096 2009-11-20 09:19 .X11-unix
-rw-r--r-- 1 root root 0 2011-04-08 21:38 a
-rw-r--r-- 1 root root 0 2011-04-08 21:38 exfile
oracle1:/tmp# cat a
cat: /tmp/a: No such file or directory
oracle1:/tmp# cat exfile
cat: /tmp/exfile: No such file or directory
安装 build-essential 包后,每个目录都出现此错误...有人知道为什么吗?
+++++++
oracle1:/usr/share/perl/5.10.0# ls -al
....
-rw-r--r-- 1 root root 379 2009-11-06 12:15 utf8.pm
....
-rw-r--r-- 1 root root 4990 2009-11-06 12:15 fields.pm
....
oracle1:/usr/share/perl/5.10.0# pwd
/usr/share/perl/5.10.0
oracle1:/usr/share/perl/5.10.0# cat utf8.pm
cat: /usr/share/perl/5.10.0/utf8.pm: No such file or directory
oracle1:/usr/share/perl/5.10.0# cat fields.pm
cat: /usr/share/perl/5.10.0/fields.pm: No such file or directory
答案1
很奇怪,但cat
可能已经移动了。我会尝试:
hash -r
在你当前的 shell 中,看看是否cat
能再次工作。
该命令将转储 Bash 保留的程序位置的缓存。请参阅man bash
以了解更多信息。