Showing posts with label zipping. Show all posts
Showing posts with label zipping. Show all posts
Saturday, December 23, 2017
How to Zipping and Unzipping Files under Linux
How to Zipping and Unzipping Files under Linux
Linux has both zip and unzip program. By default, these utilities are not installed. You can install zip/unzip tools from the shell prompt. Open the Terminal by clicking on Application > System Tools > Terminal. You must be a root user, Type the following two commands to install zip and unzip program on Debian or Ubuntu Linux:
# apt-get install zip
# apt-get install unzip
# apt-get install zip
# apt-get install unzip
- zip is a compression and file packaging utility for Linux and Unix (including FreeBSD, Solaris etc).
- unzip will list, test, or extract files from a ZIP archive files.
ziping files/directories examples
Creates the archive data.zip and puts all the files in the current directory in it in compressed form, type:
$ zip data *
Note: No need to add .zip extension or suffix as it is added automatically by zip command.
Use the ls command to verify new zip file:
$ ls
Subscribe to:
Posts (Atom)