How to download files from Google Drive through terminal


The easiest way that works for me

The file_id should look something like 0B7pQmm-OfDv7SHFadHR4RllfR1E

You can get it by right-clicking on the file and then Get shareable link. Tested on open access files. I’m not sure whether it works for the directory.

Just remove export=download& from gdown and It works like a charm.



Convert them to

For Example: 

$ gdown /home/rahul.patel/pointer-generator/pretrained_model_tf1.0.zip194MB [00:05, 32.7MB/s]