How To Download Google Drive File Via Linux Terminal – Downloading files from Google Drive is a common task, but sometimes it can be tricky, especially if you’re using the Linux terminal. The terminal is a powerful tool that lets you perform tasks quickly and efficiently using commands.
In this guide, we’ll show you how to download files from Google Drive directly to your Linux computer using the terminal. This method is handy for those who prefer working with commands or need to download files without using a web browser.
Follow along, and you’ll be able to download your files with just a few simple commands.
Requirements To Download Google Drive File Via Linux Terminal:
Before you start, make sure you have the following:
(1) A Linux Computer: You should be using a Linux operating system.
(2) Python3 and Pip: Python3 and Pip are tools needed to install other software. You can easily install them using your package manager.
(3) Gdown Tool: This is a command-line tool used to download files from Google Drive. You’ll install it using Pip.
(4) Basic Linux Terminal Knowledge: You should be familiar with basic terminal commands to follow along with the steps.
With these ready, you’ll be all set to download files from Google Drive using your Linux terminal!
Read More :
- How To Install Kali Linux On Android No Root 2024
- How To Install Debian Neon Desktop On Android Phone No Root
- Sublime Text Editor – How To Install Sublime Text Editor On Android Phone
- How To Restart Networking In Ubuntu
- How To Install Ubuntu 23.10 On Android Phone No Root
How To Download Google Drive File Via Linux Terminal
Alright, now that we know what we need to download Google Drive files using the Linux terminal, let’s go through the process step by step.
Follow these instructions carefully, and you’ll complete the task smoothly. Let’s get started!
👉 Before we start, if you’re struggling to store large files over 15GB on Google Drive, you can get Google Drive unlimited storage for free.
Step 1: Install Required Tools.
Before you can “download Google Drive files using the Linux terminal” you need to install a few tools on your Linux system. Let’s go ahead and set everything up.
1. First, we need to make sure your packages are up-to-date. Open your terminal and run this command:
sudo apt update
This updates your system’s package list.
2. Next, we need to install python3-pip, which is a tool to help us install other software. Run this command:
sudo apt install python3-pip
3. Finally, we need to install gdown, a tool that helps download files from Google Drive. Use this command:
pip3 install gdown
That’s it for the installation! You now have everything you need to download files using the Linux terminal.
Step 2: Get the Google Drive File Sharing Link.
To download a file from Google Drive, you need the sharing link for that file. Here’s how to get it:
1. Open Google Drive: Go to the Google Drive website and find the file you want to download.
2. Get the Shareable Link: Right-click on the file and select “Get link” or “Share“. Make sure the link sharing is set to “Anyone with the link” or similar.
3. Copy the Link: Click on “Copy link” to copy the link to your clipboard.
Now you have the link you need to download the file.
Step 3: Convert Sharing Link to Direct Download Link
To download your Google Drive file using the terminal, you first need to convert the sharing link into a direct download link. Here’s how to do it:
1. Use the G-Down Download Link Generator Tool: Go to this website: G-Down Download Link Generator Tool.
2. Paste Your Link: In the G-Down Download Link Generator Tool page, paste your Google Drive file sharing link into the provided box.
3. Generate the Direct Link: Click the “Generate” button. The tool will create a direct download link for your file.
4. Copy the Direct Link: The tool will show you a new link. Copy this direct download link.
You can now use this direct link with the gdown tool in the terminal to download your file.
Step 4: Downloading the File Using gdown
Now that you have the direct download link from the previous step, you can download your file using gdown. Here’s how:
1. Open Your Terminal: Go to your terminal window.
2. Type the Download Command: Enter the following command, replacing DIRECT_DOWNLOAD_LINK with the direct link you copied:
gdown DIRECT_DOWNLOAD_LINK
3. Press Enter: Hit the Enter key. Your file will start downloading, and you’ll see the progress in your terminal.
Youtube Video Tutorial :
Conclusion :
That’s it! You’ve learned how to download files from Google Drive using the Linux terminal. By following these simple steps, you can quickly get your files using just a few commands. If you ever need to download files this way again, just repeat these steps. Happy downloading!
FAQs
1. What is gdown?
gdown is a command-line tool that makes it easy to download files from Google Drive directly to your computer using the terminal.
2. Why do I need to convert the sharing link?
Google Drive sharing links are not direct download links. Converting them to a direct download link allows gdown to access and download the file without needing to use a web browser.
3. What if the file size is very large?
gdown can handle large files, but the download time may vary depending on your internet speed. Ensure you have a stable connection for large downloads.
4. I’m getting an error with gdown. What should I do?
Make sure you copied the direct download link correctly and that gdown is properly installed. If the problem persists, check the link or reinstall gdown using pip3 install gdown.
5. Can I use this method on other operating systems?
The instructions provided are for Linux. However, gdown can also be used on macOS and Windows with slight variations in the commands and setup.