Linux zip command

One of the most used compression methods is zip archiving. On a Linux system, you can use the zip / unzip commands to manipulate .zip files. In this article, we will show you how to easily use the Linux Zip Command to create archives.

Archive a single or several specific files using Linux zip command

zip zipArchiveThatWillBeCreated.zip fileToArchive # single file

zip zipArchiveThatWillBeCreated.zip fileToArchive-1 fileToArchive-2 fileToArchive-3 # multiple files

Archive entire directory using Linux zip command

zip -r /path/to/directory

Excluding files when archiving with Linux zip command

zip -r /path/to/directory -x fileToExclude # Excludes just a single file

zip -r /path/to/directory -x *.fileFormat # Exclude all files of the given file format

Unzipping

unzip zippedArchive.zip
  • 0 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

Linux tar Command

The Linux tar command is used to compress and extract files to and from an archive. In this...

Linux top command

If you wish to monitor the performance of your VPS or Dedicated server and track processes, RAM...

Linux ping command

If you wish to test your connection to a server from your Linux system you can use the Linux ping...

Linux file command

The file command is used to check a file’s type and contents in Linux environment. It is most...

Linux export command

When you’re managing your shell’s variables and you wish to save them to your environment you can...