pkexec
Execute commands as another user. Asks for password in a GUI if available. See also:
sudo,run0,doas. More information: https://polkit.pages.freedesktop.org/polkit/pkexec.1.html.
- Run command as root:
pkexec
- Switch user to root:
pkexec
- Run command as a specific user:
pkexec --user
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
