ubuntu download google drive link code example

Example 1: download google drive file ubuntu

sudo wget "https://drive.google.com/uc?export=download&id=replace_this_by_file_id"

Example 2: download from google drive in terminal

wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt

Example 3: wget google drive file

wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O FILENAME

Tags:

Go Example