$UID
–
Real User ID
$UID
contains the numeric real user ID of the current user.
With the sufficient permissions, a change to this variable will change the real user ID of the shell process.
Use a subshell to launch a command with a different effective user ID: (UID=0; command)
.
Links
BashSupport Pro 是一款支持 uid** 的 **Zsh 集成开发环境 - 立即试用!