{"id":164,"date":"2013-07-14T08:42:26","date_gmt":"2013-07-14T13:42:26","guid":{"rendered":"http:\/\/appleii.ivanx.com\/a2cloud\/?p=164"},"modified":"2023-09-10T11:49:22","modified_gmt":"2023-09-10T16:49:22","slug":"a2cloud-use-archives-and-images","status":"publish","type":"post","link":"https:\/\/appleii.ivanx.com\/a2cloud\/a2cloud-use-archives-and-images\/","title":{"rendered":"16. Expand archives"},"content":{"rendered":"<p>If you have an archive file, on your Pi, you&#8217;ll need to expand it.<\/p>\n<p>&nbsp;<\/p>\n<p>Commands for general archive formats:<\/p>\n<p><code>unzip archiveFileName<\/code>\u00a0will extract files from a .zip archive<\/p>\n<p><code>gunzip compressedFileName<\/code> will uncompress a .gz compressed file<\/p>\n<p><code>tar xf archiveFileName<\/code> will extract files from a .tar archive<\/p>\n<p><code>tar zxf archiveFileName<\/code>\u00a0will extract files from a .tar.gz (or .tgz) archive (both of the previous commands in a single step)<\/p>\n<p><code>unar archiveFileName<\/code>\u00a0will extract files from tons of archive formats, including obsolete ones like StuffIt and DiskDoubler. See\u00a0<a title=\"The Unarchiver supported formats\" href=\"http:\/\/unarchiver.c3.cx\/formats\" target=\"_blank\" rel=\"noopener\">The Unarchiver<\/a>\u00a0for a full list.<\/p>\n<p>&nbsp;<\/p>\n<p>Commands for Apple II archive formats:<\/p>\n<p><code>nulib2 -x archiveFileName<\/code>\u00a0will extract files from a ShrinkIt (.SHK, .SDK, .BXY) or Binary II (.BQY, .BNY) archive. This will mostly be useful when the archive contains a full disk image (typically, but not always, indicated as .SDK); if the archive contains files, use one of the commands below. You can view the contents of an archive before expanding with <code>nulib2 -v archiveFileName<\/code>.<\/p>\n<p><code>shk2image archiveFileName\u00a0imageFileName<\/code>\u00a0will extract files from a ShrinkIt or Binary II archive to a ProDOS disk image file (if the one you specify doesn&#8217;t exist, an 800K image will be created, unless the name you gave ends in &#8220;.dsk&#8221;, in which case a 140K image will be created). If you want the archive to be expanded directly to virtual drive 1 or 2, use <code>$VSD1<\/code> or <code>$VSD2<\/code> for <code>imageFileName<\/code>.<\/p>\n<p>If you want the archive to be expanded into a ProDOS subdirectory rather than at the top level of the disk image,\u00a0you can supply a ProDOS path, without the volume name, as an additional argument. The subdirectory (and any subdirectories within it) will be created if it doesn&#8217;t exist. For example:<\/p>\n<p><code>shk2image archiveFileName $VSD2 PATH\/TO\/PRODOS.DIR.NAME<\/code><\/p>\n<p>(You can also uncompress ShrinkIt archives on your Apple II by transferring the archive, as I&#8217;ll explain in the next post. It&#8217;s slower that way, though.)<\/p>\n<p>For other (and older) Apple II formats:\u00a0<code style=\"line-height: 1.714285714;\">sciibin filename<\/code><span style=\"line-height: 1.714285714; font-size: 1rem;\"> will decode a BinSCII file (.BSC, .BSQ); note that .BSQ files produce ShrinkIt archives when decoded, so use <\/span><code style=\"line-height: 1.714285714;\">nulib2 -x<\/code><span style=\"line-height: 1.714285714; font-size: 1rem;\"> or <\/span><code style=\"line-height: 1.714285714;\">shk2image<\/code><span style=\"line-height: 1.714285714; font-size: 1rem;\"> on the result.\u00a0<code>nulib2 -x filename<\/code>\u00a0will extract files from a Binary II (.BNY, .BQY) archive, and will automatically uncompress any Squeezed (.QQ) files within the archive; alternatively,\u00a0<\/span><code>unblu filename<\/code>\u00a0will extract files from a Binary II archive and\u00a0<code>usq filename<\/code>\u00a0will uncompress Squeezed files.\u00a0<code>unbit filename &gt; outfilename<\/code>\u00a0will decode an EXEC file made by Executioner; <code>unexec filename &gt; outfilename<\/code> will decode an EXEC file containing monitor input.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have an archive file, on your Pi, you&#8217;ll need to expand it. &nbsp; Commands for general archive formats: unzip archiveFileName\u00a0will extract files from a .zip archive gunzip compressedFileName will uncompress a .gz compressed file tar xf archiveFileName will extract files from a .tar archive tar zxf archiveFileName\u00a0will extract files from a .tar.gz (or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5,2,4],"tags":[],"_links":{"self":[{"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/posts\/164"}],"collection":[{"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/comments?post=164"}],"version-history":[{"count":37,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/posts\/164\/revisions"}],"predecessor-version":[{"id":871,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/posts\/164\/revisions\/871"}],"wp:attachment":[{"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/media?parent=164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/categories?post=164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/tags?post=164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}