mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 03:41:48 +00:00
30 lines
655 B
Plaintext
30 lines
655 B
Plaintext
---
|
|
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 -`
|