📜  bash cd root 权限被拒绝 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:17.881000             🧑  作者: Mango

代码示例1
The best thing to do is sudo su or su, then cd to /root. You can (if you want) string together commands like this: su -c "cd /root; dostuff", but the first way is easier if you need to get into /root.