<?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>Blogmotion &#187; vide</title>
	<atom:link href="http://blogmotion.fr/tag/vide/feed" rel="self" type="application/rss+xml" />
	<link>http://blogmotion.fr</link>
	<description>Culture web et nouvelles technologies informatiques</description>
	<lastBuildDate>Wed, 09 May 2012 08:15:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<meta name="generator" content="WordPress" />
	<atom:link rel='hub' href='http://blogmotion.fr/?pushpress=hub'/>
		<item>
		<title>Lister tous les fichiers vides (0 octet) sous Linux</title>
		<link>http://blogmotion.fr/systeme/lister-tous-les-fichiers-de-taille-nulle-sous-linux-2961</link>
		<comments>http://blogmotion.fr/systeme/lister-tous-les-fichiers-de-taille-nulle-sous-linux-2961#comments</comments>
		<pubDate>Fri, 05 Jun 2009 08:44:14 +0000</pubDate>
		<dc:creator>Mr Xhark</dc:creator>
				<category><![CDATA[Système]]></category>
		<category><![CDATA[commande]]></category>
		<category><![CDATA[fichier]]></category>
		<category><![CDATA[lister]]></category>
		<category><![CDATA[nul]]></category>
		<category><![CDATA[taille]]></category>
		<category><![CDATA[trouver]]></category>
		<category><![CDATA[vide]]></category>

		<guid isPermaLink="false">http://blogmotion.fr/?p=2961</guid>
		<description><![CDATA[But : lister tous les fichiers ayant une taille de 0 ko (nulle) en ligne de commande sous Linux C&#8217;est la commande find qui nous permet d&#8217;obtenir le résultat : find /chemin/dossier -type f -size 0 Remplacez le /chemin/dossier par le dossier dans lequel vous souhaitez chercher les fichiers de taille nulle, vous pouvez essayer [...]]]></description>
			<content:encoded><![CDATA[<p><strong><img class="alignright size-full wp-image-2963" style="border: 1px solid #ccc; margin: 10px;" title="fichier-vide-linux" src="http://blogmotion.fr/wp-content/uploads/2009/06/fichier-vide-linux.png" alt="fichier-vide-linux" width="125" height="125" />But</strong> : <strong>lister tous les fichiers</strong> ayant une <strong>taille de 0 ko</strong> (nulle) en ligne de commande sous Linux</p>
<p>C&#8217;est la commande find qui nous permet d&#8217;obtenir le résultat :</p>
<pre>find /chemin/dossier -type f -size 0</pre>
<p>Remplacez le <em>/chemin/dossier</em> par le dossier dans lequel vous souhaitez chercher les fichiers de taille nulle, vous pouvez essayer sur la racine &laquo;&nbsp;/&nbsp;&raquo; par exemple :</p>
<pre class="brush: bash; title: ; notranslate">blogmotion:~# find / -type f -size 0
/var/games/gnobots2.classic_robots-super-safe.scores
/var/games/gnotski.37.scores
/var/games/gnobots2.robots_with_safe_teleport-safe.scores
/var/games/gnotski.18.scores
/var/games/gnotski.30.scores
/var/games/mahjongg.confounding.scores
/var/games/mahjongg.easy.scores
/var/games/mahjongg.dragon.scores
/var/games/gnotski.3.scores
/var/games/gnotravex.2x2.scores
/var/games/gnotski.36.scores
/var/games/gnibbles.4.1.scores
/var/games/gnobots2.robots_with_safe_teleport.scores
...</pre>
<p><span id="more-2961"></span><br />
Voici également une autre commande, <strong>similaire</strong> au cas où la première ne vous conviendrait pas :</p>
<pre class="brush: bash; title: ; notranslate">find /chemin/dossier -type f -size 0 -exec ls -lh {} ; | awk '{ print $9 &amp;quot;: &amp;quot; $5 }'</pre>
<pre class="brush: bash; title: ; notranslate">blogmotion:~# find / -type f -size 0 -exec ls -lh {} ; | awk '{ print $9 &amp;quot;: &amp;quot; $5 }'
/var/games/gnobots2.classic_robots-super-safe.scores: 0
/var/games/gnotski.37.scores: 0
/var/games/gnobots2.robots_with_safe_teleport-safe.scores: 0
/var/games/gnotski.18.scores: 0
/var/games/gnotski.30.scores: 0
/var/games/mahjongg.confounding.scores: 0
/var/games/mahjongg.easy.scores: 0
/var/games/mahjongg.dragon.scores: 0
/var/games/gnotski.3.scores: 0
/var/games/gnotravex.2x2.scores: 0
/var/games/gnotski.36.scores: 0
/var/games/gnibbles.4.1.scores: 0
/var/games/gnobots2.robots_with_safe_teleport.scores: 0
...
</pre>
<p>Voilà <img src='http://blogmotion.fr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
Vous devriez me suivre sur Twitter : <strong><a href="http://twitter.com/xhark">@xhark</a></strong>
<hr />
<p><small><a href="http://blogmotion.fr/systeme/lister-tous-les-fichiers-de-taille-nulle-sous-linux-2961">Article original</a> écrit par Mr Xhark publié sur <a href="http://blogmotion.fr">Blogmotion</a> le 05/06/2009 |
<a href="http://blogmotion.fr/systeme/lister-tous-les-fichiers-de-taille-nulle-sous-linux-2961#comments">4 commentaires</a> |
<br />Attention : l'intégralité de ce billet est protégée par la licence <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/fr/">Creative Commons</a> 
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blogmotion.fr/systeme/lister-tous-les-fichiers-de-taille-nulle-sous-linux-2961/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

