<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://xmlpipedb.lmucs.io/biodb/fall2017/index.php?action=history&amp;feed=atom&amp;title=Handling_Compressed_Files</id>
		<title>Handling Compressed Files - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://xmlpipedb.lmucs.io/biodb/fall2017/index.php?action=history&amp;feed=atom&amp;title=Handling_Compressed_Files"/>
		<link rel="alternate" type="text/html" href="https://xmlpipedb.lmucs.io/biodb/fall2017/index.php?title=Handling_Compressed_Files&amp;action=history"/>
		<updated>2026-05-04T19:41:29Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>https://xmlpipedb.lmucs.io/biodb/fall2017/index.php?title=Handling_Compressed_Files&amp;diff=1147&amp;oldid=prev</id>
		<title>Dondi: Transcribe brief compression/decompression page.</title>
		<link rel="alternate" type="text/html" href="https://xmlpipedb.lmucs.io/biodb/fall2017/index.php?title=Handling_Compressed_Files&amp;diff=1147&amp;oldid=prev"/>
				<updated>2017-09-16T22:33:25Z</updated>
		
		<summary type="html">&lt;p&gt;Transcribe brief compression/decompression page.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Downloadable software is usually provided in a &amp;#039;&amp;#039;compressed&amp;#039;&amp;#039; format—that is, the files in the software have been processed so that they take up less space, resulting in a faster download. Compression also typically “packs” any software that consists of multiple files into a single file, again making the download process simpler.&lt;br /&gt;
&lt;br /&gt;
== Decompression ==&lt;br /&gt;
&lt;br /&gt;
Compressed files can’t be used “as-is;” they need to be &amp;#039;&amp;#039;decompressed&amp;#039;&amp;#039; by an appropriate application. The key word here is “appropriate”—there are different kinds of decompression, and each kind may require a different application.  Each kind of decompression can be thought of as a different file format, the way Microsoft Word files are either &amp;#039;&amp;#039;.doc&amp;#039;&amp;#039; or &amp;#039;&amp;#039;.docx&amp;#039;&amp;#039; files, or how images can be in &amp;#039;&amp;#039;.jpg&amp;#039;&amp;#039;, &amp;#039;&amp;#039;.gif&amp;#039;&amp;#039;, &amp;#039;&amp;#039;.png&amp;#039;&amp;#039;, or other formats.&lt;br /&gt;
&lt;br /&gt;
The [[Week 4]] starter files have been uploaded in the &amp;#039;&amp;#039;.zip&amp;#039;&amp;#039; compression format. As supplementary information, this wiki page discusses this format as well as another common format, &amp;#039;&amp;#039;.tar.gz&amp;#039;&amp;#039; (called a “tarball” in techie circles), that you might also encounter in the future. The two formats serve the same purpose; the only difference is &amp;#039;&amp;#039;how&amp;#039;&amp;#039; the two choices are compressed—a detail that most of us don’t need to know about.&lt;br /&gt;
&lt;br /&gt;
=== .zip ===&lt;br /&gt;
&lt;br /&gt;
The ZIP format is typically more familiar to Windows users, but is widely supported on other operating systems as well.&lt;br /&gt;
&lt;br /&gt;
Typically, you can double-click on the file’s icon to unzip. On Windows, the ability to unzip depends on the version of Windows that you’re using.  Some versions of Windows have the capability built-in; other versions require third-party applications such as [http://www.7-zip.org 7-Zip] and [http://www.rarlab.com WinRAR], as well as [http://www.winzip.com WinZip]. The Seaver 120 lab computers have [http://www.7-zip.org 7-Zip].&lt;br /&gt;
&lt;br /&gt;
There is a gotcha that you should be aware of when using the built-in Windows unzip functionality, if it is available to you: Windows defaults to doing “live” decompression; that is, as you double-click a &amp;#039;&amp;#039;.zip&amp;#039;&amp;#039; file and navigate through its contents, the &amp;#039;&amp;#039;.zip&amp;#039;&amp;#039; file may act like a folder, but in reality it’s still a single &amp;#039;&amp;#039;.zip&amp;#039;&amp;#039; file, which Windows opens as-you-go.  This works fine when you’re just looking at files, but may cause confusion when you actually want to edit or run them.  To be completely sure, right-click on the &amp;#039;&amp;#039;.zip&amp;#039;&amp;#039; and make sure to &amp;#039;&amp;#039;Extract&amp;#039;&amp;#039; the files so that they become actual files on the disk.&lt;br /&gt;
&lt;br /&gt;
Command line tip: in the &amp;#039;&amp;#039;bash&amp;#039;&amp;#039; command line environment, there is a command for unzipping a &amp;#039;&amp;#039;.zip&amp;#039;&amp;#039; file:&lt;br /&gt;
&lt;br /&gt;
 unzip filename.zip&lt;br /&gt;
&lt;br /&gt;
Substitute &amp;lt;code&amp;gt;filename.zip&amp;lt;/code&amp;gt; with the actual name of the &amp;#039;&amp;#039;.zip&amp;#039;&amp;#039; file that you would like to decompress.&lt;br /&gt;
&lt;br /&gt;
=== .tar.gz ===&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;.tar.gz&amp;#039;&amp;#039; format is actually two formats: the first one, &amp;#039;&amp;#039;.tar&amp;#039;&amp;#039;, is responsible for grouping multiple files and folders into a single file.  That single file is then compressed, producing the &amp;#039;&amp;#039;.gz&amp;#039;&amp;#039;. This format is generally most readily available on Unix-flavored operating systems like Linux or macOS. In the &amp;#039;&amp;#039;bash&amp;#039;&amp;#039; command line environment, you would “extract” the files in a tarball using this command:&lt;br /&gt;
&lt;br /&gt;
 tar xzf filename.tar.gz&lt;br /&gt;
&lt;br /&gt;
The same operation can also be done from the graphical user interface by double-clicking on the file’s icon. On Windows, the open-source [http://www.7-zip.org 7-Zip] and shareware [http://www.rarlab.com WinRAR] applications can handle &amp;#039;&amp;#039;.tar.gz&amp;#039;&amp;#039; and other formats.&lt;br /&gt;
&lt;br /&gt;
If you happen a file that ends in just &amp;#039;&amp;#039;.gz&amp;#039;&amp;#039; and not &amp;#039;&amp;#039;.tar.gz&amp;#039;&amp;#039;, then it is compressed only.  Command-line decompression then requires a different command:&lt;br /&gt;
&lt;br /&gt;
 gunzip filename.gz&lt;br /&gt;
&lt;br /&gt;
Graphical user interface approaches can figure this out on their own and don’t require that you do anything different.&lt;br /&gt;
&lt;br /&gt;
=== Other Formats ===&lt;br /&gt;
&lt;br /&gt;
Other compression formats abound, including &amp;#039;&amp;#039;bunzip2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;compress&amp;#039;&amp;#039; (&amp;#039;&amp;#039;.Z&amp;#039;&amp;#039; files), &amp;#039;&amp;#039;.rar&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;.7z&amp;#039;&amp;#039;, to name a few.  It’s generally useful to understand how to deal with files such as these, since downloads are frequently compressed in some way.&lt;br /&gt;
&lt;br /&gt;
== Compression ==&lt;br /&gt;
&lt;br /&gt;
Of course, if it is possible to &amp;#039;&amp;#039;de&amp;#039;&amp;#039;compress these files, then someone must have &amp;#039;&amp;#039;compressed&amp;#039;&amp;#039; them first. Many of the utilities listed above go both ways: they can create &amp;#039;&amp;#039;and&amp;#039;&amp;#039; extract compressed files. In most operating systems, right-clicking a folder reveals a menu that includes a &amp;#039;&amp;#039;Compress&amp;#039;&amp;#039; command, which uses the &amp;#039;&amp;#039;.zip&amp;#039;&amp;#039; format most of the time. On the command line, there are “mirror” commands for compressing files: &amp;#039;&amp;#039;&amp;#039;zip&amp;#039;&amp;#039;&amp;#039; instead of &amp;#039;&amp;#039;&amp;#039;unzip&amp;#039;&amp;#039;&amp;#039; for &amp;#039;&amp;#039;.zip&amp;#039;&amp;#039; files, &amp;#039;&amp;#039;&amp;#039;tar czf&amp;#039;&amp;#039;&amp;#039; instead of &amp;#039;&amp;#039;&amp;#039;tar xzf&amp;#039;&amp;#039;&amp;#039; for &amp;#039;&amp;#039;.tar.gz&amp;#039;&amp;#039; files, and &amp;#039;&amp;#039;&amp;#039;gzip&amp;#039;&amp;#039;&amp;#039; instead of &amp;#039;&amp;#039;&amp;#039;gunzip&amp;#039;&amp;#039;&amp;#039; for plain &amp;#039;&amp;#039;.gz&amp;#039;&amp;#039; files.&lt;/div&gt;</summary>
		<author><name>Dondi</name></author>	</entry>

	</feed>