使用
chroot:为什么运行sudo chroot /bin /bash会出错?
我从文档中了解到,chroot应该执行/bin/bash,/bin是该命令的新根目录。
为什么我会出错?
这是终端输出:
nlykkei@nlykkei-ThinkPad-X200s ~ $ sudo chroot /bin /bash
[sudo] password for nlykkei:
chroot: failed to run command ‘/bash’: No such file or directory我正在运行Linux 17 64位.
发布于 2015-08-13 19:17:02
你可能是指没有空格的sudo chroot /bin/bash。如果有空格,linux将将命令解释为带有2个参数的1个程序,而chroot命令只需要一个参数。
https://stackoverflow.com/questions/31986682
复制相似问题