Update cheatsheets

This commit is contained in:
ivuorinen
2025-09-04 00:18:21 +00:00
parent 46b75bdb29
commit 7bb915f683
11 changed files with 192 additions and 17 deletions

32
tldr/linux/gksu Normal file
View File

@@ -0,0 +1,32 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# gksu
> Frontend for `su`.
> Allows you to run graphical commands which need root access without having to run an X terminal emulator.
> Note: This command is deprecated in favor of commands like `pkexec`, and is no longer maintained.
> See also: `gksudo`.
> More information: <https://manned.org/man/gksudo>.
- Run a command as a specific user:
`gksu {{[-u|--user]}} {{userid}} {{command}}`
- Run the command while preserving the current environments:
`gksu {{[-u|--user]}} {{userid}} {{[-k|--preserve-env]}} {{command}}`
- Force `gksu` to use `su` to run the command:
`gksu {{[-u|--user]}} {{userid}} {{[-w|--su-mode]}} {{command}}`
- Force `gksu` to use `sudo` to run the command:
`gksu {{[-u|--user]}} {{userid}} {{[-S|--sudo-mode]}} {{command}}`
- Output debug info for the given command:
`gksu {{[-u|--user]}} {{userid}} {{[-d|--debug]}} {{command}}`