mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 06:00:56 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/gdown
Normal file
29
tldr/gdown
Normal 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 -`
|
||||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Launch Nautilus as root user:
|
- Launch Nautilus as root user:
|
||||||
|
|
||||||
`sudo nautilus`
|
`nautilus admin:/`
|
||||||
|
|
||||||
- Launch Nautilus and display a specific directory:
|
- 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