diff --git a/tldr/gdown b/tldr/gdown new file mode 100644 index 00000000..5d798925 --- /dev/null +++ b/tldr/gdown @@ -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: . + +- 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 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 -` diff --git a/tldr/linux/nautilus b/tldr/linux/nautilus index d22bebcc..9fb38abe 100644 --- a/tldr/linux/nautilus +++ b/tldr/linux/nautilus @@ -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: diff --git a/tldr/linux/run0 b/tldr/linux/run0 new file mode 100644 index 00000000..54e1d83d --- /dev/null +++ b/tldr/linux/run0 @@ -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: . + +- 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}}`