你好,我不知道这个问题出在哪里。我想使用命令ls
,但终端说它不存在。这是屏幕截图。我以 root 用户身份登录。
用stat命令,输出结果如下:
root@ns1:~# stat /bin/ls
File: `/bin/ls'
Size: 39696 Blocks: 80 IO Block: 4096 regular file
Device: 802h/2050d Inode: 2488208 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2013-08-27 21:00:59.825120536 +0700
Modify: 2010-09-22 01:32:55.000000000 +0700
Change: 2013-08-27 21:00:48.291368562 +0700
root@ns1:~# stat /
File: `/'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 802h/2050d Inode: 2 Links: 23
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2013-08-27 15:48:31.285959829 +0700
Modify: 2013-08-27 15:42:39.251379071 +0700
Change: 2013-08-27 15:42:39.251379071 +0700
root@ns1:~# stat /bin
File: `/bin'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 802h/2050d Inode: 392449 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2013-08-27 20:53:00.251389526 +0700
Modify: 2013-08-27 20:51:59.861361479 +0700
Change: 2013-08-27 20:51:59.861361479 +0700
答案1
您应该查看 serverfault 上的这个问题,并确保您没有被 root。:/ HTH https://serverfault.com/questions/10884/bin-ls-not-found-even-though-it-exists