Useful Trick with Linux Command
Notes of some useful Linux command usage I encountered.
1. Download Google Drive files with wget
Example Google Drive shared file:
https://drive.google.com/open?id=[ThisIsFileID]
For general usage (not a big file)
Example command:
1 | wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O "**FILENAME**" |
Where, the FILEID
is the [ThisISFiledID] shwon above.
Download big files
Command for download any big file from google drive (for big file we need confirm download)
1 | wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget \ |
Also, subsititute FILEID
and FILENAME
. Note that tere are 2 FILEID
.