Unzip Command In Linux

Chapter: Linux Commands Last Updated: 20-11-2019 16:47:35 UTC

Program:

            /* ............... START ............... */
                

[email protected]:~/Desktop$ unzip jdk1.8.0_231.zip  // This will extract the files to current directory

[email protected]:~/Desktop$ unzip -q jdk1.8.0_231.zip // -q is used to suppress the printing the details of files.

[email protected]:~/Desktop$ unzip -q jdk1.8.0_231.zip -d ~/Desktop/JDK/   /* Command will unzip to folder ~/Desktop/JDK/  */

[email protected]:~/Desktop$ unzip -l jdk1.8.0_231.zip  // will list the details of the file in zip file.


                /* ............... END ............... */
        

Output


Unzip Command In Linux

Notes:

  • Command used in linux to unzip the file is "unzip". unzip command will extract all files from the specified ZIP archive to the current directory.
  • Syntax : unzip [filename] [folderlocation (Optonal)]
  • $ unzip -q jdk1.8.0_231.zip - This command will unzip the file jdk1.8.0_231.zip. Here -q is optional, -q is used to suppress the printing of files extracting during the unzip operation.
  • $ unzip -q jdk1.8.0_231.zip -d ~/Desktop/JDK/ - By using the command file will be extracted and copy to folder location specified. Currently here it is ~/Desktop/JDK/. (-d parameter is mandatory for this command).
  • $ unzip -l jdk1.8.0_231.zip - unzip -l command will list the details of the files in zip file(It will not unzip the files).
  • For more information you can refer the program and output sections.

Tags

unzip command in linux with examples, How to unzip a file in linux, extract zip file in linux

Similar Programs Chapter Last Updated
Process Command In Linux Linux Commands 16-11-2019
Linux Command To Create Link Linux Commands 15-11-2019
Linux Command To View File Content Linux Commands 25-10-2019
Linux Command To Check OS Version Linux Commands 25-10-2019
Netstat Command In Linux Linux Commands 13-08-2019
Telnet Command In Linux Linux Commands 13-08-2019
Linux Command To Create A File Linux Commands 23-05-2019
Linux echo Command Linux Commands 05-05-2018
Linux Ping Command Linux Commands 05-05-2018
Linux ls (List Directory) Command Linux Commands 17-03-2018

1