ZIP command

GIT – ZIP  is a compression and file packaging utility for Unix, VMS, MSDOS, OS/2, NT, Minix, Atari and Macintosh, Amiga and Acorn RISC OS.

zip -r target source
  • zip -r myarchive myfolder
    Creates, an archive containing every files and directories present in myfolder, even files with a starting dot.
  • zip documents *
    Creates the archive containing all the files in the current directory. Files beginning with a dot might be excluded depending on your shell filename expansion feature configuration. Directories will be empty in
  • zip documents *.sdw
    Creates the archive containing all the .sdw files present in the current directory.
  • zip -r archive * -x \*.doc
    Archives all files and directories in the working directory excluding names with the .doc suffix. Please note the backslashed “*” character to prevent the shell from interpreting it. It will be interpreted and applied by the zip instead, in all processed directories.
  • zip -g documents essays/*
    Appends all the files of the essays directory to the existing archive.
  • zip -mT documents *
    Moves all files of the current directory to the archive. This is dangerous as this actually deletes those files. Please read the man page for more details.
Print Friendly, PDF & Email



Bài viết liên quan

Be the first to comment

Để lại lời nhắn