Skip to content

archiving files

Note

  • foobar.txt represents the filename of a text file containing a list of any files and/or directories to be excluded from the ZIP archive file to be created.
  • foobar.zip represents the filename of the ZIP archive file to be created.

In Ubuntu, use zip -r ../foobar.zip . -x@foobar.txt to create a ZIP archive file of the contents of the current directory, including hidden files and hidden directories but excluding any files and/or directories specified in foobar.txt, saving the file into the parent directory. This requires Info-ZIP.

explanation

Note

This is an incomplete explanation.

  • The -r option enables recursion.
  • The -x@foobar.txt option enables the exclusion of any files and/or directories specified in foobar.txt.

prior work

licensing

No rights reserved: CC0 1.0.