How to Create a Zip File in Unix

How to Create a Zip File in Unix thumbnail
How to Create a Zip File in Unix

Most Unix systems have historically used GNUzip and compress instead of zip to create compressed file archives. Meanwhile, zip is the most popular compressed file archive format in the Windows environment. Today, with Windows dominating the desktop market, Unix operating systems such as Linux and Solaris now include zip by default. It takes just a few steps to create zip files in Unix that can be easily used in the Windows environment.

Instructions

    • 1

      Log into the Unix system with your username and password.

    • 2

      Open up a command line prompt by clicking on a desktop icon that looks like a computer terminal. Unlike Windows, there is no easy way to create a zip file in Unix, without using the command line.

    • 3

      Change the directory to the directory above the files, and directory you want to zip. Use the command line to do this. For example, if you want to go to the /var/tmp directory, type in "cd /var/tmp."

    • 4

      Run the zip command from the command line to create the zip file. For example, "zip -r /var/tmp/zipfile.zip file1 file2 /var/tmp/directory1" means create a zip file called /var/tmp/zipfile.zip that contains file1, file2, and all content recursively inside directory1.

Related Searches:

References

  • Photo Credit plex

Comments

You May Also Like

  • How to View ZIP Files in Unix

    ZIP files are common in the Microsoft Windows world because they provide the ability to compress a number of files into a...

  • How to Zip Multiple Files in Unix

    The "ZIP" utility provides the ability to compress files and also group a number of files together into a single ".zip" file...

  • How to Extract Zip Files in Unix

    Windows zip files can be extracted in Unix using the unzip command. Unix is a command line based operating system with different...

  • How to Zip Extracted Files

    Zipped files can contain more than one file. Zipped files also compress larger files into smaller ones so that you can save...

  • How to Unzip a ZIP File in Unix

    The ZIP file format is a data compression and archive format. A ZIP file contains one or more files that have been...

  • How to Open a Zip File in Unix

    Opening Zip files in Unix is a multi-step process. Commands entered at the command line in Unix are used to extract zipped...

  • How to Unzip a File in Unix

    There are three types of data compression formats commonly used in UNIX: .zip, .tar and .gz. The ZIP file format is most...

  • How to Unzip Multiple Files by Mask in UNIX

    Zipping refers to various program methods that permit you to compress files and hence reduce their size. Before working with zipped files...

  • How to Create a File in Unix

    Creating a file is very easy to do in Unix. Many Unix users make programs that create zero length files on the...

Related Ads

Featured