disqus4u Latest Questions

How can I use gdown to download files Google Drive on Linux?

The Validlink
Begginer

I’ve heard about using gdown to download files from Google Drive using Linux terminal, how can I do it?

Related Questions

  1. This answer was edited.

    To use gdown to download files from Google Drive using the Linux terminal, follow these steps:

    Install python and pip

    We need to first install both Python and Pip. Python is needed because gdown is a Python-built tool and requires it to be installed first. On the other hand, pip is a package manager we need to install Python scripts like gdown on Linux So, we can install both python3 and pip in one command as seen below

    sudo apt install python3-pip

    Install gdown

    Now, let’s use the pip package manager to install gdown on Linux’

    sudo pip install gdown

    Change the Google Drive file permission

    Make sure you change the file sharing permission to Anyone with the link in your Google Drive

    Extract the Google Drive file ID

    The file ID is found in the Google Drive file-sharing link whose permission has been changed to Anyone with the link. Here is the sample Google Drive link that contains the file ID

    https://drive.google.com/file/d/1aBcDeFgHiJkLmNoPqRsTuVWxYz/edit

    In this example Google Drive file link, the file ID we’re looking for is:

    1aBcDeFgHiJkLmNoPqRsTuVWxYz

    Now, you need to append the extracted file ID to the following:

    sudo gdown https://drive.google.com/uc?id=Put here your File ID

    In my case, I will use my sample extracted file ID as seen below

    sudo gdown https://drive.google.com/uc?id=1aBcDeFgHiJkLmNoPqRsTuVWxYz

    Are you still stuck? No worries, you can read this full guide with all the step-by-step instructions on how to download files from Google Drive using the Linux terminal.                  

Leave an answer

Leave an answer