Update cheatsheets

This commit is contained in:
ivuorinen
2024-07-16 00:15:16 +00:00
parent 080980ecf4
commit 70fcc6f350
3 changed files with 48 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
- Launch Nautilus as root user:
`sudo nautilus`
`nautilus admin:/`
- Launch Nautilus and display a specific directory:

18
tldr/linux/run0 Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# run0
> Elevate privileges interactively.
> Similar to `sudo`, but it's not a SUID binary, authentication takes place via polkit, and commands are invoked from a `systemd` service.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/run0.html>.
- Run a command as root:
`run0 {{command}}`
- Run a command as another user and/or group:
`run0 {{-u|--user}} {{username|uid}} {{-g|--group}} {{group_name|gid}} {{command}}`