Using
chroot
: Why do I get error from runningsudo 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 Mint 17 64 位。
最佳答案
你的意思可能是 sudo chroot/bin/bash
没有空格。如果您有空格,linux 会将您的命令解释为 1 个程序和 2 个参数,而 chroot 命令只需要 1 个参数。
关于linux - 使用 `chroot` : Why do I get error from running `sudo chroot/bin/bash` ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31986682/