📜  linux 以用户身份执行 - Shell-Bash 代码示例

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

代码示例1
sudo -H -u otheruser bash -c 'echo "I am $USER, with uid $UID"'