.ZIP is an archive file format that supports lossless data compression.
A .ZIP file may contain one or more files or folders that may have been compressed.
Use following commands to unzip a file:
unzip command is used to extract all the files of a zip archive to your current directory
unzip filename.zip
You can also test the .zip file ( i.e. make sure its OK or not) by the following command.
The command prints a summary message indicating whether it is usable or broken
The command prints a summary message indicating whether it is usable or broken
unzip -tq filename.zip
To extract an individual file from a zip archive
( Let us suppose the name of the file as fun.doc)
unzip filename.zip fun.txt
Extract all files of the zip into the /tmp directory
unzip filename.zip -d /tmp
List the files of the archive without unzipping them
unzip -l filename.zip
NOTE- Still if you are having any trouble so, just comment below.
unzip -l filename.zip
NOTE- Still if you are having any trouble so, just comment below.
i cnt open my file...it always shows that it cannot find file......my file is a "rar" file....so plsss tell me how i cn unzip it.............
ReplyDeleteYou can't unzip a .rar file. You unrar it. You unzip .zip files.
DeleteI'm doing it all right but the terminal keeps saying "unzip" command not found
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteTerminal says unzip command not found
ReplyDelete