mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 02:35:23 +02:00
327 B
327 B
pkexec
Execute commands as another user. Asks for password in a GUI if available. More information: https://polkit.pages.freedesktop.org/polkit/pkexec.1.html.
- Run command as root:
pkexec {{command}}
- Switch user to root:
pkexec
- Run command as a specific user:
pkexec --user {{username}} {{command}}