What Is "unzip" Command on Linux Systems


What Is "unzip" Command on Linux Systems?

✍: FYIcenter.com


"unzip" Command on Linux Systems allows you to list and extract files from a ZIP file.

1. You can use "man unzip" to read its man page.

       unzip [-Z] [-cflptTuvz[abjnoqsCDKLMUVWX$/:^]] file[.zip] 
       [file(s) ...]  [-x xfile(s) ...] [-d exdir]

       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(1L), 
       creates ZIP archives; both programs are compati-
       ble with archives created by PKWARE's PKZIP and PKUNZIP for MS-DOS, 
       but in many cases the  program  options  or
       default behaviors differ.


2. You can use "unzip orders.zip" to extract all files from the ZIP file, orders.zip.

3. You can use "-u" option to turn on the "update" mode, which only extracts files that do not exist in the destination directory or have newer dates.

4. You can use the "-l" option to get a list of all files in the ZIP file. For example, "unzip -l orders.zip" lists all files without extracting them.


WinZip - A Shareware ZIP File Tool

What Is "zip" Command on Linux Systems

"zip/unzip" Commands on Linux Systems

⇑⇑ ZIP - Frequently Asked Questions

2021-02-21, 725🔥, 0💬