In this tutorial, I will explain how to download files stored on Google Drive to your linux machine or VPS.
Step 1: Install python-pip and gdown utility.
Bash:
# For Debian/Ubuntu Users
apt update
apt install python-pip
pip install gdown
# For RHEL/CentOS Users
yum update
yum install epel-release
yum install python-pip
pip install gdown
- Right click on the google drive file and click on Get Shareable Link option.
- Copy the link and change the permission to Anyone with the link.
For example, if link is https://drive.google.com/file/d/1ysJme6eA8llgElsPFLxn8QocWSkFp_BI/view?usp=sharing
Then the file id is 1ysJme6eA8llgElsPFLxn8QocWSkFp_BI
Step 4: Finally use the below command to download the file :
Bash:
# Replace file_id with the gdrive file ID
gdown https://drive.google.com/uc?id=file_id
# Example :
gdown https://drive.google.com/uc?id=1ysJme6eA8llgElsPFLxn8QocWSkFp_BI
Now it will download the file on your machine or vps from Google Drive.
Last edited: