以新目录为根目录执行命令
chroot [options] <root-dir> [<command> [args]]
1
问题描述:can't execute '/bin/sh': No such file or directory
can't execute '/bin/sh': No such file or directory
原因分析:要切换过去的目录里没bin/sh
解决方法:cp /bin/bash bin/sh
cp /bin/bash bin/sh