SSH zip command

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

Archive a single or several specific files using the SSH zip command

zip zipArchiveThatWillBeCreated.zip fileToArchive # single file

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

Archive entire directory using SSH 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 with SSH

unzip zippedArchive.zip
  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

SSH ip command

If you wish to obtain information about your server’s IP on a Linux machine using SSH you can use...

SSH rm command

If you wish to remove a file or folder from your Linux system you can use SSH rm command. In this...

SSH echo command

One of the most useful commands in a Linux environment is echo. With it, you can provide output...

SSH history command

If you wish to find what commands you have previously executed in a Linux environment you can use...

SSH cd command

SSH cd command is mainly used to navigate in your Linux environment. In this article, we’ll show...

Powered by WHMCompleteSolution