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

29
tldr/gdown Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# gdown
> Download files from Google Drive and other URLs.
> More information: <https://github.com/wkentaro/gdown>.
- Download a file from a URL:
`gdown {{url}}`
- Download using a file ID:
`gdown {{file_id}}`
- Download with fuzzy file ID extraction (also works with <https://docs.google.com> links):
`gdown --fuzzy {{url}}`
- Download a folder using its ID or the full URL:
`gdown {{folder_id|url}} -O {{path/to/output_directory}} --folder`
- Download a tar archive, write it to `stdout` and extract it:
`gdown {{tar_url}} -O - --quiet | tar xvf -`

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}}`