mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-21 00:50:50 +00:00
Update cheatsheets
This commit is contained in:
@@ -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
18
tldr/linux/run0
Normal 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}}`
|
||||
Reference in New Issue
Block a user