<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Utiliser le terminal pour desarchiver des fichiers tar ou zip Archives - Matthieu Fleitz</title>
	<atom:link href="https://matthieufleitz.fr/tag/utiliser-le-terminal-pour-desarchiver-des-fichiers-tar-ou-zip/feed/" rel="self" type="application/rss+xml" />
	<link>https://matthieufleitz.fr/tag/utiliser-le-terminal-pour-desarchiver-des-fichiers-tar-ou-zip/</link>
	<description>You can sail with me in my yellow submarine</description>
	<lastBuildDate>Mon, 24 Apr 2017 14:59:00 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>
	<item>
		<title>Utiliser le terminal pour desarchiver des fichiers tar ou zip</title>
		<link>https://matthieufleitz.fr/utiliser-le-terminal-pour-desarchiver-des-fichiers-tar-ou-zip/</link>
					<comments>https://matthieufleitz.fr/utiliser-le-terminal-pour-desarchiver-des-fichiers-tar-ou-zip/#comments</comments>
		
		<dc:creator><![CDATA[matthieu]]></dc:creator>
		<pubDate>Wed, 08 Feb 2017 21:43:33 +0000</pubDate>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[rar]]></category>
		<category><![CDATA[Utiliser le terminal pour desarchiver des fichiers tar ou zip]]></category>
		<category><![CDATA[zip]]></category>
		<guid isPermaLink="false">https://matthieufleitz.fr/?p=963</guid>

					<description><![CDATA[<p>Si vous voulez prendre le contrôle de votre Mac, je ne peux que vous conseiller de vous familiariser avec le Terminal et plus généralement avec la ligne de commande. Dans ce post, je vous montre comment utiliser le terminal pour desarchiver des fichiers tar ou zip sur Mac. Si vous souhaitez<a class="moretag" href="https://matthieufleitz.fr/utiliser-le-terminal-pour-desarchiver-des-fichiers-tar-ou-zip/"> Lire la suite&#8230;</a></p>
<p>The post <a rel="nofollow" href="https://matthieufleitz.fr/utiliser-le-terminal-pour-desarchiver-des-fichiers-tar-ou-zip/">Utiliser le terminal pour desarchiver des fichiers tar ou zip</a> appeared first on <a rel="nofollow" href="https://matthieufleitz.fr">Matthieu Fleitz</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Si vous voulez prendre le contrôle de votre Mac, je ne peux que vous conseiller de vous familiariser avec le Terminal et plus généralement avec la ligne de commande. Dans ce post, je vous montre comment <strong>utiliser le terminal pour desarchiver des fichiers tar ou zip sur Mac</strong>. Si vous souhaitez vous tourner vers les métiers techniques Apple, je vous conseille au passage l&rsquo;excellent livre sur le sujet : <em><a href="http://amzn.to/2kIOcSM">Macintosh Terminal Pocket Guide</a>.</em></p>
<p><span id="more-963"></span></p>
<h2>Qu&rsquo;est ce qu&rsquo;une archive ?</h2>
<p>On part de loin. Vous avez déjà dû rencontrer des fichiers .zip, .rar, .tar ou .7zip si vous utilisez l&rsquo;informatique de manière régulière. Pour faire simple les archives permettent de « ranger » dans un seul fichier, un ensemble de fichiers en compressant (Zip) ou non (Tar) le tout. Selon les types de fichiers que vous archivez, vous pouvez plus ou moins de gagner en taille de fichiers.</p>
<h2>Utiliser le Terminal pour desarchiver des fichiers rar ou zip</h2>
<p>Vous pouvez bien-sûr utiliser l&rsquo;interface graphique (clique droit puis <em>compresser « Nom du fichier « )</em> mais ce n&rsquo;est pas notre but aujourd&rsquo;hui. Voici donc comment utiliser le Terminal pour manipuler des des fichiers rar ou zip.</p>
<h3>Créer une archive zip sur macOS :</h3>
<pre>zip -r <em>nom_de_votre_archive.zip</em> <em>dossier_à_compresser</em></pre>
<div id="attachment_964" style="width: 710px" class="wp-caption aligncenter"><a href="https://matthieufleitz.fr/wordpress/wp-content/uploads/2017/02/Screen-Shot-2017-02-08-at-22.10.36.jpg"><img aria-describedby="caption-attachment-964" decoding="async" loading="lazy" class="wp-image-964 size-large" src="https://matthieufleitz.fr/wordpress/wp-content/uploads/2017/02/Screen-Shot-2017-02-08-at-22.10.36-1024x146.jpg" alt="Utiliser le terminal pour desarchiver des fichiers tar ou zip" width="700" height="100" srcset="https://matthieufleitz.fr/wordpress/wp-content/uploads/2017/02/Screen-Shot-2017-02-08-at-22.10.36-1024x146.jpg 1024w, https://matthieufleitz.fr/wordpress/wp-content/uploads/2017/02/Screen-Shot-2017-02-08-at-22.10.36-300x43.jpg 300w, https://matthieufleitz.fr/wordpress/wp-content/uploads/2017/02/Screen-Shot-2017-02-08-at-22.10.36-768x109.jpg 768w, https://matthieufleitz.fr/wordpress/wp-content/uploads/2017/02/Screen-Shot-2017-02-08-at-22.10.36.jpg 1054w" sizes="(max-width: 700px) 100vw, 700px" /></a><p id="caption-attachment-964" class="wp-caption-text">Par exemple !</p></div>
<p>Pour information, le -r signifie « recursif » pour créer l&rsquo;archive à partir du dossier archive mais également avec tout son contenu.</p>
<h2>Extraire le contenu d&rsquo;une archive zip :</h2>
<pre>unzip <em>nom_de_votre_archive.zip
</em></pre>
<p><a href="https://matthieufleitz.fr/wordpress/wp-content/uploads/2017/02/Screen-Shot-2017-02-08-at-22.18.48.jpg"><img decoding="async" loading="lazy" class="aligncenter wp-image-965 size-full" src="https://matthieufleitz.fr/wordpress/wp-content/uploads/2017/02/Screen-Shot-2017-02-08-at-22.18.48.jpg" alt="Dezipper un fichier avec le terminal sur macOS" width="908" height="178" srcset="https://matthieufleitz.fr/wordpress/wp-content/uploads/2017/02/Screen-Shot-2017-02-08-at-22.18.48.jpg 908w, https://matthieufleitz.fr/wordpress/wp-content/uploads/2017/02/Screen-Shot-2017-02-08-at-22.18.48-300x59.jpg 300w, https://matthieufleitz.fr/wordpress/wp-content/uploads/2017/02/Screen-Shot-2017-02-08-at-22.18.48-768x151.jpg 768w" sizes="(max-width: 908px) 100vw, 908px" /></a></p>
<h2>Créer un fichier .tar sur macOS avec le Terminal :</h2>
<pre>tar -cf <em>nom_de_votre_archive.tar</em> <em>dossier_à_compresser
</em></pre>
<p>tar fonctionne un peu différemment. Il faut ajouter -c pour créer l&rsquo;archive.</p>
<h2>Extraire une archive .tar :</h2>
<pre>tar -xf <em>nom_de_votre_archive.tar</em></pre>
<p>Lister le contenu d&rsquo;une archive tar :</p>
<pre>tar -tf <em>nom_de_votre_archive.tar</em></pre>
<p>Concernant tar, on comprend tout de suite l&rsquo;intérêt de la ligne de commande puisque l&rsquo;interface graphique de macOS, par défaut, ne peut pas uniquement lister le contenu d&rsquo;une archive ou simplement créer une archive .tar.</p>
<p>The post <a rel="nofollow" href="https://matthieufleitz.fr/utiliser-le-terminal-pour-desarchiver-des-fichiers-tar-ou-zip/">Utiliser le terminal pour desarchiver des fichiers tar ou zip</a> appeared first on <a rel="nofollow" href="https://matthieufleitz.fr">Matthieu Fleitz</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://matthieufleitz.fr/utiliser-le-terminal-pour-desarchiver-des-fichiers-tar-ou-zip/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
