Unzip

Kalau di Windows kita mengenal program semacam WinZip atau 7-Zip, Ubuntu juga punya program serupa, namanya unzip. Bedanya, unzip ini gratis dan mesti dijalankan lewat terminal aka konsol.

Unzip will list, test, or extract files from a ZIP archive, commonly found on MS-DOS systems. The default behavior (with no options) is to extract into the current directory (and subdirectories below it) all files from the specified ZIP archive. A companion program, zip, creates ZIP archives; both programs are compatible with archives created by PKWARE’s PKZIP and PKUNZIP for MS-DOS, but in many cases the program options or default behaviors differ. — Unzip manual page

Instalasi

sudo apt-get install unzip

Penggunaan

Format:

unzip file.zip -d destination-folder

Mengurai file tunggal

Mengurai file file.zip ke dalam folder myfolder

unzip file.zip -d myfolder

PS: folder myfolder tak perlu dibuat terlebih dahulu, sebab akan dibuat secara otomatis saat perintah unzip -d dijalankan.

Mengurai semua file

Mengurai semua file .zip ke dalam folder myfolder

unzip '*.zip' -d myfolder

Kalau ada file dengan nama yang sama, akan muncul pertanyaan seperti ini..

Replace tes/SIL Open Font License.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
  inflating: tes/SIL Open Font License.txt

Ketik a untuk menimpa (overwrite) semua file yang sama…



Selamat mencoba, semoga bermanfaat.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s