Exactly what the title says. I've got a 1.5 gb zip file on my sdcard that I would like to extract via adb (not pulling to pc and pushing back). Is there a simple command to unzip a file?
Thanks!
exactement ce que dit le titre. J'ai un fichier zip de 1,5 Go sur ma carte SD que j'aimerais extraire via adb (ne pas tirer sur PC et repousser). Y a-t-il une commande simple pour décompresser un fichier?
merci!
Exactly what the title says. I've got a 1.5 gb zip file on my sdcard that I would like to extract via adb (not pulling to pc and pushing back). Is there a simple command to unzip a file?
Thanks!
oui et non. Pour autant que je sache, une installation d'Android typique ne contiendra pas unzip
. Vous pouvez toutefois installer Busybox pour Android, qui fournit l'utilitaire 9988777662
. Puis un simple:
adb shell unzip /sdcard/archive.zip
ferait l'affaire. Si vous êtes enraciné, vous pouvez utiliser un programme d'installation de Busybox à partir du marché une ici sur GitHub , par exemple; cliquez sur" RAW "pour le télécharger) à quelque part comme /data/local
, puis l'invoque. Ça devrait être quelque chose comme:
adb push /path/to/busybox-android /data/local/busybox adb shell chmod 0755 /data/local/busybox #Make it executable adb shell /data/local/busybox unzip /sdcard/archive.zip
Alternativement, de nombreux gestionnaires de fichiers décompressent des fichiers pour vous. J'utilise personnellement Expert de fichier mais il y en a beaucoup d'autres. Habituellement, vous avez juste besoin d'appuyer longuement sur les archives et il présentera une option "extrait" ou similaire.
Yes and no. As far as I'm aware, a typical Android install will not contain unzip
. You can, however, install busybox for Android, which provides the unzip
utility. Then a simple:
adb shell unzip /sdcard/archive.zip
Would do the trick. If you're rooted you can use a busybox installer from the Market like Stericson's. If you're not rooted then you should be able to manually push a busybox binary (one here on Github, for example; click "raw" to download it) to somewhere like /data/local
and then invoke it. It should be something like:
adb push /path/to/busybox-android /data/local/busybox adb shell chmod 0755 /data/local/busybox #Make it executable adb shell /data/local/busybox unzip /sdcard/archive.zip
Alternatively, many file managers will unzip files for you. I personally use File Expert but there are a lot of others. Usually you just need to long press on the archive and it will present an "extract" option or similar.
J'ai pu utiliser / Data / local / TMP ainsi que capable de chmod. Je n'ai pas pu faire était de décompresser le fichier zip que j'ai créé dans Windows.
Pour surmonter ceci, j'ai créé le fichier de goudron à l'aide de 7ZIP et utilisé Busybox Tar -xvf myZip.tar destination pour décompresser avec succès le fichier.
I was able to use /data/local/tmp as well and able to chmod also. I was not able to do was unzip the zip file I created in windows.
To overcome this, i created the tar file using 7zip and used busybox tar -xvf myzip.tar destination to successfully unzip the file.
© 2022 www.demandez.top All Rights Reserved. Questions et réponses Accueil Tous les droits sont réservés