<?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>commandes - Gagzen</title>
	<atom:link href="https://gagzen.net/tag/commandes/feed/" rel="self" type="application/rss+xml" />
	<link>https://gagzen.net</link>
	<description></description>
	<lastBuildDate>Fri, 01 Apr 2011 16:00:53 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://gagzen.net/wp-content/uploads/2026/06/android-chrome-512x512-1-150x150.png</url>
	<title>commandes - Gagzen</title>
	<link>https://gagzen.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Installation d&#8217;un serveur NIS + Client sur RHEL5.5</title>
		<link>https://gagzen.net/2011/04/01/installation-dun-serveur-nis-client-sur-rhel5-5/</link>
		
		<dc:creator><![CDATA[Baptiste]]></dc:creator>
		<pubDate>Fri, 01 Apr 2011 16:00:53 +0000</pubDate>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[commandes]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nis]]></category>
		<guid isPermaLink="false">http://www.gagneux.info/index.php/?p=411</guid>

					<description><![CDATA[<p>Présentation : Network Information Service (NIS) nommé aussi Yellow Pages est un protocole client serveur développé par Sun permettant la centralisation d&#8217;informations sur un réseau UNIX. Son but est de distribuer les informations contenues dans des fichiers de configuration contenant par exemple les noms d&#8217;hôte (/etc/hosts), les comptes utilisateurs (/etc/passwd), etc. sur un réseau. Un [&#8230;]</p>
<p>The post <a href="https://gagzen.net/2011/04/01/installation-dun-serveur-nis-client-sur-rhel5-5/">Installation d’un serveur NIS + Client sur RHEL5.5</a> first appeared on <a href="https://gagzen.net">Gagzen</a>.</p>]]></description>
										<content:encoded><![CDATA[<p style="text-align: left;"><strong><a href="https://gagzen.net/wp-content/uploads/2011/04/Nuvola_apps_kgpg-1.png"><img decoding="async" class="alignleft size-full wp-image-412" style="margin: 10px;" title="Nuvola_apps_kgpg" src="https://gagzen.net/wp-content/uploads/2011/04/Nuvola_apps_kgpg-1.png" alt="" width="128" height="128" /></a>Présentation : </strong><br />
Network Information Service (NIS) nommé aussi Yellow Pages est un protocole client serveur développé par Sun permettant la centralisation d&rsquo;informations sur un réseau UNIX.<br />
Son but est de distribuer les informations contenues dans des fichiers de configuration contenant par exemple les noms d&rsquo;hôte (/etc/hosts), les comptes utilisateurs (/etc/passwd), etc. sur un réseau.</p>
<p>Un serveur NIS stocke et distribue donc les informations administratives du réseau, qui se comporte ainsi comme un ensemble cohérent de comptes utilisateurs, groupes, machines, etc.</p>
<p>À l&rsquo;origine, NIS est sorti sous le nom de « Yellow Pages » (YP) ou Pages jaunes mais le nom étant déposé par la compagnie britannique British Telecom, Sun a renommé son protocole NIS. Cependant, les commandes NIS commencent toutes par yp.</p>
<p style="text-align: right;">
<em>http://fr.wikipedia.org/wiki/Network_Information_Service</em></p>
<p><strong><span id="more-411"></span>Définitions :</strong><br />
Master NIS : masternis masternis.testnis 192.168.0.1<br />
Client NIS : clientnis clientnis.testnis 192.168.0.2<br />
Domaine NIS : testnis</p>
<p><span style="text-decoration: underline;"><span style="color: #ff0000;"><strong>Partie Serveur : </strong></span></span><br />
Installation des packages yp-tools ypbind ypserv portmap nfsd<br />
# yum install yp-tools ypbind ypserv portmap nfs-utils nfs-utils-lib</p>
<p><span style="text-decoration: underline;">Définition du domaine NIS : </span><br />
# vi /etc/sysconfig/network<br />
Ajout de la ligne<br />
NISDOMAIN=testnis</p>
<p><span style="text-decoration: underline;">Définition du serveur :</span><br />
# vi /etc/yp.conf<br />
Ajout de la ligne<br />
ypserver 127.0.0.1</p>
<p><span style="text-decoration: underline;">Démarrage des services :</span><br />
# service portmap start # Gestion des ports<br />
# service yppasswdd start # gestion de la modification des mots de passe à distance<br />
# service ypserv start # Daemon principal NIS<br />
# service nfs start # Daemon nfs</p>
<p><span style="text-decoration: underline;">Démarrage forcé de ces daemons au lancement du serveur :</span><br />
# chkconfig portmap on<br />
# chkconfig yppasswdd on<br />
# chkconfig ypserv on<br />
# chkconfig nfs on</p>
<p><span style="text-decoration: underline;">Arrêt de autofs et forcage d&rsquo;arrêt au boot </span><br />
# service autofs start # Daemon automount<br />
# chkconfig autofs off</p>
<p><span style="text-decoration: underline;">Modification des fichiers liés à automount : </span><br />
# cat /etc/auto.master<br />
[&#8230;]<br />
/users  yp:auto.home  -timeout=30<br />
+auto.master<br />
# cat /etc/auto.home<br />
* master.testnisbg:/users/&amp;</p>
<p><span style="text-decoration: underline;">Vérification que tout est bien démarré :</span><br />
#  rpcinfo -p 127.0.0.1<br />
program vers proto   port<br />
100000    2   tcp    111  portmapper<br />
100000    2   udp    111  portmapper<br />
100004    2   udp    634  ypserv<br />
100004    1   udp    634  ypserv<br />
100004    2   tcp    637  ypserv<br />
100004    1   tcp    637  ypserv<br />
100009    1   udp    721  yppasswdd</p>
<p><span style="text-decoration: underline;">Configuration du nfs :</span><br />
Modifier le fichier /etc/exports<br />
# cat /etc/exports<br />
/users 192.168.0.0/24(sync)</p>
<p><span style="text-decoration: underline;">Configuration du NIS : </span><br />
# /usr/lib64/yp/ypinit -m # ou /usr/lib/yp/ypinit -m sur un linux 32bits<br />
At this point, we have to construct a list of the hosts which will run NIS<br />
servers.  masternis is in the list of NIS server hosts.  Please continue to add<br />
the names for the other hosts, one per line.  When you are done with the<br />
list, type a &lt;control D&gt;.<br />
next host to add:  masternis<br />
next host to add:<br />
next host to add:<br />
The current list of NIS servers looks like this:</p>
<p>masternis</p>
<p>Is this correct?  [y/n: y]  y<br />
We need a few minutes to build the databases&#8230;<br />
Building /var/yp/testnis/ypservers&#8230;<br />
Running /var/yp/Makefile&#8230;<br />
gmake[1]: Entering directory `/var/yp/testnis&rsquo;<br />
Updating passwd.byname&#8230;<br />
Updating passwd.byuid&#8230;<br />
Updating group.byname&#8230;<br />
Updating group.bygid&#8230;<br />
Updating hosts.byname&#8230;<br />
Updating hosts.byaddr&#8230;<br />
Updating rpc.byname&#8230;<br />
Updating rpc.bynumber&#8230;<br />
Updating services.byname&#8230;<br />
Updating services.byservicename&#8230;<br />
Updating netid.byname&#8230;<br />
Updating protocols.bynumber&#8230;<br />
Updating protocols.byname&#8230;<br />
Updating mail.aliases&#8230;<br />
gmake[1]: Leaving directory `/var/yp/testnis&rsquo;</p>
<p>masternis has been set up as a NIS master server.</p>
<p>Now you can run ypinit -s masternis on all slave server.</p>
<p><span style="text-decoration: underline;">Démarrage des derniers Daemons : </span><br />
# service ypbind start<br />
# service ypxfrd start<br />
# chkconfig ypbind on<br />
# chkconfig ypxfrd on<br />
# rpcinfo -p 127.0.0.1<br />
program vers proto   port<br />
100000    2   tcp    111  portmapper<br />
100000    2   udp    111  portmapper<br />
100004    2   udp    634  ypserv<br />
100004    1   udp    634  ypserv<br />
100004    2   tcp    637  ypserv<br />
100004    1   tcp    637  ypserv<br />
100009    1   udp    721  yppasswdd<br />
100007    2   udp    738  ypbind<br />
100007    1   udp    738  ypbind<br />
100007    2   tcp    741  ypbind<br />
100007    1   tcp    741  ypbind</p>
<p><span style="text-decoration: underline;">Paramétrage du fichier hosts :</span><br />
# vi /etc/hosts<br />
Ajout des lignes :<br />
192.168.0.1    masternis.testnis<br />
192.168.0.2    clientnis.testnis</p>
<p><span style="text-decoration: underline;">Modification du hosts.allow/deny : (à tuner pour une meilleure sécurité !!)</span><br />
# vi /etc/hosts.allow<br />
Ajout de la ligne<br />
ALL: 192.168.0<br />
# vi /etc/hosts.deny<br />
Ajout de la ligne<br />
ALL: ALL</p>
<p><strong><span style="text-decoration: underline;"><span style="color: #ff0000;">Partie Cliente :</span></span></strong><br />
Installation les packages yp-tools ypbind portmap autofs<br />
# yum install yp-tools ypbind portmap autofs</p>
<p><span style="text-decoration: underline;">Paramétrage du fichier hosts :</span><br />
# vi /etc/hosts<br />
ajout des lignes :<br />
192.168.0.1    masternis.testnis<br />
192.168.0.2    clientnis.testnis</p>
<p><span style="text-decoration: underline;">Renommage des fichiers locaux liés à automount pour éviter la confusion avec les fichiers liés à NIS</span><br />
# mv /etc/auto.master /etc/auto.master_OLD<br />
# mv /etc/auto.home /etc/auto.home_OLD</p>
<p><span style="text-decoration: underline;">Modification du nsswitch.conf :</span><br />
# cat /etc/nsswitch.conf<br />
[&#8230;]<br />
#automount:  files nis<br />
automount: nis files</p>
<p><span style="text-decoration: underline;">Création du point de montage des homes users</span><br />
# mkdir /users</p>
<p><span style="text-decoration: underline;">Configuration du NIS :</span><br />
# authconfig &#8211;enableshadow &#8211;enablenis &#8211;nisdomain=testnis &#8211;nisserver=masternis.testnis –update</p>
<p><span style="text-decoration: underline;">Démarrage des daemons :</span><br />
# service portmap start<br />
Starting portmapper: [  OK  ]<br />
# service ypbind restart<br />
Shutting down NIS services:                                [  OK  ]<br />
Binding to the NIS domain:                                 [  OK  ]<br />
Listening for an NIS domain server.<br />
# service autofs restart<br />
Stopping automount:                                        [  OK  ]<br />
ypcatStarting automount:                                   [  OK  ]</p>
<p># chkconfig ypbind on<br />
# chkconfig portmap on<br />
# chkconfig autofs on</p>
<p><span style="text-decoration: underline;">Contrôle que la connexion NIS fonctionne : </span><br />
# ypcat passwd<br />
user02:$1$V1xB1m0G$qT8BnJwY.g0aBIO.BNo4q/:59137:59137::/users/user02:/bin/bash<br />
user01:$1$z91qyCHc$gCRG2kcvaKw6a5U9vA1cx.:59136:59136::/users/user01:/bin/bash</p>
<p><span style="text-decoration: underline;">Test de la connexion avec un user non local : </span><br />
# su &#8211; user01<br />
Si cela fonctionne, vous pourrez vous authentifier, et le path sera /users/user01<br />
# pwd<br />
/users/user01</p>
<p>&nbsp;</p>
<p><em>Sources : </em><br />
<em>http://www.labo-linux.com/articles/software/3049-installation-et-configuration-de-nis-network-information-service?page=1</em><br />
<em>http://www.linuxcream.com/blog/linux-system/linux_redhat/step-by-step-to-configure-nis-in-rhel5-1/</em><br />
<em>http://dawidlinux.pagesperso-orange.fr/libres_fichiers/tuto-nis.html</em><br />
<em>http://iptables.gen.tr/2010/01/nis-server-and-client-configuration/</em></p>
<p><em>image : http://fr.wikipedia.org/wiki/Fichier:Nuvola_apps_kgpg.png</em></p><p>The post <a href="https://gagzen.net/2011/04/01/installation-dun-serveur-nis-client-sur-rhel5-5/">Installation d’un serveur NIS + Client sur RHEL5.5</a> first appeared on <a href="https://gagzen.net">Gagzen</a>.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Linux &#8211; Ajouter un LV et le monter</title>
		<link>https://gagzen.net/2011/04/01/linux-ajouter-un-lv-et-le-monter/</link>
		
		<dc:creator><![CDATA[Baptiste]]></dc:creator>
		<pubDate>Fri, 01 Apr 2011 16:00:02 +0000</pubDate>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[commandes]]></category>
		<category><![CDATA[linux]]></category>
		<guid isPermaLink="false">http://www.gagneux.info/index.php/?p=418</guid>

					<description><![CDATA[<p>Une note en forme d&#8217;article afin de conserver les commandes de base concernant l&#8217;ajout etle montage d&#8217;un Logical Volume sur un système Linux. &#160; &#160; &#160; &#160; Vérifier la taille disque disponible : # lvm lvm&#62; vgs VG     #PV #LV #SN Attr   VSize  VFree rootvg   1   7   0 wz&#8211;n- 33.72G 11.75G Créer un LV nommé [&#8230;]</p>
<p>The post <a href="https://gagzen.net/2011/04/01/linux-ajouter-un-lv-et-le-monter/">Linux – Ajouter un LV et le monter</a> first appeared on <a href="https://gagzen.net">Gagzen</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><a href="https://gagzen.net/wp-content/uploads/2011/04/150px-Hard_disk_platters_and_head-1.jpg"><img decoding="async" class="alignleft size-full wp-image-419" style="margin: 10px;" title="150px-Hard_disk_platters_and_head" src="https://gagzen.net/wp-content/uploads/2011/04/150px-Hard_disk_platters_and_head-1.jpg" alt="" width="150" height="150" /></a>Une note en forme d&rsquo;article afin de conserver les commandes de base concernant l&rsquo;ajout etle montage d&rsquo;un Logical Volume sur un système Linux.</p>
<p>&nbsp;</p>
<p><span id="more-418"></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">Vérifier la taille disque disponible :</span><br />
# lvm<br />
lvm&gt; vgs<br />
VG     #PV #LV #SN Attr   VSize  VFree<br />
rootvg   1   7   0 wz&#8211;n- 33.72G 11.75G</p>
<p><span style="text-decoration: underline;">Créer un LV nommé optvol de 10 Go :</span><br />
# lvcreate &#8211;name optvol &#8211;size= 10G  rootvg</p>
<p><span style="text-decoration: underline;">Formater le nouveau LV en ext3:</span><br />
# mkfs.ext3 /dev/rootvg/optvol</p>
<p><span style="text-decoration: underline;">Monter le nouveau LV sur /opt2</span><br />
# mkdir /opt2<br />
# mount /dev/rootvg/optvol /opt2</p>
<p><span style="text-decoration: underline;">Vérifier : </span><br />
# df -h<br />
Filesystem            Size  Used Avail Use% Mounted on<br />
[&#8230;]<br />
/dev/mapper/rootvg-optvol<br />
10G  4.6M   10G   1% /opt2</p>
<p><span style="text-decoration: underline;">augmentation d&rsquo;un LV : </span><br />
# umount /dev/volgroup/logicalvol<br />
# lvextend -L+6G /dev/volgroup/logicalvol<br />
# e2fsck -f /dev/volgroup/logicalvol<br />
# resize2fs /dev/volgroup/logicalvol<br />
# mount /dev/volgroup/logicalvol</p>
<p><span style="text-decoration: underline;">Diminution d&rsquo;un LV :</span><br />
# umount /dev/volgroup/logicalvol<br />
# lvreduce -L+6G /dev/volgroup/logicalvol<br />
# resize2fs /dev/volgroup/logicalvol 10G<br />
# e2fsck -f /dev/volgroup/logicalvol<br />
# mount /dev/volgroup/logicalvol</p>
<p><em>Source image : http://en.wikipedia.org/wiki/Hard_disk_drive</em></p><p>The post <a href="https://gagzen.net/2011/04/01/linux-ajouter-un-lv-et-le-monter/">Linux – Ajouter un LV et le monter</a> first appeared on <a href="https://gagzen.net">Gagzen</a>.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Linux &#8211; Ajout de la date dans l&#8217;historique des commandes</title>
		<link>https://gagzen.net/2011/03/30/linux-ajout-de-la-date-dans-lhistorique-des-commandes/</link>
		
		<dc:creator><![CDATA[Baptiste]]></dc:creator>
		<pubDate>Wed, 30 Mar 2011 16:30:57 +0000</pubDate>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[WorkStation]]></category>
		<category><![CDATA[commandes]]></category>
		<category><![CDATA[linux]]></category>
		<guid isPermaLink="false">http://www.gagneux.info/index.php/?p=394</guid>

					<description><![CDATA[<p>La commande history sous Linux est très pratique pour retrouver une commande passée (plus ou moins) récemment. &#160; &#160; &#160; Le défaut que l&#8217;on peut reprocher au résultat de cette commande serait par contre de ne pas indiquer quand la commande a été exécutée. Ainsi, le résultat est de type : En définissant la variable [&#8230;]</p>
<p>The post <a href="https://gagzen.net/2011/03/30/linux-ajout-de-la-date-dans-lhistorique-des-commandes/">Linux – Ajout de la date dans l’historique des commandes</a> first appeared on <a href="https://gagzen.net">Gagzen</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><a href="https://gagzen.net/wp-content/uploads/2011/03/opensource-1.png"><img decoding="async" class="alignleft size-thumbnail wp-image-163" title="opensource" src="https://gagzen.net/wp-content/uploads/2011/03/opensource-150x150.png" alt="" width="150" height="150" /></a>La commande <span style="color: #0000ff;"><strong>history </strong></span>sous Linux est très pratique pour retrouver une commande passée (plus ou moins) récemment.</p>
<p><span id="more-394"></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Le défaut que l&rsquo;on peut reprocher au résultat de cette commande serait par contre de ne pas indiquer quand la commande a été exécutée.<br />
Ainsi, le résultat est de type :</p>
<p><a href="https://gagzen.net/wp-content/uploads/2011/03/history_apres-1.jpg"></a><a href="https://gagzen.net/wp-content/uploads/2011/03/history_avant-1.jpg"><img decoding="async" class="aligncenter size-full wp-image-397" title="history_avant" src="https://gagzen.net/wp-content/uploads/2011/03/history_avant-1.jpg" alt="" width="301" height="385" srcset="https://gagzen.net/wp-content/uploads/2011/03/history_avant-1.jpg 301w, https://gagzen.net/wp-content/uploads/2011/03/history_avant-1-235x300.jpg 235w" sizes="(max-width: 301px) 100vw, 301px" /></a></p>
<p>En définissant la variable HISTTIMEFORMAT, on peut formater la sortie :</p>
<p><strong><span style="color: #0000ff;"># HISTTIMEFORMAT=&rsquo;%Y/%m/%d-%Hh%M : &lsquo;</span></strong></p>
<p><a href="https://gagzen.net/wp-content/uploads/2011/03/history_apres1-1.jpg"><img decoding="async" class="aligncenter size-full wp-image-396" title="history_apres" src="https://gagzen.net/wp-content/uploads/2011/03/history_apres1-1.jpg" alt="" width="457" height="384" /></a></p>
<p>Un poil plus exploitable <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Pour bien faire, on peut envisager de définir <strong><span style="color: #0000ff;">HISTTIMEFORMAT </span></strong>dans le .profile de l&rsquo;utilisateur :</p>
<p><strong><span style="color: #0000ff;"># </span><span style="color: #0000ff;">echo « HISTTIMEFORMAT=&rsquo;%Y/%m/%d-%Hh%M : &lsquo; » &gt;&gt; ~/.bash_profile</span></strong></p>
<p><span style="color: #000000;">Ceci fonctionne sous Linux, mais aussi sur différents UNIX </span><strong><span style="color: #0000ff;"><br />
</span></strong></p>
<p>&nbsp;</p>
<p><em>Source : source : http://unix.ittoolbox.com/groups/technical-functional/solaris-l/to-set-date-and-timestamp-on-bash_history-2893951</em></p><p>The post <a href="https://gagzen.net/2011/03/30/linux-ajout-de-la-date-dans-lhistorique-des-commandes/">Linux – Ajout de la date dans l’historique des commandes</a> first appeared on <a href="https://gagzen.net">Gagzen</a>.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>winexe : ps exec sous Linux</title>
		<link>https://gagzen.net/2010/03/23/winexe-ps-exec-sous-linux/</link>
					<comments>https://gagzen.net/2010/03/23/winexe-ps-exec-sous-linux/#comments</comments>
		
		<dc:creator><![CDATA[Baptiste]]></dc:creator>
		<pubDate>Tue, 23 Mar 2010 14:58:19 +0000</pubDate>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[commandes]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">http://www.gagneux.info/index.php/?p=152</guid>

					<description><![CDATA[<p>Pré-requis : autoconf Recupérer les sources sur http://eol.ovh.org/winexe/#how_to_get_it Décompresser : tar -jxvf ./winexe-package-sources.tar.bz2 cd ./winexe-directorie ./autogen.sh ./configure make proto bin/winexe Pour finir, déplacer le binaire dans un répertoire du PATH cp bin/winexe /usr/local/sbin/ Utilisation : winexe -U Domaine/Utilisateur%Password //IP « Commande distante » Pour la récupération de l&#8217;heure, la commande distante est : « cmd /c echo %date% [&#8230;]</p>
<p>The post <a href="https://gagzen.net/2010/03/23/winexe-ps-exec-sous-linux/">winexe : ps exec sous Linux</a> first appeared on <a href="https://gagzen.net">Gagzen</a>.</p>]]></description>
										<content:encoded><![CDATA[<div>Pré-requis :</div>
<div>
<ul>
<li> autoconf</li>
</ul>
</div>
<div><span id="more-269"></span></div>
<div>Recupérer les sources sur</div>
<div style="padding-left: 30px;">http://eol.ovh.org/winexe/#how_to_get_it</div>
<div>Décompresser :</div>
<div style="padding-left: 30px;">tar -jxvf ./winexe-package-sources.tar.bz2 cd ./winexe-directorie ./autogen.sh  ./configure  make proto bin/winexe</div>
<div>Pour finir, déplacer le binaire dans un répertoire du PATH</div>
<div style="padding-left: 30px;">cp bin/winexe /usr/local/sbin/</div>
<div>Utilisation :</div>
<div style="padding-left: 30px;">winexe -U Domaine/Utilisateur%Password //IP « Commande distante »</div>
<div>Pour la récupération de l&rsquo;heure, la commande distante est :</div>
<div style="padding-left: 30px;">« cmd /c echo %date% %time% »</div><p>The post <a href="https://gagzen.net/2010/03/23/winexe-ps-exec-sous-linux/">winexe : ps exec sous Linux</a> first appeared on <a href="https://gagzen.net">Gagzen</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://gagzen.net/2010/03/23/winexe-ps-exec-sous-linux/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Linux GUI : Boîtes de dialogue</title>
		<link>https://gagzen.net/2009/09/04/linux-gui-boites-de-dialogue/</link>
		
		<dc:creator><![CDATA[Baptiste]]></dc:creator>
		<pubDate>Fri, 04 Sep 2009 14:48:26 +0000</pubDate>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[WorkStation]]></category>
		<category><![CDATA[commandes]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">http://www.gagneux.info/index.php/?p=139</guid>

					<description><![CDATA[<p>Pré-requis : zenity libnotify Tout simplement excellent : pas encore testé, mais je compte bien faire qqls scripts avec : http://linux.byexamples.com/archives/259/a-complete-zenity-dialog-examples-1/ http://linux.byexamples.com/archives/265/a-complete-zenity-dialog-examples-2/ http://www.korben.info/integrer-une-popup-de-notification-dans-vos-scripts-sous-ubuntu.html</p>
<p>The post <a href="https://gagzen.net/2009/09/04/linux-gui-boites-de-dialogue/">Linux GUI : Boîtes de dialogue</a> first appeared on <a href="https://gagzen.net">Gagzen</a>.</p>]]></description>
										<content:encoded><![CDATA[<div>
<p>Pré-requis :</p>
<ul>
<li>zenity</li>
<li>libnotify</li>
</ul>
</div>
<div>
<p>Tout simplement excellent : pas encore testé, mais je compte bien faire qqls scripts avec :</p>
<p>http://linux.byexamples.com/archives/259/a-complete-zenity-dialog-examples-1/</p>
<p>http://linux.byexamples.com/archives/265/a-complete-zenity-dialog-examples-2/</p>
<p>http://www.korben.info/integrer-une-popup-de-notification-dans-vos-scripts-sous-ubuntu.html</p>
</div><p>The post <a href="https://gagzen.net/2009/09/04/linux-gui-boites-de-dialogue/">Linux GUI : Boîtes de dialogue</a> first appeared on <a href="https://gagzen.net">Gagzen</a>.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Commandes en vrac</title>
		<link>https://gagzen.net/2008/10/31/commandes-en-vrac/</link>
		
		<dc:creator><![CDATA[Baptiste]]></dc:creator>
		<pubDate>Fri, 31 Oct 2008 13:48:44 +0000</pubDate>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[commandes]]></category>
		<category><![CDATA[linux]]></category>
		<guid isPermaLink="false">http://www.gagneux.info/index.php/?p=53</guid>

					<description><![CDATA[<p>Quelques commandes en vrac find + execution : find /tonrep -name « *.log » -exec rm -f {} \; find par taille de fichier find . -type f -size +1000000k ( ou 1000M ou 1G) recherche de tous les fichiers de plus de 1Go find de fichier plus récent que avec formatage sudo find . -newer /var/log/wtmp-20060914.bz2 [&#8230;]</p>
<p>The post <a href="https://gagzen.net/2008/10/31/commandes-en-vrac/">Commandes en vrac</a> first appeared on <a href="https://gagzen.net">Gagzen</a>.</p>]]></description>
										<content:encoded><![CDATA[<div>
<p><strong>Quelques commandes en vrac</strong></p>
<p><strong><span id="more-235"></span><br />
</strong></p>
</div>
<p><strong>find + execution :</strong><br />
find /tonrep -name « *.log » -exec rm -f {} \;<br />
find par taille de fichier<br />
find . -type f -size +1000000k<br />
( ou 1000M ou 1G)<br />
recherche de tous les fichiers de plus de 1Go<br />
find de fichier plus récent que avec formatage<br />
sudo find . -newer /var/log/wtmp-20060914.bz2 -printf « %c\t%s\t%h/%f\n\r » &gt; /home/bg/toto<br />
%c &gt; date de modification<br />
%s &gt; taille en octet<br />
%h/%f &gt; chemin complet+nomfichier<br />
\n\r &gt; retour à la ligne<br />
\t &gt; tabulation<br />
find fichier créé depuis plus de 1 minute<br />
find /ARBO/* -type f -cmin +1 -name *.* -print<br />
cmin date de creation<br />
mmin date de modification<br />
amin date d&rsquo;accès<br />
<strong>grep :</strong><br />
grep [-ivnc] chaine fichier<br />
Ignore majuscule/minuscule<br />
Verbose les lignes ne contenant pas la chaine<br />
Numerote les lignes affichées<br />
Compter les lignes affichées<br />
<strong>tar :</strong><br />
Compression &gt; tar cfvz [destination].tar.gz [source]<br />
Décompression &gt; tar -zxvf [source] [destination]<br />
<strong>user :</strong><br />
/etc/passwd //fichier utilisateurs<br />
nom:pass:UID:GID:commentaire:repertoire:shell<br />
/etc/group //fichier groupes<br />
nom:pass:GID:users<br />
useradd -c comment -d home_dir -e expire_date -f inactive_time -g initiale_group -G group[,] -m-k skeleton_dir -s shell -u uid<br />
passwd -d -l -u [user]<br />
Delete password<br />
Lock user<br />
Unlock usr<br />
userdel -r [user]<br />
Repertoire home<br />
SNMPWALK<br />
snmpwalk -c [COMMUNITY] -v 1 [ADRESSE_IP]<br />
<strong>cut</strong> :<br />
cut -c0-10<br />
10 premiers caractères<br />
echo « 01;02;03&Prime;| cut -d »; » -f2 &gt; retourne « 02 »<br />
chargement d&rsquo;un daemon au démarrage<br />
/sbin/chkconfig ntpd on</p>
<p><strong>Découpe d&rsquo;une ligne</strong> (\015 correspond au \r de fin de ligne)<br />
echo « toto;tata;titi » | cut -d »; » -f3 | tr -d « \015 »<br />
&gt; titi</p>
<p><strong>monter une iso :</strong><br />
mount -o loop -t iso9660 Fichier_Image.ISO /mnt/iso</p><p>The post <a href="https://gagzen.net/2008/10/31/commandes-en-vrac/">Commandes en vrac</a> first appeared on <a href="https://gagzen.net">Gagzen</a>.</p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
