<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: fichier</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Concaténer plusieurs fichiers texte dans un même fichier texte</title>
        <link>http://www.posteet.com/view/1373</link>
        <description>
        <![CDATA[<pre>Mettre les fichiers à &quot;merger&quot; dans un sous-répertoire. Aller dans ce répertoire puis exécuter la commande :

cat * &gt; ../nouveau_fichier.txt</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/concaténation">[concaténation]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/texte">[texte]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Wed, 26 Nov 2008 16:58:24 +0000</pubDate>

            <category>bash</category>
            <category>concaténation</category>
            <category>fichier</category>
            <category>texte</category>
    
    </item>

  
    <item>
        <title>Créer un fichier tar.gz à partir d'un fichier listant un certains nombres de fichiers</title>
        <link>http://www.posteet.com/view/1358</link>
        <description>
        <![CDATA[<pre>while read line; do
  tar -P -c -T - -f archive.tar.gz
done &lt; liste_diff.txt

Le fichier fourni en paramètre contient une liste de fichiers avec pour chacun le chemin absolu sur le serveur + nom du fichier. C’est pourquoi on rajoute l’option -P (--absolute-names) à la commande tar.

ATTENTION : Il faut laisser une ligne vide au début de fichier, sinon le premier fichier de la liste n’est pas pris en compte.

Voir aussi :
http://linuxfr.org/forums/30/21469.html</pre> <a href="http://www.posteet.com/tags/archive">[archive]</a>  <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/compression">[compression]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/liste">[liste]</a>  <a href="http://www.posteet.com/tags/sauvegarde">[sauvegarde]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Fri, 07 Nov 2008 14:47:21 +0000</pubDate>

            <category>archive</category>
            <category>bash</category>
            <category>compression</category>
            <category>fichier</category>
            <category>liste</category>
            <category>sauvegarde</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Trouver l'emplacement de tous les 'php.ini' qui se trouvent sur un serveur</title>
        <link>http://www.posteet.com/view/1320</link>
        <description>
        <![CDATA[<pre>find / -name php.ini</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/php">[php]</a>  <a href="http://www.posteet.com/tags/trouver">[trouver]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Thu, 16 Oct 2008 12:57:25 +0000</pubDate>

            <category>bash</category>
            <category>fichier</category>
            <category>php</category>
            <category>trouver</category>
    
    </item>

  
    <item>
        <title>Commande pour faire un fichier tar gzippé</title>
        <link>http://www.posteet.com/view/1299</link>
        <description>
        <![CDATA[<pre>Exemple pour créer un fichier compressé à partir d’un répertoire de log (il s’agit du dernier paramètre, ici le nom du répertoire est la date au format YYYY-MM-DD) :

tar czf archives-log-2008-10-02.tgz 2008-10-02</pre> <a href="http://www.posteet.com/tags/compression">[compression]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/log">[log]</a>  <a href="http://www.posteet.com/tags/répertoire">[répertoire]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Fri, 03 Oct 2008 14:20:43 +0000</pubDate>

            <category>compression</category>
            <category>fichier</category>
            <category>log</category>
            <category>répertoire</category>
    
    </item>

  
    <item>
        <title>Insérer un fichier SQL sur un serveur Apache Windows (dans Wamp ou EasyPhp)</title>
        <link>http://www.posteet.com/view/1280</link>
        <description>
        <![CDATA[<pre>Note : Dans tous les cas, ajouter l’option -p si un mot de passe est nécessaire après le nom du compte. Dans les exemples, on utilise le compte 'root'. ATTENTION : Il ne faut pas mettre d’espace entre l’option -p et le mot de passe.

Pour exporter avec l’utilitaire mysqldump.exe :

mysqldump -u root database &gt; backup-file.sql

Pour importer, cliquer &quot;démarrer/executer&quot;, puis taper ’cmd’. Ensuite lancer pour Wamp :

C:\&quot;Program Files&quot;\wamp\bin\mysql\mysql5.0.45\bin\mysql.exe -u root nom_de_la_base &lt; c:\fichier.sql</pre> <a href="http://www.posteet.com/tags/données">[données]</a>  <a href="http://www.posteet.com/tags/export">[export]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/import">[import]</a>  <a href="http://www.posteet.com/tags/mysql">[mysql]</a>  <a href="http://www.posteet.com/tags/sql">[sql]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Tue, 23 Sep 2008 13:33:21 +0000</pubDate>

            <category>données</category>
            <category>export</category>
            <category>fichier</category>
            <category>import</category>
            <category>mysql</category>
            <category>sql</category>
    
    </item>

  
    <item>
        <title>Trouver les fichiers temporaires où sont stockées les sessions PHP</title>
        <link>http://www.posteet.com/view/1278</link>
        <description>
        <![CDATA[<pre>Le chemin est renseigné dans le fichier php.ini :

session.save_path = /var/lib/php/session</pre> <a href="http://www.posteet.com/tags/chemin">[chemin]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/php">[php]</a>  <a href="http://www.posteet.com/tags/session">[session]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Tue, 23 Sep 2008 09:12:33 +0000</pubDate>

            <category>chemin</category>
            <category>fichier</category>
            <category>php</category>
            <category>session</category>
    
    </item>

  
    <item>
        <title>Récupèrer les dernières lignes d'un fichier texte</title>
        <link>http://www.posteet.com/view/1277</link>
        <description>
        <![CDATA[<pre>On peut afficher les dernières lignes d’un fichier ou afficher en continu les ajouts à un fichier, ce qui peut être très utile pour surveiller un fichier de log (anglais: logfile), respectivement:

tail nom_fichier
tail -f nom_fichier

Dans ce dernier cas, on interrompt la commande avec CTRL-C.</pre> <a href="http://www.posteet.com/tags/affichage">[affichage]</a>  <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/log">[log]</a>  <a href="http://www.posteet.com/tags/texte">[texte]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Tue, 23 Sep 2008 09:06:19 +0000</pubDate>

            <category>affichage</category>
            <category>bash</category>
            <category>fichier</category>
            <category>log</category>
            <category>texte</category>
    
    </item>

  
    <item>
        <title>Créer un fichier texte contenant la liste des derniers fichiers modifiés, classés par ordre de dernières modifs</title>
        <link>http://www.posteet.com/view/1203</link>
        <description>
        <![CDATA[<pre>find -type f -mtime -1 -print0 | xargs -0 ls -lt&gt;_dernieres_modifs.txt</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/liste">[liste]</a>  <a href="http://www.posteet.com/tags/tri">[tri]</a>  <a href="http://www.posteet.com/tags/windows">[windows]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Tue, 19 Aug 2008 13:09:47 +0000</pubDate>

            <category>bash</category>
            <category>fichier</category>
            <category>liste</category>
            <category>tri</category>
            <category>windows</category>
    
    </item>

  
    <item>
        <title>Lister les fichiers d'un répertoire et de ces sous-répertoires avec le chemin complet</title>
        <link>http://www.posteet.com/view/1186</link>
        <description>
        <![CDATA[<pre>dir *.* /b /s</pre> <a href="http://www.posteet.com/tags/dos">[dos]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/liste">[liste]</a>  <a href="http://www.posteet.com/tags/windows">[windows]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Mon, 11 Aug 2008 15:24:01 +0000</pubDate>

            <category>dos</category>
            <category>fichier</category>
            <category>liste</category>
            <category>windows</category>
    
    </item>

  
    <item>
        <title>Shell : test sur les fichiers + operateurs de comparaison</title>
        <link>http://www.posteet.com/view/1028</link>
        <description>
        <![CDATA[<pre>-e filename
    True if filename exists.
-d filename
    True if filename exists and is a directory.
-f filename
    True if filename exists and is a plain file.
-h filename
    True if filename exists and is a symbolic link.
-r filename
    True if filename exists and is readable.
-w filename
    True if filename exists and is writable.
-n string
    True if the length of string is non-zero.
-z string
    True if the length of string is zero.
string
    True if string is not the empty string.
s1 = s2
    True if the strings s1 and s2 are identical.
s1 != s2
    True if the strings s1 and s2 are not identical.
n1 -eq n2
    True if the numbers n1 and n2 are equal.
n1 -ne n2
    True if the numbers n1 and n2 are not equal.
n1 -gt n2
    True if the number n1 is greater than n2.
n1 -ge n2
    True if the number n1 is greater than or equal to n2.
n1 -lt n2
    True if the number n1 is less than n2.
n1 -le n2
    True if the number n1 is less than or equal to n2.
! expression
    Negates expression, that is, returns true iff expression is false.
expr1 -a expr2
    True if both expressions, expr1 and expr2 are true.
expr1 -o expr2
    True if either expression, expr1 or expr2 is true.
( expression )
    True if expression is true. This allows one to nest expressions.</pre> <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/operateur">[operateur]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>matt</dc:creator>
        <pubDate>Thu, 26 Jun 2008 06:23:44 +0000</pubDate>

            <category>fichier</category>
            <category>linux</category>
            <category>operateur</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Créer un fichier compressé tar.gz sur un serveur Unix</title>
        <link>http://www.posteet.com/view/839</link>
        <description>
        <![CDATA[<pre>Crée un fichier 'sql.tar.gz' à partir de logs d’erreur 'sql-2008-03*' :
tar cvfz sql.tar.gz sql-2008-03*

puis déplace le fichier dans le répertoire supérieur :
mv sql.tar.gz ../</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/compression">[compression]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/log">[log]</a>  <a href="http://www.posteet.com/tags/serveur">[serveur]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a>  <a href="http://www.posteet.com/tags/winscp">[winscp]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Tue, 18 Mar 2008 09:30:22 +0000</pubDate>

            <category>bash</category>
            <category>compression</category>
            <category>fichier</category>
            <category>log</category>
            <category>serveur</category>
            <category>shell</category>
            <category>winscp</category>
    
    </item>

  
    <item>
        <title>WinSCP : Commande pour changer les droits et le propriétaire d'un fichier</title>
        <link>http://www.posteet.com/view/759</link>
        <description>
        <![CDATA[<pre>chown utilisateur:ftp !&amp;; chmod 0664 !&amp;</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/ftp">[ftp]</a>  <a href="http://www.posteet.com/tags/renommage">[renommage]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a>  <a href="http://www.posteet.com/tags/winscp">[winscp]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Fri, 15 Feb 2008 08:54:05 +0000</pubDate>

            <category>bash</category>
            <category>fichier</category>
            <category>ftp</category>
            <category>renommage</category>
            <category>shell</category>
            <category>winscp</category>
    
    </item>

  
    <item>
        <title>Taille d'un fichier sous linux</title>
        <link>http://www.posteet.com/view/57</link>
        <description>
        <![CDATA[<pre>du -h /chemin/vers/fichier</pre> <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Fri, 05 Oct 2007 11:44:53 +0000</pubDate>

            <category>fichier</category>
            <category>linux</category>
    
    </item>

  
    <item>
        <title>découpage fichier</title>
        <link>http://www.posteet.com/view/20</link>
        <description>
        <![CDATA[<pre>#découpage du fichier nom_file en fichiers de 1Go
split -b 1024m nom_file
#recollage
cat nom_file1 nom_file2 &gt; nom_file</pre> <a href="http://www.posteet.com/tags/découpage">[découpage]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a> ]]>        </description>
        <dc:creator>neorom</dc:creator>
        <pubDate>Mon, 24 Sep 2007 06:56:46 +0000</pubDate>

            <category>découpage</category>
            <category>fichier</category>
    
    </item>


</channel>
</rss>
