Forrest logo
back to context overview

zip

List of commands for zip:

  • zip:ai:c2dbc how do i zip everything from a specific directory
    $ zip -r folder.zip ${directory}
    try on your machine
    explain this command
  • zip:ai:d8e10 zip excluding all files with recurring name
    $ zip -r --exclude='*filename*' archive.zip ${directory}
    try on your machine
    explain this command
  • zip:archive:preview Preview the contents of a zip file
    $ unzip -l ${filename}
    try on your machine
    explain this command
  • zip:archive:remove-file Remove files/directories from a specific archive ([d]elete).
    $ zip -d ${path/to/compressed-zip} ${filename_or_directory1 filename_or_directory2 ---}
    try on your machine
    explain this command
  • zip:tldr:0091a zip: Archive files/directories to a multi-part [s]plit zip file (e.g. 3 GB parts).
    $ zip -r -s ${3g} ${path-to-compressed-zip} ${filename_or_directory1 filename_or_directory2 ---}
    try on your machine
    explain this command
  • zip:tldr:0a1d3 zip: List all files in a `.zip` file.
    $ zipinfo -1 ${path-to-archive-zip}
    try on your machine
    explain this command
  • zip:tldr:157d6 zip: View the comments on a zip archive.
    $ zipnote ${filename-zip}
    try on your machine
    explain this command
  • zip:tldr:1f2bd zip: Extract the password hash from an archive, listing all files in the archive.
    $ zip2john ${filename-zip}
    try on your machine
    explain this command
  • zip:tldr:3131f zip: the highest).
    $ zip -r -${0-9} ${path-to-compressed-zip} ${filename_or_directory1 filename_or_directory2 ---}
    try on your machine
    explain this command
  • zip:tldr:31801 zip: Archive files/directories e[x]cluding specified ones.
    $ zip -r ${path-to-compressed-zip} ${filename_or_directory1 filename_or_directory2 ---} -x ${path-to-excluded_files_or_directories}
    try on your machine
    explain this command
  • zip:tldr:5ede6 zip: Print a specific archive contents.
    $ zip -sf ${path-to-compressed-zip}
    try on your machine
    explain this command
  • zip:tldr:68296 zip: Extract the comments on a zip archive to a file.
    $ zipnote ${filename-zip} > ${filename-txt}
    try on your machine
    explain this command
  • zip:tldr:68639 zip: Add/Update comments in a zip archive from a file.
    $ zipnote -w ${filename-zip} < ${filename-txt}
    try on your machine
    explain this command
  • zip:tldr:862ea zip: List all files in a `.zip` file in long format (permissions, ownership, size, and modification date).
    $ zipinfo ${path-to-archive-zip}
    try on your machine
    explain this command
  • zip:tldr:93c02 zip: Align the data of a ZIP file on 4-byte boundaries.
    $ zipalign ${4} ${path-to-input-zip} ${path-to-output-zip}
    try on your machine
    explain this command
  • zip:tldr:bf7c9 zip: Check that a ZIP file is correctly aligned on 4-byte boundaries and display the results in a verbose manner.
    $ zipalign -v -c ${4} ${path-to-input-zip}
    try on your machine
    explain this command
  • zip:tldr:c3789 zip: Extract the password hash using [o]nly a specific compressed file.
    $ zip2john -o ${path-to-compressed_file} ${filename-zip}
    try on your machine
    explain this command
  • zip:tldr:f8d16 zip: Extract the password hash from a compressed file to a specific file (for use with John the Ripper).
    $ zip2john -o ${path-to-compressed_file} ${filename-zip} > ${file-hash}
    try on your machine
    explain this command
back to context overview