There are two types of files on google drive as follows:
1. Small files (Files smaller than 64 MB)
2. Large files (Files larger than 64 MB)

### Steps:

Note: Before you download the file, it has to be shared publicly. Simply create a shareable link of the file. (Create link for the file not the folder)

1. Get the shareable link of the file. It show look something like this.

2. Copy the file id from the link, i.e the bold part shown in the above link. 1cDyCAGmHcHrOlJn46HvyA8X0RpiOFz

3. Replace FILEID with the file id in the shareable link and FILENAME with the file name of your choice to name the downloaded file, in the following command:

For small files (file size < 64 MB):

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

For large files (file size > 64 MB):

wget --load-cookies /tmp/cookies.txt
-O- | sed -rn 's/.confirm=([0-9A-Za-z_]+)./\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt
wget -q --......