Skip to content

Instantly share code, notes, and snippets.

@samueldr
Last active February 3, 2018 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueldr/0b8d7b8342ae16e1a7de1e566abaa27e to your computer and use it in GitHub Desktop.
Save samueldr/0b8d7b8342ae16e1a7de1e566abaa27e to your computer and use it in GitHub Desktop.
~/tmp/DRODTSS 130 $ mv ~/Downloads/DRODTSSDemoSetup.run ./
~/tmp/DRODTSS $ nix-shell -p unzip --run "unzip DRODTSSDemoSetup.run"
Archive: DRODTSSDemoSetup.run
warning [DRODTSSDemoSetup.run]: 616844 extra bytes at beginning or within zipfile
(attempting to process anyway)
creating: guis/
inflating: guis/libmojosetupgui_ncurses_32.so
inflating: guis/libmojosetupgui_gtkplus2_32.so
inflating: guis/libmojosetupgui_gtkplus2_64.so
inflating: guis/libmojosetupgui_ncurses_64.so
creating: meta/
creating: meta/xdg-utils/
inflating: meta/xdg-utils/xdg-desktop-menu
inflating: meta/xdg-utils/xdg-open
inflating: meta/splash.jpg
creating: scripts/
inflating: scripts/setinfo.lua
inflating: scripts/mojosetup_init.lua
inflating: scripts/app_localization.lua
inflating: scripts/localization.lua
inflating: scripts/config.lua
inflating: scripts/mojosetup_mainline.lua
creating: data/
extracting: data/data.tar.xz
~/tmp/DRODTSS 1 $ ls -l data/
total 115872
-rw-rw-r-- 1 samuel users 118649432 Mar 31 2016 data.tar.xz
~/tmp/DRODTSS $
~/tmp/DRODTSS $ nix-shell -p unzip --run "unzip --help"
UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.
Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
Default action is to extract files in list, except those in xlist, to exdir;
file[.zip] may be a wildcard. -Z => ZipInfo mode ("unzip -Z" for usage).
-p extract files to pipe, no messages -l list files (short format)
-f freshen existing files, create none -t test compressed archive data
-u update files, create if necessary -z display archive comment only
-v list verbosely/show version info -T timestamp archive to latest
-x exclude files that follow (in xlist) -d extract files into exdir
modifiers:
-n never overwrite existing files -q quiet mode (-qq => quieter)
-o overwrite files WITHOUT prompting -a auto-convert any text files
-j junk paths (do not make directories) -aa treat ALL files as text
-U use escapes for all non-ASCII Unicode -UU ignore any Unicode fields
-C match filenames case-insensitively -L make (some) names lowercase
-X restore UID/GID info -V retain VMS version numbers
-K keep setuid/setgid/tacky permissions -M pipe through "more" pager
See "unzip -hh" or unzip.txt for more help. Examples:
unzip data1 -x joe => extract all files except joe from zipfile data1.zip
unzip -p foo | more => send contents of foo.zip via pipe into program more
unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment