WELCOME TO FRENDZ4M
Sat, Jan 18, 2025, 09:41:05 AM

Current System Time:

Get updatesShare this pageSearch
Telegram | Facebook | Twitter | Instagram Share on Facebook | Tweet Us | WhatsApp | Telegram
 

Forum Main>>PC Complaints / Tips>>

How to extract compressed zip rar tar files directly in google drive?

Page: 1   
AbhiSonaUser is offline now
PM [44]
Rank : AbhiSona
Status : Head Admin

#1

Today I'm going to tell you how can you extract your compressed files directly in you google drive.



So this can be done by writing a simple script on google colab. Ok Split your screen now and just follow the following steps one by one:-
STEP 1. Go to https://colab.research.google.com/

STEP 2. Create a new notebook
image
STEP 3. Mount your gdrive by running the following script
from google.colab import drive
drive.mount(‘/content/gdrive&rsquo

image

Now Copy the authorization code of your account
image

And Paste the authorization code into the output shell.
image

Congrats! Now your Google Drive is mounted.


STEP 4. Run the following commands--->
(a) To extract a zip file:-
!unzip "path of the zip file" -d "path of destination"

(b) To extract a rar file:-
!unrar x "/content/drive/path/input_file_name.rar" "/content/drive/path/output_folder/"

(c) To extract a tar file:-
!tar -xvf "/content/drive/path/input_file_name.tar" -C "/content/drive/path/output_folder/" (run this command to extract tar files)

!tar -xzvf "/content/drive/path/input_file_name.tar.gz" -C "/content/drive/path/output_folder/" (run this command to extract tar.gz files)

!tar -xjvf "/content/drive/path/input_file_name.tar.bz2" -C "/content/drive/path/output_folder/" (run this command to extract tar.bz2 files)[/size]


    Things to remember:-
    [list][li]First path in double quotes(don't remove double quotes) - Your Google Drive file location which you want to Extract[/li]

    [li]Second path in double quotes(don't remove double quotes) - Path where you want to extract the file in Google Drive[/li]




Regards,
AbhiSona

--------- Post edited by - abhisona
--------- Post edited by - abhisonaimage-----------------
3 ❤:
Sisqonite,sabehokos,sneakyghost,

rayanbillUser is not available now
[PM 3106]
Rank : Junior Member
Status : Member

#2
really useful thanks
BannedUser is not available now
[PM 3501]
Rank : Junior Member
Status : Member

#3
good info. thank you
sabehokosUser is not available now
[PM 5725]
Rank : Newbie
Status : Member

#4
Was looking for something like this. Thanks!
sneakyghostUser is not available now
[PM 5687]
Rank : V.I.P
Status : VIP

#5
Thanks for sharing I really appreciate
adams.singh430User is not available now
[PM 6874]
Rank : Newbie
Status : Member

#6
That is great.
mrfattyUser is not available now
[PM 6953]
Rank : Beginner
Status : Member

#7
tnx----
Reply
You are not logged in, please

Login

Page: 1   

Jump To Page:

Keywords:extract, compressed, directly, google, details, writing, simple, script, screen, follow, following, research, create, notebook, gdrive, running, import,
Related threads:

'I am Saif Ali Khan': When the driver realized who his injured passenger was


'The boy was with him': driver who took Saif Ali Khan to hospital


"I didn't know it was Saif Ali Khan": the driver who took the actor to the hospital


Opinion: While Hindenburg closes the "channel of ideas", Rahul Gandhi attacks the "Indian State"


Opinion: 'Shrinkonomics' and why India has only 30 years to escape it


BCCI 10-point diktat: What the new rules mean for Rohit, Virat and Bumrah


'Resolve this or...': Supreme Court warning to Tamil Nadu government and governor


"He had documents... They killed him": mother of the OpenAI whistleblower


How the thief broke into Saif Ali Khan's house, who saw him, what followed


GRAP-4 pollution restrictions revoked in Delhi, GRAP-3 remains in place


TERMS & CONDITIONS | DMCA POLICY | PRIVACY POLICY
Home | Top | Official Blog | Tools | Contact | Sitemap | Feed
Page generated in 0.69 microseconds
FRENDZ4M © 2025