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

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

    
    <item>
        <title>Appliquer les changements sur Apache après avoir fait des modifs dans php.ini</title>
        <link>http://www.posteet.com/view/1185</link>
        <description>
        <![CDATA[<pre>service httpd reload</pre> <a href="http://www.posteet.com/tags/apache">[apache]</a>  <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/php">[php]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Mon, 11 Aug 2008 09:17:14 +0000</pubDate>

            <category>apache</category>
            <category>bash</category>
            <category>linux</category>
            <category>php</category>
            <category>shell</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>Changer les permissions récursivement sur les dossiers uniquement</title>
        <link>http://www.posteet.com/view/812</link>
        <description>
        <![CDATA[<pre>#Pour changer les permissions récursivement sur les dossiers sans toucher aux autres fichiers :

chmod u-w $(ls -l -R | sed -n '/^d/p' | awk '{print $9 }')

#va enlever le droit d'écriture à tous les dossiers sans toucher aux autres fichiers
#utile par exemple pour appliquer le droit d'exécution seulement aux dossiers pour pouvoir les parcourir sans pour autant rendre les autres fichiers exécutables</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a>  <a href="http://www.posteet.com/tags/unix">[unix]</a> ]]>        </description>
        <dc:creator>jon207</dc:creator>
        <pubDate>Thu, 06 Mar 2008 20:51:29 +0000</pubDate>

            <category>bash</category>
            <category>linux</category>
            <category>shell</category>
            <category>unix</category>
    
    </item>

  
    <item>
        <title>Option sympa pour Grep // de la couleur dans ton grep</title>
        <link>http://www.posteet.com/view/758</link>
        <description>
        <![CDATA[<pre>grep --color EXPRESSION [FICHIER]</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/grep">[grep]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/regexp">[regexp]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>henri</dc:creator>
        <pubDate>Fri, 15 Feb 2008 08:36:33 +0000</pubDate>

            <category>bash</category>
            <category>grep</category>
            <category>linux</category>
            <category>regexp</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Savoir si une extension PHP est installée sur un serveur Linux</title>
        <link>http://www.posteet.com/view/755</link>
        <description>
        <![CDATA[<pre>php -i | grep -i 'SSL'</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/extension">[extension]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/php">[php]</a>  <a href="http://www.posteet.com/tags/serveur">[serveur]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Thu, 14 Feb 2008 17:00:16 +0000</pubDate>

            <category>bash</category>
            <category>extension</category>
            <category>linux</category>
            <category>php</category>
            <category>serveur</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Trouver et tuer les processus qui utilise un fichier ou un sockets</title>
        <link>http://www.posteet.com/view/458</link>
        <description>
        <![CDATA[<pre>#affiche les processus qui utilise le cdrom
fuser -v /media/cdrom

#afficher et tuer le(s) processus qui utilise(nt) le cdrom
fuser -vk /media/cdrom

#afficher les processus qui utilise le port tcp/80
fuser -v 80/tcp

#tuer les processus qui utilise le port tcp/80
fuser -vk 80/tcp</pre> <a href="http://www.posteet.com/tags/blocage">[blocage]</a>  <a href="http://www.posteet.com/tags/cdrom">[cdrom]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/processus">[processus]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>macsim</dc:creator>
        <pubDate>Fri, 16 Nov 2007 08:31:28 +0000</pubDate>

            <category>blocage</category>
            <category>cdrom</category>
            <category>linux</category>
            <category>processus</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Rappels shell - derniers arguments et derniere commandes</title>
        <link>http://www.posteet.com/view/318</link>
        <description>
        <![CDATA[<pre>#Parfois vous pouvez vous simplifier la vie, il vous suffit de taper un des motifs suivants (source : &quot;man sh&quot;) :
!n                            #Rappelle la commande numéro &quot;n&quot;.
!-n                           #Rappelle la commande exécutée il y a &quot;n&quot; commande(s).
!!                             #Rappelle la dernière commande.
!chaine                    #Rappelle la commande la plus récente commençant par &quot;chaine&quot;.
!?chaine                  #Rappelle la commande la plus récente finissant par &quot;chaine&quot;.
!?chaine?                 #Rappelle la commande la plus récente contenant &quot;chaine&quot;.
                               #Ajoutez &quot;:p&quot; à la fin pour que la commande ne s'exécute pas.
^chaine1^chaine2^  #Répète la dernière commande en remplaçant chaine1 par chaine2.
!#                            #Rappelle la plus ancienne commande de l'historique.
commande !^           #Exécute &quot;commande&quot; avec le premier argument de la commande précédente.
commande !:n         #Exécute &quot;commande&quot; avec l'argument numéro &quot;n&quot; de la commande précédente.
commande !:x-y      #Exécute &quot;commande&quot; avec les arguments numéro &quot;x&quot; à &quot;y&quot; de la commande précédente.
commande !$          #Exécute &quot;commande&quot; avec le dernier argument de la commande précédente.
commande !-2$       #Exécute &quot;commande&quot; avec le dernier argument de l'avant dernière commande</pre> <a href="http://www.posteet.com/tags/arguments">[arguments]</a>  <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/command">[command]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Tue, 06 Nov 2007 13:29:00 +0000</pubDate>

            <category>arguments</category>
            <category>bash</category>
            <category>command</category>
            <category>linux</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Récupérer l'adresse ip publique</title>
        <link>http://www.posteet.com/view/216</link>
        <description>
        <![CDATA[<pre>#L'appel à iconv n'est nécessaire que si votre système utilise utf8 comme jeu de caractères par défaut (ce qui devient de plus en plus courant) au lieu d'iso8859-1 (latin-1).
wget -q www.monip.org -O -  | iconv -f iso8859-1 -t utf8 | sed -nre 's/^.* (([0-9]{1,3}\.){3}[0-9]{1,3}).*$/\1/p'</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/ip">[ip]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/reseau">[reseau]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>bobuse</dc:creator>
        <pubDate>Mon, 05 Nov 2007 10:04:56 +0000</pubDate>

            <category>bash</category>
            <category>ip</category>
            <category>linux</category>
            <category>reseau</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Vérifier performance des disques</title>
        <link>http://www.posteet.com/view/194</link>
        <description>
        <![CDATA[<pre>hdparm -Tt /dev/hda
/dev/sda:
 Timing cached reads:   4868 MB in  2.00 seconds = 2433.34 MB/sec
 Timing buffered disk reads:  218 MB in  3.01 seconds =  72.50 MB/sec</pre> <a href="http://www.posteet.com/tags/disque">[disque]</a>  <a href="http://www.posteet.com/tags/disque dur">[disque dur]</a>  <a href="http://www.posteet.com/tags/disques">[disques]</a>  <a href="http://www.posteet.com/tags/disques durs">[disques durs]</a>  <a href="http://www.posteet.com/tags/hdparm">[hdparm]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a>  <a href="http://www.posteet.com/tags/système">[système]</a>  <a href="http://www.posteet.com/tags/vitesse disque">[vitesse disque]</a> ]]>        </description>
        <dc:creator>henri</dc:creator>
        <pubDate>Mon, 05 Nov 2007 08:05:06 +0000</pubDate>

            <category>disque</category>
            <category>disque dur</category>
            <category>disques</category>
            <category>disques durs</category>
            <category>hdparm</category>
            <category>linux</category>
            <category>shell</category>
            <category>système</category>
            <category>vitesse disque</category>
    
    </item>

  
    <item>
        <title>Changer l'adresse mac</title>
        <link>http://www.posteet.com/view/142</link>
        <description>
        <![CDATA[<pre>#passer en root
ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/ifconfig">[ifconfig]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/mac">[mac]</a>  <a href="http://www.posteet.com/tags/network">[network]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>jon207</dc:creator>
        <pubDate>Sat, 03 Nov 2007 17:04:33 +0000</pubDate>

            <category>bash</category>
            <category>ifconfig</category>
            <category>linux</category>
            <category>mac</category>
            <category>network</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Rappels shell</title>
        <link>http://www.posteet.com/view/141</link>
        <description>
        <![CDATA[<pre>#Parfois vous pouvez vous simplifier la vie, il vous suffit de taper un des motifs suivants (source : &quot;man sh&quot;) :
!n                            #Rappelle la commande numéro &quot;n&quot;.
!-n                           #Rappelle la commande exécutée il y a &quot;n&quot; commande(s).
!!                             #Rappelle la dernière commande.
!chaine                    #Rappelle la commande la plus récente commençant par &quot;chaine&quot;.
!?chaine                  #Rappelle la commande la plus récente finissant par &quot;chaine&quot;.
!?chaine?                 #Rappelle la commande la plus récente contenant &quot;chaine&quot;.
                               #Ajoutez &quot;:p&quot; à la fin pour que la commande ne s'exécute pas.
^chaine1^chaine2^  #Répète la dernière commande en remplaçant chaine1 par chaine2.
!#                            #Rappelle la plus ancienne commande de l'historique.
commande !^           #Exécute &quot;commande&quot; avec le premier argument de la commande précédente.
commande !:n         #Exécute &quot;commande&quot; avec l'argument numéro &quot;n&quot; de la commande précédente.
commande !:x-y      #Exécute &quot;commande&quot; avec les arguments numéro &quot;x&quot; à &quot;y&quot; de la commande précédente.
commande !$          #Exécute &quot;commande&quot; avec le dernier argument de la commande précédente.</pre> <a href="http://www.posteet.com/tags/Bash">[Bash]</a>  <a href="http://www.posteet.com/tags/Linux">[Linux]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>daneel</dc:creator>
        <pubDate>Sat, 03 Nov 2007 17:00:54 +0000</pubDate>

            <category>Bash</category>
            <category>Linux</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Dernier argument employé avec bash</title>
        <link>http://www.posteet.com/view/140</link>
        <description>
        <![CDATA[<pre>ls -ail /home
# !$ prend la valeur du dernier argument utilisé
echo !$
# va renvoyer /home</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>jon207</dc:creator>
        <pubDate>Sat, 03 Nov 2007 16:53:52 +0000</pubDate>

            <category>bash</category>
            <category>linux</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Récupérer le nombre total d'octet transféré sur une interface</title>
        <link>http://www.posteet.com/view/135</link>
        <description>
        <![CDATA[<pre>#Remplacez &quot;eth0&quot; par l'interface concernée. 
#Octets reçus :
/sbin/ifconfig eth0 | grep bytes | sed -e &quot;s/TX.*//g&quot; | sed -e &quot;s/.*RX/RX/g&quot;
#Octets envoyés :
/sbin/ifconfig eth0 | grep bytes | sed -e &quot;s/.*TX/TX/g&quot;
#Les deux :
/sbin/ifconfig eth0 | grep bytes | sed -e &quot;s/.*RX/RX/g</pre> <a href="http://www.posteet.com/tags/Bash">[Bash]</a>  <a href="http://www.posteet.com/tags/Linux">[Linux]</a>  <a href="http://www.posteet.com/tags/Reseau">[Reseau]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>daneel</dc:creator>
        <pubDate>Sat, 03 Nov 2007 16:42:05 +0000</pubDate>

            <category>Bash</category>
            <category>Linux</category>
            <category>Reseau</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Récupérer l'adresse ip publique (vue depuis internet)</title>
        <link>http://www.posteet.com/view/134</link>
        <description>
        <![CDATA[<pre>#L'appel à iconv n'est nécessaire que si votre système utilise utf8 comme jeu de caractères par défaut (ce qui devient de plus en plus courant) au lieu d'iso8859-1 (latin-1).
wget -q www.monip.org -O ip.tmp &amp;&amp; cat ip.tmp | iconv -f iso8859-1 -t utf8 | sed -nre 's/^.* (([0-9]{1,3}\.){3}[0-9]{1,3}).*$/\1/p' &amp;&amp; rm -f ip.tmp</pre> <a href="http://www.posteet.com/tags/Bash">[Bash]</a>  <a href="http://www.posteet.com/tags/Linux">[Linux]</a>  <a href="http://www.posteet.com/tags/Reseau">[Reseau]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>daneel</dc:creator>
        <pubDate>Sat, 03 Nov 2007 16:40:14 +0000</pubDate>

            <category>Bash</category>
            <category>Linux</category>
            <category>Reseau</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Récupérer l'ip d'une interface réseau (ou son masque réseau)</title>
        <link>http://www.posteet.com/view/133</link>
        <description>
        <![CDATA[<pre>#Où eth0 est l'interface pour laquelle vous voulez l'ip.
#Remplacer -f2 du premier cut par -f3 pour obtenir le masque du réseau.
/sbin/ifconfig eth0 | head -n 2 | tail -n 1 | cut -d&quot;:&quot; -f2 | cut -d&quot; &quot; -f1</pre> <a href="http://www.posteet.com/tags/Bash">[Bash]</a>  <a href="http://www.posteet.com/tags/Linux">[Linux]</a>  <a href="http://www.posteet.com/tags/Reseau">[Reseau]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>daneel</dc:creator>
        <pubDate>Sat, 03 Nov 2007 16:37:59 +0000</pubDate>

            <category>Bash</category>
            <category>Linux</category>
            <category>Reseau</category>
            <category>shell</category>
    
    </item>


</channel>
</rss>
