<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Cours Unix Utilisateur</title>
	<atom:link href="http://coursunix.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://coursunix.wordpress.com</link>
	<description>Philippe Laroque et Didier Deleglise</description>
	<lastBuildDate>Mon, 01 Mar 2010 18:22:17 +0000</lastBuildDate>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='coursunix.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Cours Unix Utilisateur</title>
		<link>http://coursunix.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://coursunix.wordpress.com/osd.xml" title="Cours Unix Utilisateur" />
	<atom:link rel='hub' href='http://coursunix.wordpress.com/?pushpress=hub'/>
		<item>
		<title>B. Réseau</title>
		<link>http://coursunix.wordpress.com/2010/03/01/b-reseau/</link>
		<comments>http://coursunix.wordpress.com/2010/03/01/b-reseau/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 18:22:17 +0000</pubDate>
		<dc:creator>ddelegli</dc:creator>
				<category><![CDATA[B. réseau]]></category>

		<guid isPermaLink="false">http://coursunix.wordpress.com/?p=290</guid>
		<description><![CDATA[tcp/ip Transmission Control Protocol / Internet Protocol : protocole né avec Unix. Connexion d&#8217;environemnts hétérogènes. Les RFC (Request For Comment) diffusés par l&#8217;IAB (Internet Architecture Board) définissent TCP/IP S&#8217;appuie sur des connexions physique hétérogènes. Chaque machine connecté à un réseau est un Hôte (host). Les host qui rellient 2 ou +sieurs réseaux sont des passerelles [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=290&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2 id="zw-5">tcp/ip</h2>
<p>Transmission Control Protocol / Internet Protocol : protocole né avec Unix.</p>
<p>Connexion d&#8217;environemnts hétérogènes.<br />
Les RFC (Request For Comment) diffusés par l&#8217;IAB (Internet Architecture Board) définissent TCP/IP<br />
S&#8217;appuie sur des connexions physique hétérogènes.</p>
<p>Chaque machine connecté à un réseau est un Hôte (host).<br />
Les host qui rellient 2 ou +sieurs réseaux sont des passerelles (gateways).</p>
<p>Chaque hôte a un nom et une adresse.</p>
<h2>Principaux Services reseaux :</h2>
<p>NFS : Network File System : Partage de fichiers distants</p>
<p>NIS : Network Information Services : partage des fichiers de configuration : délaissé au profit de ldap</p>
<p>DNS : Domain Name Service : résolutions de nom primaire secondaire</p>
<p>DHCP : Dynamic Host Configuration Protocol</p>
<h2 id="zw-27">Adresses</h2>
<p id="zw-31">@IP composé de @reseau+@machine</p>
<p>Classe d&#8217;@</p>
<p>Reseau et sous-reseau</p>
<p>Routage via passerelle</p>
<p>Utilitaire pour convertir le binaire en adresse :<br />
bc (ibase=2 obase=16 au debut de la commande)<br />
Loopback : 127.0.0.1</p>
<p>@ privées :</p>
<p>10*<br />
172.16*<br />
172.31*<br />
192.168*<br />
Adresse IP avec masque de sous-réseau : donné par l&#8217;administrateur du réseau.<br />
Dans le fichier :</p>
<h2>Socket</h2>
<p id="zw-56">Port : n° d&#8217;une &#8220;porte&#8221; sur la machine</p>
<p>Sous UNIX, la liste des ports traditionnels  se trouve dans le fichier  /etc/services</p>
<p>Pour obtenir la liste des ports vous pouvez consulter le site <a href="http://www.neohapsis.com/neolabs/neo-ports/">neohapsis </a></p>
<p id="zw-62">Socket = @IP + Protocole + Port : communication entre processus (éventuellement sur +sieurs machines)</p>
<p id="zw-67">UDP et TCP</p>
<p id="zw-69">UDP sans connexion et avec (TFTP, DNS, NFS)</p>
<p id="zw-72">TCP accusé de réception, retransmission</p>
<h2>commandes</h2>
<p id="zw-75"><span style="color:#008000;">ifconfig</span> pour voir le paramétrage réseau ou pour le modifier !</p>
<p id="zw-79"><span style="color:#008000;">hostname</span> pour changer le nom de la machine jusqu&#8217;au prochain reboot</p>
<p id="zw-82">
<p><span style="color:#008000;">netstat</span></p>
<p id="zw-128">netstat -i : voir les cartes<br />
netstat -a : voir les sockets (option n pour voir la resolution)<br />
netstat -ra : voir le routage</p>
<h2>Résolution de nom :</h2>
<p>/etc/hosts : resolution de noms locale<br />
idem<br />
C:\&#8230;\system32\drivers\etc</p>
<p>/etc/resolv.conf : contient :</p>
<p>search nom_du_dommaine        Nom du domaine de l&#8217;entreprise ex wikipedia.org<br />
nameserver serveur_dns_1       @ du serveur de nom principal<br />
nameserver serveur_dns_2       @ du serveur de nom secondaire</p>
<h2>Commandes reseau</h2>
<p><span style="color:#008000;">host </span>nom_reseau ou @</p>
<p><span style="color:#008000;">nslookup</span> nom_reseau ou @ : utilise seulement le 1er dns</p>
<p><span style="color:#008000;">dig</span></p>
<p><span style="color:#008000;">ping</span></p>
<p id="zw-165"><span style="color:#008000;">ftp sftp</span></p>
<p>/etc/ftpusers utilisateus habilités à faire du ftp</p>
<p>telnet rexec   rsh <span style="color:#008000;">ssh</span></p>
<p>rcp <span style="color:#339966;">rsync</span> -r <span style="color:#339966;">scp</span></p>
<h2>services réseaux :</h2>
<p>ntp : service de synchronisation de temps</p>
<p>sendail :routeur de reseau programmable<br />
fichier de conf<br />
/etc/sendmail.cf</p>
<p>nfs<br />
/etc/exports<br />
more /etc/exports<br />
/repertoire_local site_eloigne<br />
/rep_loc2 <code>192.168.0.3(rw,sync)</code></p>
<div id="zw-195">Apache: ou httpd</div>
<p id="zw-199">conf.d</p>
<p><a href="http://doc.ubuntu-fr.org/apache2">http://doc.ubuntu-fr.org/apache2</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/coursunix.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/coursunix.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/coursunix.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/coursunix.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/coursunix.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/coursunix.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/coursunix.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/coursunix.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/coursunix.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/coursunix.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/coursunix.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/coursunix.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/coursunix.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/coursunix.wordpress.com/290/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=290&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://coursunix.wordpress.com/2010/03/01/b-reseau/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c8af8e11781178ca2e90c056d4abd87?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ddelegli</media:title>
		</media:content>
	</item>
		<item>
		<title>Sauvegardes et restaurations</title>
		<link>http://coursunix.wordpress.com/2010/02/27/sauvegardes-et-restaurations/</link>
		<comments>http://coursunix.wordpress.com/2010/02/27/sauvegardes-et-restaurations/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 16:11:55 +0000</pubDate>
		<dc:creator>ddelegli</dc:creator>
				<category><![CDATA[A. Sauvegardes/restaurations]]></category>

		<guid isPermaLink="false">http://coursunix.wordpress.com/?p=283</guid>
		<description><![CDATA[Exemple d&#8217;Unix propriétaire  : AIX Sauvegardes systèmes et sauvegarde données. Sauvegarde volume systeme sous AIX : mksysb et SMIT (interface prpriétaire). Restauration : demarage en mode maintenance depuis l&#8217;unité de sauvegarde ou un CD (?) d&#8217;installation. Sauvegarde des volumes ordinaires  : (savevg restvg) cpio (copy input/output) -o outut : crée une image -i input : [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=283&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p id="zw-9">
<h2 id="zw-15">Exemple d&#8217;Unix propriétaire  : AIX</h2>
<p>Sauvegardes systèmes et sauvegarde données.</p>
<p>Sauvegarde volume systeme sous AIX : mksysb et SMIT (interface prpriétaire).<br />
Restauration : demarage en mode maintenance depuis l&#8217;unité de sauvegarde ou un CD (?) d&#8217;installation.</p>
<p>Sauvegarde des volumes ordinaires  :<br />
(savevg restvg)</p>
<h2 id="zw-28">cpio</h2>
<p id="zw-30">(copy input/output)</p>
<p>-o outut : crée une image<br />
-i input : lit une image<br />
-t : lit une image<br />
-d crée les repertoires au cours de la restauration</p>
<p>-v verbose : donne plus de details<br />
-m conserve les dates de modification</p>
<h2 id="zw-40">tar</h2>
<p>crée une &#8220;archive&#8221;</p>
<p id="zw-42">-c crée une archive<br />
-t liste le contenu d&#8217;une archive<br />
-x extrait</p>
<p>-v &#8220;verbose&#8221; : donne + de détails<br />
-f  : le nom de l&#8217;archive<br />
ex : tar -cvf mon_tar * : le fichier mon_tar contiendra les archives de tous les fichiers du repertoire</p>
<p>tar -cvf /dev/rmt0.3 /home : sauve tous les fichiers du répertoire /home sur une bande.</p>
<p>tar -xvf mon_tar fichier_a_restaurer1 mon_tar fichier_a_restaurer2 &#8230;</p>
<p>beaucoup d&#8217;options supplémentaire (-a , -u&#8230;)</p>
<h2 id="zw-57">dd</h2>
<p id="zw-60">La commande <em>dd</em> permet le transfert de données brutes. Elle est particulièrement utile pour transférer des informations entre différents systèmes ou faire des conversions.<br />
Exemple:<br />
Pour transférer le contenu sur disquette dans le répertoire /u/bob en faisant la conversion EBCDIC en ASCII:</p>
<pre>$ dd if=/dev/rfd0 of=/u/bob conv=ascii</pre>
<p id="zw-67">if : fichier en entrée<br />
of : sortie<br />
conv : conversion a effectuer (ex conv=ucase) : converti en majuscule</p>
<p>c&#8217;est une commande très puissante qui est aussi utilisée pour copier des blocks de données (raw device, ou copie de superblock).</p>
<div id="zw-73">unités</div>
<h2 id="zw-77">tctl</h2>
<p>légèrement obsolète</p>
<p>commande de gestion de bandes (rembobinage, positionnement&#8230;)</p>
<p>Unités de sauvegardes : /dev/&#8230;</p>
<div id="zw-84">
<h2 id="zw-86">gzip et gunzip</h2>
</div>
<p id="zw-90">permettent de compresser et de décompresser des fichiers ( déjà tarés !)</p>
<h2>rsync</h2>
<p>permet de synchroniser un fichier un répertoire&#8230;</p>
<p>Cette commande est faite pour synchroniser des répertoires ou des fichiers sur différente machines.</p>
<p>Cependant elle peut être utilisée en local et dans sa forme le + simple, elle peut être équivalente au cp.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/coursunix.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/coursunix.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/coursunix.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/coursunix.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/coursunix.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/coursunix.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/coursunix.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/coursunix.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/coursunix.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/coursunix.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/coursunix.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/coursunix.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/coursunix.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/coursunix.wordpress.com/283/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=283&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://coursunix.wordpress.com/2010/02/27/sauvegardes-et-restaurations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c8af8e11781178ca2e90c056d4abd87?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ddelegli</media:title>
		</media:content>
	</item>
		<item>
		<title>Raccourcis claviers (shortcuts)  pour GNOME</title>
		<link>http://coursunix.wordpress.com/2010/02/15/raccourcis-claviers-shortcuts-pour-gnome/</link>
		<comments>http://coursunix.wordpress.com/2010/02/15/raccourcis-claviers-shortcuts-pour-gnome/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 16:39:33 +0000</pubDate>
		<dc:creator>ddelegli</dc:creator>
				<category><![CDATA[W. Annexes]]></category>

		<guid isPermaLink="false">http://coursunix.wordpress.com/?p=274</guid>
		<description><![CDATA[General Alt + F1 Opens the Applications Menu . Alt + F2 Displays the Run Application dialog. Print Screen Takes a screenshot. Alt + Print Screen Takes a screenshot of the window that has focus. Ctrl + Alt + right arrow Switches to the workspace to the right of the current workspace. Ctrl + Alt [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=274&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>General</p>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<col width="162"></col>
<col width="406"></col>
<thead>
<tr valign="TOP">
<td width="162"><strong>Alt </strong>+ <strong>F1 </strong></td>
<td width="406">Opens the <strong>Applications Menu </strong>.</td>
</tr>
</thead>
<tbody>
<tr valign="TOP">
<td width="162"><strong>Alt </strong>+ <strong>F2 </strong></td>
<td width="406">Displays the <strong>Run Application </strong>dialog.</td>
</tr>
<tr valign="TOP">
<td width="162"><strong>Print Screen </strong></td>
<td width="406">Takes a screenshot.</td>
</tr>
<tr valign="TOP">
<td width="162"><strong>Alt </strong>+ <strong>Print Screen </strong></td>
<td width="406">Takes a screenshot of the window that has focus.</td>
</tr>
<tr valign="TOP">
<td width="162"><strong>Ctrl </strong>+ <strong>Alt </strong>+ <strong>right arrow </strong></td>
<td width="406">Switches to the workspace to the right of the current 				workspace.</td>
</tr>
<tr valign="TOP">
<td width="162"><strong>Ctrl </strong>+ <strong>Alt </strong>+ <strong>left arrow </strong></td>
<td width="406">Switches to the workspace to the left of the current 				workspace.</td>
</tr>
<tr valign="TOP">
<td width="162"><strong>Ctrl </strong>+ <strong>Alt </strong>+ <strong>up arrow </strong></td>
<td width="406">Switches to the workspace above the current workspace.</td>
</tr>
<tr valign="TOP">
<td width="162"><strong>Ctrl </strong>+ <strong>Alt </strong>+ <strong>down arrow </strong></td>
<td width="406">Switches to the workspace below the current workspace.</td>
</tr>
<tr valign="TOP">
<td width="162"><strong>Ctrl </strong>+ <strong>Alt </strong>+ <strong>d </strong></td>
<td width="406">Minimizes all windows, and gives focus to the desktop.</td>
</tr>
<tr valign="TOP">
<td width="162"><strong>F1 </strong></td>
<td width="406">Starts the online help browser, and displays appropriate 				online Help.</td>
</tr>
</tbody>
</table>
<p>Window / Fenetres</p>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<col width="161"></col>
<col width="407"></col>
<thead>
<tr valign="TOP">
<td width="161"><strong>Alt </strong>+ <strong>Tab </strong></td>
<td width="407">Switches between windows. When you use these shortcut keys, a 				list of windows that you can select is displayed. Release the 				keys to select a window.</td>
</tr>
</thead>
<tbody>
<tr valign="TOP">
<td width="161"><strong>Alt </strong>+ <strong>Esc </strong></td>
<td width="407">Switches between windows in reverse order. Release the keys to 				select a window.</td>
</tr>
<tr valign="TOP">
<td width="161"><strong>F10 </strong></td>
<td width="407">Opens the first menu on the left side of the menubar.</td>
</tr>
<tr valign="TOP">
<td width="161"><strong>Alt </strong>+ <strong>spacebar </strong></td>
<td width="407">Opens the <strong>Window Menu </strong>.</td>
</tr>
<tr valign="TOP">
<td width="161">Arrow keys</td>
<td width="407">Moves the focus between items in a menu.</td>
</tr>
<tr valign="TOP">
<td width="161"><strong>Return </strong></td>
<td width="407">Chooses a menu item.</td>
</tr>
<tr valign="TOP">
<td width="161"><strong>Esc </strong></td>
<td width="407">Closes an open menu.</td>
</tr>
<tr valign="TOP">
<td width="161"><strong>Ctrl </strong>+ <strong>Alt </strong>+ <strong>right arrow </strong></td>
<td width="407">Switches to the workspace to the right of the current 				workspace.</td>
</tr>
<tr valign="TOP">
<td width="161"><strong>Ctrl </strong>+ <strong>Alt </strong>+ <strong>left arrow </strong></td>
<td width="407">Switches to the workspace to the left of the current 				workspace.</td>
</tr>
<tr valign="TOP">
<td width="161"><strong>Ctrl </strong>+ <strong>Alt </strong>+ <strong>up arrow </strong></td>
<td width="407">Switches to the workspace above the current workspace.</td>
</tr>
<tr valign="TOP">
<td width="161"><strong>Ctrl </strong>+ <strong>Alt </strong>+ <strong>down arrow </strong></td>
<td width="407">Switches to the workspace below the current workspace.</td>
</tr>
<tr valign="TOP">
<td width="161"><strong>Ctrl </strong>+ <strong>Alt </strong>+ <strong>d </strong></td>
<td width="407">Minimizes all windows, and gives focus to the desktop.</td>
</tr>
</tbody>
</table>
<p>Raccourcis Panel</p>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<col width="160"></col>
<col width="408"></col>
<thead>
<tr valign="TOP">
<td width="160"><strong>Ctrl </strong>+ <strong>Alt </strong>+ <strong>Tab </strong></td>
<td width="408">Switches the focus between the panels and the desktop. When 				you use these shortcut keys, a list of items that you can select 				is displayed. Release the keys to select an item.</td>
</tr>
</thead>
<tbody>
<tr valign="TOP">
<td width="160"><strong>Ctrl </strong>+ <strong>Alt </strong>+ <strong>Esc </strong></td>
<td width="408">Switches the focus between the panels and the desktop. Release 				the keys to select an item.</td>
</tr>
<tr valign="TOP">
<td width="160"><strong>Ctrl </strong>+ <strong>F10 </strong></td>
<td width="408">Opens the popup menu for the selected panel.</td>
</tr>
<tr valign="TOP">
<td width="160"><strong>Tab </strong></td>
<td width="408">Switches the focus between objects on a panel.</td>
</tr>
<tr valign="TOP">
<td width="160"><strong>Return </strong></td>
<td width="408">Chooses the selected panel object or menu item.</td>
</tr>
<tr valign="TOP">
<td width="160"><strong>Shift </strong>+ <strong>F10 </strong></td>
<td width="408">Opens the popup menu for the selected panel object.</td>
</tr>
<tr valign="TOP">
<td width="160">Arrow keys</td>
<td width="408">Moves the focus between items in a menu. Moves the focus 				between interface items in an applet also.</td>
</tr>
<tr valign="TOP">
<td width="160"><strong>Esc </strong></td>
<td width="408">Closes an open menu.</td>
</tr>
<tr valign="TOP">
<td width="160"><strong>F10 </strong></td>
<td width="408">Opens the <strong>Applications </strong>menu from the <em>Menu Bar </em>, 				if the <em>Menu Bar </em>is in a panel.</td>
</tr>
</tbody>
</table>
<p>Raccourcis Application</p>
<table border="0" cellspacing="0" cellpadding="2" width="300">
<col width="101"></col>
<col width="77"></col>
<thead>
<tr>
<th width="101"><strong>Shortcut Keys </strong></th>
<th width="77"><strong>Command </strong></th>
</tr>
</thead>
<tbody>
<tr valign="TOP">
<td width="101"><strong>Ctrl </strong>+ <strong>N </strong></td>
<td width="77">New</td>
</tr>
<tr valign="TOP">
<td width="101"><strong>Ctrl </strong>+ <strong>X </strong></td>
<td width="77">Cut</td>
</tr>
<tr valign="TOP">
<td width="101"><strong>Ctrl </strong>+ <strong>C </strong></td>
<td width="77">Copy</td>
</tr>
<tr valign="TOP">
<td width="101"><strong>Ctrl </strong>+ <strong>V </strong></td>
<td width="77">Paste</td>
</tr>
<tr>
<td width="101"><strong>Ctrl </strong>+ <strong>Z </strong></td>
<td width="77">Undo</td>
</tr>
<tr>
<td width="101"><strong>Ctrl </strong>+ <strong>S </strong></td>
<td width="77">Save</td>
</tr>
<tr>
<td width="101"><strong>Ctrl </strong>+ <strong>Q </strong></td>
<td width="77">Quit</td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/coursunix.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/coursunix.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/coursunix.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/coursunix.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/coursunix.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/coursunix.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/coursunix.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/coursunix.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/coursunix.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/coursunix.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/coursunix.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/coursunix.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/coursunix.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/coursunix.wordpress.com/274/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=274&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://coursunix.wordpress.com/2010/02/15/raccourcis-claviers-shortcuts-pour-gnome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c8af8e11781178ca2e90c056d4abd87?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ddelegli</media:title>
		</media:content>
	</item>
		<item>
		<title>Travail en arriere plan et planification</title>
		<link>http://coursunix.wordpress.com/2009/02/19/travail-en-arriere-plan-et-planification/</link>
		<comments>http://coursunix.wordpress.com/2009/02/19/travail-en-arriere-plan-et-planification/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 16:30:05 +0000</pubDate>
		<dc:creator>ddelegli</dc:creator>
				<category><![CDATA[5. Les processus]]></category>

		<guid isPermaLink="false">http://coursunix.wordpress.com/?p=253</guid>
		<description><![CDATA[Il est possible de lancer des taches nom immédiates sur Unix. De manière rudimentaire avec la commande &#8216;at&#8217; ou avec un véritable utilitaire de planification &#8216;crontab&#8217;. commande at permet de declencher une action (un script, une commande) à une certaine heure exemple : $&#62; at 10:10 ls CTRL+D $&#62; at now+1day le fichier out sera [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=253&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Il est possible de lancer des taches nom immédiates sur Unix.<br />
De manière rudimentaire avec la commande &#8216;at&#8217; ou avec un véritable utilitaire de planification &#8216;crontab&#8217;.</p>
<h3>commande at</h3>
<p>permet de declencher une action (un script, une commande) à une certaine heure<br />
exemple :</p>
<blockquote><p>$&gt; at 10:10<br />
ls<br />
CTRL+D<br />
$&gt; at now+1day</p></blockquote>
<p>le fichier out sera le mail</p>
<p>l&#8217;environnement sera celui qui aurra lance le at</p>
<h3>commande crontab</h3>
<p>cette commande permet de planifier des taches répétitives</p>
<blockquote><p>$&gt; crontab -l : liste les taches<br />
$&gt; crontad -e : modifie<br />
$&gt; crontab -r : supprime toutes les taches</p></blockquote>
<p>syntaxe :</p>
<p>Minutes / heures / jour / mois / jour de la semaine / commande</p>
<p>exemple</p>
<p>30 12 * * 1-5 tar&#8230;<br />
sauvegarde tous les jours du lundi au vendredi à 12h30</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/coursunix.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/coursunix.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/coursunix.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/coursunix.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/coursunix.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/coursunix.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/coursunix.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/coursunix.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/coursunix.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/coursunix.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/coursunix.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/coursunix.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/coursunix.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/coursunix.wordpress.com/253/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=253&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://coursunix.wordpress.com/2009/02/19/travail-en-arriere-plan-et-planification/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c8af8e11781178ca2e90c056d4abd87?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ddelegli</media:title>
		</media:content>
	</item>
		<item>
		<title>Francisation et localisation</title>
		<link>http://coursunix.wordpress.com/2009/02/19/francisation-et-localisation/</link>
		<comments>http://coursunix.wordpress.com/2009/02/19/francisation-et-localisation/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 15:47:49 +0000</pubDate>
		<dc:creator>ddelegli</dc:creator>
				<category><![CDATA[2. Langage de commande]]></category>

		<guid isPermaLink="false">http://coursunix.wordpress.com/?p=246</guid>
		<description><![CDATA[&#8216;localisation&#8217; : Le fait d&#8217;adapter un programe à un contexte culturel et linguistique local. On traduira par exemple ses messages de l&#8217;anglais vers le français, on lui fera manipuler des dates à l&#8217;européenne, des formats de papier européens, des zeuros, etc. La variable LANG permet de positionner le pays, la langue te le jeu de [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=246&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8216;localisation&#8217; :</p>
<p>Le fait d&#8217;adapter un programe à un contexte culturel et linguistique local. On traduira par exemple ses messages de l&#8217;anglais vers le français, on lui fera manipuler des dates à l&#8217;européenne, des formats de papier européens, des zeuros, etc.</p>
<p>La variable LANG permet de positionner le pays, la langue te le jeu de caractère nationnal utilisé.</p>
<blockquote><p>$&gt; export LANG=en_US.UTF-8</p></blockquote>
<p>La commande &#8216;locale&#8217; nous donne des information sur la &#8216;version nationnale&#8217; de Linux utilisée :</p>
<blockquote><p>$&gt; locale<br />
LANG=en_US<br />
LC_COLLATE=&#8221;en_US&#8221;<br />
LC_CTYPE=&#8221;en_US&#8221;<br />
LC_MONETARY=&#8221;en_US&#8221;<br />
LC_NUMERIC=&#8221;en_US&#8221;<br />
LC_TIME=&#8221;en_US&#8221;<br />
LC_MESSAGES=&#8221;en_US</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/coursunix.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/coursunix.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/coursunix.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/coursunix.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/coursunix.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/coursunix.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/coursunix.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/coursunix.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/coursunix.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/coursunix.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/coursunix.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/coursunix.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/coursunix.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/coursunix.wordpress.com/246/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=246&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://coursunix.wordpress.com/2009/02/19/francisation-et-localisation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c8af8e11781178ca2e90c056d4abd87?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ddelegli</media:title>
		</media:content>
	</item>
		<item>
		<title>Table des matières</title>
		<link>http://coursunix.wordpress.com/2008/10/31/table-des-matieres/</link>
		<comments>http://coursunix.wordpress.com/2008/10/31/table-des-matieres/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 23:19:55 +0000</pubDate>
		<dc:creator>ddelegli</dc:creator>
				<category><![CDATA[1. Introduction]]></category>
		<category><![CDATA[cours unix]]></category>

		<guid isPermaLink="false">http://coursunix.wordpress.com/?p=98</guid>
		<description><![CDATA[Plan détaillé du cours Introduction - table des matieres - historique Langage de commande - shell et commandes - premier pas - redirections d&#8217;entree sorties - communication sous unix - fichiers sous unix - l&#8217;éditeur vi Le systeme de fichiers - l&#8217;arborescence des repertoires - manipulation de fichiers - manipulation de repertoires - structure interne [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=98&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Plan détaillé du cours</h3>
<ul>
<li><a href="http://coursunix.wordpress.com/category/1-introduction/">Introduction</a><br />
<a href="http://coursunix.wordpress.com/2008/12/01/table-des-matieres/">- table des matieres</a><br />
<a href="http://coursunix.wordpress.com/2008/10/31/historique/">- historique</a></li>
<li><a href="http://coursunix.wordpress.com/category/2-langage-de-commande/">Langage de commande</a><br />
<a href="http://coursunix.wordpress.com/2008/10/30/shell-et-commandes/">- shell et commandes</a><br />
<a href="http://coursunix.wordpress.com/2008/10/29/premier-pas/">- premier pas</a><br />
<a href="http://coursunix.wordpress.com/2008/10/28/redirections-dentree-sorties/">- redirections d&#8217;entree sorties</a><br />
<a href="http://coursunix.wordpress.com/2008/10/27/communication-sous-unix/">- communication sous unix</a><br />
<a href="http://coursunix.wordpress.com/2008/10/26/fichiers-sous-unix/">- fichiers sous unix</a><br />
<a href="http://coursunix.wordpress.com/2008/10/25/lediteur-vi/">- l&#8217;éditeur vi</a></li>
<li><a href="http://coursunix.wordpress.com/category/3-le-systeme-de-fichiers/">Le systeme de fichiers</a><br />
<a href="http://coursunix.wordpress.com/2008/10/24/larborescence-des-repertoires/">- l&#8217;arborescence des repertoires</a><br />
<a href="http://coursunix.wordpress.com/2008/10/22/manipulation-de-fichiers/">- manipulation de fichiers</a><br />
<a href="http://coursunix.wordpress.com/2008/10/21/manipulation-de-repertoires/">- manipulation de repertoires</a><br />
<a href="http://coursunix.wordpress.com/2008/10/20/structure-interne-des-disques/">- structure interne des disques</a></li>
<li><a href="http://coursunix.wordpress.com/category/4-utilisateurs-et-droits/">Utilisateurs et droits</a><br />
<a href="http://coursunix.wordpress.com/2008/10/03/utilisateurs-et-groupes/">- utilisateurs et groupes<br />
</a> <a href="http://coursunix.wordpress.com/2008/10/02/le-super-utilisateur/">- le(s) super utilisateur(s)</a><br />
<a href="http://coursunix.wordpress.com/2008/10/02/permissions_fichiers/">- permissions de fichiers et répertoires</a></li>
<li><a href="http://coursunix.wordpress.com/category/5-les-processus/">Les processus</a><br />
<a href="http://coursunix.wordpress.com/2008/10/18/les-processus/">- les processus </a><br />
<a href="http://coursunix.wordpress.com/2008/10/13/gestion_processus/">- gestion des processus</a></li>
<li><a href="http://coursunix.wordpress.com/category/6-utilisation-des-filtres/">Utilisation des filtres</a><br />
<a href="http://coursunix.wordpress.com/2008/10/12/notion-de-filtre/">- notion de filtre</a><br />
<a href="http://coursunix.wordpress.com/2008/10/11/filtres-courants/">- sort, head et grep</a><br />
<a href="http://coursunix.wordpress.com/2008/10/10/cut-et-sed/">- cut et sed</a><br />
<a href="http://coursunix.wordpress.com/2008/10/09/awk/">- awk</a></li>
<li><a href="http://coursunix.wordpress.com/category/7-environnement-personnalise/">Environnement personnalise</a><br />
<a href="http://coursunix.wordpress.com/2008/10/03/variables-denvironnement/">- variables d&#8217;environnement</a><br />
<a href="http://coursunix.wordpress.com/2008/10/02/gestion-de-lenvironnement/">- gestion de l&#8217;environnement</a></li>
<li><a href="http://coursunix.wordpress.com/2008/09/28/scripts-shell/" target="_self">Script Shell</a></li>
<li><a href="http://coursunix.wordpress.com/2008/09/30/demarrage-du-systeme/">Démarrage / Arrêt</a></li>
</ul>
<ul>
<li><a href="http://coursunix.wordpress.com/category/x-corriges/"><a href="http://coursunix.wordpress.com/2008/09/30/demarrage-du-systeme/">Corrigés</a><br />
</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/coursunix.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/coursunix.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/coursunix.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/coursunix.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/coursunix.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/coursunix.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/coursunix.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/coursunix.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/coursunix.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/coursunix.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/coursunix.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/coursunix.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/coursunix.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/coursunix.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=98&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://coursunix.wordpress.com/2008/10/31/table-des-matieres/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c8af8e11781178ca2e90c056d4abd87?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ddelegli</media:title>
		</media:content>
	</item>
		<item>
		<title>Historique</title>
		<link>http://coursunix.wordpress.com/2008/10/31/historique/</link>
		<comments>http://coursunix.wordpress.com/2008/10/31/historique/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 09:43:03 +0000</pubDate>
		<dc:creator>ddelegli</dc:creator>
				<category><![CDATA[1. Introduction]]></category>

		<guid isPermaLink="false">http://coursunix.wordpress.com/?p=3</guid>
		<description><![CDATA[Historique Unix Thompson et Ritchie, les heureux papas Quelques dates : 1970 : Première version (assembleur PDP11) par Ken THOMPSON et Dennis RITCHIE 1973 : Réécriture d&#8217;UNIX en C (90%) 1978 : après la version 6, les sources ne sont plus fournis 1979 : UNIX version 7, plus portable Depuis 1979, deux versions sont développées [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=3&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3 style="text-align:left;"><strong>Historique Unix</strong></h3>
<h6 style="text-align:left;"><a href="http://coursunix.files.wordpress.com/2008/11/thompson_et_ritchie.jpg"><img class="size-full wp-image-54 alignnone" style="margin:5px;" title="thompson_et_ritchie" src="http://coursunix.files.wordpress.com/2008/11/thompson_et_ritchie.jpg?w=480" alt="thompson_et_ritchie"   /></a><br />
Thompson et Ritchie, les heureux papas</h6>
<p style="text-align:left;">Quelques dates<strong> :<br />
</strong></p>
<p style="text-align:left;">1970 : Première version (assembleur PDP11) par Ken THOMPSON et Dennis RITCHIE<br />
1973 : Réécriture d&#8217;UNIX en C (90%)<br />
1978 : après la version 6, les sources ne sont plus fournis<br />
1979 : UNIX version 7, plus portable</p>
<p style="text-align:left;">Depuis 1979, deux versions sont développées en parallèle :</p>
<ul style="text-align:left;">
<li> Bell Labs : SYSTEM III, puis SYSTEM V</li>
<li>Berkeley U. : BSD x.x</li>
</ul>
<p style="text-align:left;">La version SYSTEM V release 4 est censée être une réunion de ces deux branches distinctes<br />
Mais en fait quelles que soient les versions, de nombreux détails divergent selon les fournisseurs</p>
<p style="text-align:left;">Quelques exemples de distribution Unix :</p>
<ul style="text-align:left;">
<li>HP-UX (Hewlet Packard)</li>
<li>AIX (IBM)</li>
<li>SunOs (Sun Microsystem)</li>
</ul>
<p style="text-align:left;">
<h3 style="text-align:left;"><strong>Historique Linux</strong></h3>
<p style="text-align:left;">Le premier clone d&#8217;Unix (minimal) fonctionnant sur PC a été Minix, écrit par Andrew Tanenbaum, un système d&#8217;exploitation pouvant être utilisé sur PC. En 1991, Linus Torvalds , alors étudiant décida d&#8217;étendre les possibilités de Minix, en créant ce qui allait devenir Linux.<br />
Parallelement Richard Stallman démarre le projet GNU visant à faire un Unix à partir de composants totalement libres. Il en profite pour mettre au point la licence GPL, qui définit les règles d&#8217;une licence logiciels libres de droits.<br />
Une 1ere version de Linux sort en 1992.</p>
<h6 style="text-align:left;"><a href="http://coursunix.files.wordpress.com/2008/11/linus1.jpg"><img class="alignnone size-full wp-image-73" title="linus_torvalds" src="http://coursunix.files.wordpress.com/2008/11/linus1.jpg?w=480" alt="linus_torvalds" /></a><br />
Linus Torvalds, au Computer History Museum (1)</h6>
<p style="text-align:left;">Quelques exemples de distributions Linux</p>
<ul style="text-align:left;">
<li>La distribution RedHat ;</li>
<li>La distribution SuSe ;</li>
<li>La distribution Mandriva;</li>
<li>Fedora (issue de Redhat)</li>
<li>Ubuntu, &#8230;</li>
</ul>
<p style="text-align:center;"><a href="http://coursunix.files.wordpress.com/2008/11/unix_history.png"><img class="alignnone size-full wp-image-75" title="unix_history" src="http://coursunix.files.wordpress.com/2008/11/unix_history.png?w=480" alt="unix_history"   /></a></p>
<h6 style="text-align:center;">un apercu de l&#8217;arbre généalogique des Unix / Linux</h6>
<p style="text-align:left;">(1) Non sans humour il déclare sur son blog : &lt;&lt; I don&#8217;t <span style="font-style:italic;">always</span> dress in a T-shirt and jeans. Sometimes people give me awards, and I dress like a penguin instead. &gt;&gt;</p>
<p style="text-align:left;">
<h6 style="text-align:left;"><span class="Footer">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Cet historique Linux est extrait d&#8217;un document  intitulé « <a href="http://www.commentcamarche.net/contents/linux/linintro.php3">Introduction à Linux</a> » issu de <a href="http://www.commentcamarche.net/">Comment Ça Marche </a><a href="http://www.commentcamarche.net/">www.commentcamarche.net</a>) est mis à disposition sous les termes de la licence <a href="http://www.commentcamarche.net/ccmguide/ccmlicence.php3">Creative Commons</a>. (<br />
</span></h6>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/coursunix.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/coursunix.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/coursunix.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/coursunix.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/coursunix.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/coursunix.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/coursunix.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/coursunix.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/coursunix.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/coursunix.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/coursunix.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/coursunix.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/coursunix.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/coursunix.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=3&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://coursunix.wordpress.com/2008/10/31/historique/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c8af8e11781178ca2e90c056d4abd87?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ddelegli</media:title>
		</media:content>

		<media:content url="http://coursunix.files.wordpress.com/2008/11/thompson_et_ritchie.jpg" medium="image">
			<media:title type="html">thompson_et_ritchie</media:title>
		</media:content>

		<media:content url="http://coursunix.files.wordpress.com/2008/11/linus1.jpg" medium="image">
			<media:title type="html">linus_torvalds</media:title>
		</media:content>

		<media:content url="http://coursunix.files.wordpress.com/2008/11/unix_history.png" medium="image">
			<media:title type="html">unix_history</media:title>
		</media:content>
	</item>
		<item>
		<title>Architecture, Shell et commandes</title>
		<link>http://coursunix.wordpress.com/2008/10/30/shell-et-commandes/</link>
		<comments>http://coursunix.wordpress.com/2008/10/30/shell-et-commandes/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 10:00:21 +0000</pubDate>
		<dc:creator>ddelegli</dc:creator>
				<category><![CDATA[2. Langage de commande]]></category>
		<category><![CDATA[tutoriel unix linux cours]]></category>

		<guid isPermaLink="false">http://coursunix.wordpress.com/?p=8</guid>
		<description><![CDATA[Architecture Unix est un système d&#8217;exploitation organisées en couches quasi indépendantes les unes des autres. Ces couches constituent l&#8217;interface entre l&#8217;utilisateur et le matériel. En voici une vue simplifiée : Le noyau (Kernel) gère principalement : la mémoire les disques les autres périphériques d&#8217;entrée/sorties les processus Voici un apercu plus détaillé : Langage de Commande [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=8&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3></h3>
<h3>Architecture</h3>
<p>Unix est un système d&#8217;exploitation organisées en couches quasi indépendantes les unes des autres.<br />
Ces couches constituent l&#8217;interface entre l&#8217;utilisateur et le matériel.<br />
En voici une vue simplifiée :</p>
<p><a href="http://coursunix.files.wordpress.com/2008/11/kernel.png"><img class="alignnone size-full wp-image-78" title="kernel" src="http://coursunix.files.wordpress.com/2008/11/kernel.png?w=480" alt="kernel"   /></a></p>
<p>Le noyau (Kernel) gère principalement :</p>
<ul>
<li>la mémoire</li>
<li>les disques</li>
<li>les autres périphériques d&#8217;entrée/sorties</li>
<li>les processus</li>
</ul>
<p>Voici un apercu plus détaillé :</p>
<p><a href="http://coursunix.files.wordpress.com/2008/11/kernel_details.png"><img class="alignnone size-full wp-image-80" title="kernel_details" src="http://coursunix.files.wordpress.com/2008/11/kernel_details.png?w=480" alt="kernel_details"   /></a></p>
<h3></h3>
<h3>Langage de Commande</h3>
<p>Le SHELL est la partie émergée de l&#8217;iceberg.<br />
Son Interpréteur de Commandes permet d&#8217;intéragir (directement ou non) avec l&#8217;utilisteur.<br />
Il en existe plusieurs versions, plus ou moins disponibles suivant les versions d&#8217;Unix :</p>
<ul>
<li> sh : Bourne shell, le shell historique</li>
<li>csh : C-shell, à la syntaxe inspirée&#8230;du C</li>
<li>ksh : Korn shell, une version mixte des 2 précédentes</li>
<li>bash : Bourne-again shell, LE shell Linux</li>
</ul>
<h3>Exécution d&#8217;une commande Shell</h3>
<p>Trois phases pour l&#8217;exécution d&#8217;une commande :</p>
<ul>
<li>Lecture d&#8217;une commande</li>
<li>Analyse syntaxique</li>
<li>Exécution si aucune erreur de syntaxe</li>
</ul>
<p>Pour exécuter une commande son nom suffit généralement.</p>
<p>Cela veut dire dans ce cas que c&#8217;est une commande interne ou qu&#8217;elle est localisable dans le chemin d&#8217;exécution de l&#8217;utilisateur (PATH).</p>
<p>Dans le cas contraire, il faut :</p>
<ul>
<li>donner le chemin absolu de la commande</li>
<li>ou se trouver dans le répertoire où se trouve la commande</li>
</ul>
<p><strong>La syntaxe générale d&#8217;une commande</strong> est la suivante :</p>
<blockquote><p>$&gt; nom_commande [options] [paramètres]</p></blockquote>
<p>L&#8217;option est en général de la forme -lettre_simple ou &#8211;mot_complet</p>
<p>Le paramètre peut être un chiffre , une chaine, un nom de fichier , &#8230;</p>
<p>Certaines commandes acceptent plusieurs paramètres</p>
<p>&#8216;#&#8217; permet de faire des commentaires</p>
<p>Voici quelques exemples :</p>
<blockquote><p>$&gt; # commande interne<br />
$&gt; ls<br />
$&gt; # avec parametre<br />
$&gt; ls -l<br />
$&gt; # avec parametre et option<br />
$&gt; ls -l /usr<br />
$&gt; # avec chemin complet<br />
$&gt; /home/dd/le_shell_a_dd.sh</p></blockquote>
<h3>Buffer de commande</h3>
<p>Les commandes entrées par l&#8217;utilisateur, sont en fait mémorisées dans un espace temporaire (le temps de la session) : le buffer de commandes.<br />
Elles peuvent ainsi être rappelées facilement, puis réexécutées avec ou sans modifications.</p>
<p>La commande &#8216;history&#8217;  liste les commandes du  buffer de commandes, en les numérotant à partir di début de la session.<br />
Bien que peu conviviale, elle présente l&#8217;intérêt d&#8217;être disponible dans la plupart des Shells.</p>
<blockquote><p>$&gt; # on va lister les dernières commandes<br />
$&gt; history<br />
1 whoami<br />
2 pwd<br />
3 ls<br />
$&gt;</p></blockquote>
<p>On peut exécuter une commande particulière de la liste avec les opérateur &#8216;!&#8217; et ;?&#8217;</p>
<blockquote><p>!n : rappelle la commande de no n<br />
!-n : rappelle la commande de no courant &#8211; n<br />
!chaine : rappelle la dernière commande qui débute par &#8216;chaine&#8217;<br />
!?chaine : rappelle la dernière commande qui contient &#8216;chaine&#8217;</p></blockquote>
<p>remarque : les commandes de gestions du buffer &#8230;ne sont pas tockées dans le buffer</p>
<p>En bash, ce buffer se manipule aisément avec les flèches du clavier :</p>
<blockquote><p>haut : remonte d&#8217;une commande<br />
bas : descend d&#8217;une commande<br />
droite : un caractère à droite<br />
gauche : un caractère en arrière<br />
home : 1er caractère de la commande<br />
end : dernier caractère</p></blockquote>
<p>On peut également suivant les Shell compléter automatiquement les commandes :<br />
&lt;Tab&gt; complète, en bash<br />
&lt;Tab&gt;&lt;Tab&gt; propose des choix en cas d&#8217;ambiguité<br />
&lt;*&gt; complète, en Ksh</p>
<h3>Touches et caractères spéciaux du Shell</h3>
<p>Quelques combinaisons de touches utiles :</p>
<blockquote><p>CTRL-C : interruption du programme en cours<br />
CTRL-D : déconnexion (logout) ou fin de fichier (EOF)<br />
CTRL-L : effacement d&#8217;écran (raccourci pour clear)<br />
CTRL-Z : mise en pause du processus courant (voir contrôle des Jobs pour plus d&#8217;infos)</p></blockquote>
<p>Quelques caractères spéciaux (et donc à utiliser à bon escient !) en Shell :</p>
<blockquote><p>; : séparateur de commande<br />
&lt;espace&gt; &lt;tab&gt; &lt;enter&gt; : séparateur de mots<br />
&lt;, &gt;, |, &amp; : redirections<br />
$ : substitution de variable<br />
` &lt;anti cote&gt; : substitution de commande<br />
\&lt;antislash&gt;, &#8221; &lt;guillemets&gt; &#8216; &lt;simple cote&gt; : masque / échappe  ou encadre un caractère ou une chaine<br />
&amp; &lt;et commercial&gt; : passe la commande en arrière plan</p></blockquote>
<p>exemples</p>
<p>$&gt; # 2 instructions sur la même ligne<br />
$&gt; cd /; ls<br />
$&gt; # un bloc d&#8217;instructions&#8230;se termine par un &#8216;;&#8217;<br />
$&gt; { cd /; ls -R; }</p>
<h3>Environnement graphique</h3>
<p><a href="http://coursunix.files.wordpress.com/2008/11/klogo.png"></a><a href="http://coursunix.files.wordpress.com/2008/11/klogo1.png"><img class="size-thumbnail wp-image-84 alignleft" title="klogo1" src="http://coursunix.files.wordpress.com/2008/11/klogo1.png?w=47&#038;h=47" alt="klogo1" width="47" height="47" /></a><a href="http://coursunix.files.wordpress.com/2008/11/gnome.png"><img class="alignnone size-full wp-image-85" title="gnome" src="http://coursunix.files.wordpress.com/2008/11/gnome.png?w=480" alt="gnome"   /></a></p>
<p>Alternativement à cette interface de commande textuelle, il en existe de graphiques, basées sur le système X-Window.<br />
Elles permettent d&#8217;utiliser carte graphique et souris, et en plus d&#8217;un gestionnaire de fenêtres, offrent un &#8216;bureau&#8217; comparable à celui de Windows.</p>
<p>Sous linux on dénombre  essentiellement 2 &#8220;bureaux&#8221; (desktops) :</p>
<ul>
<li>GNOME, pour Gnu Network Object Model Environment (basé sur les librairies GTK+)</li>
<li>KDE, (basé sur les librairies Qt)</li>
</ul>
<p>Ubuntu est par exemple livré avec GNOME par défaut.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/coursunix.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/coursunix.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/coursunix.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/coursunix.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/coursunix.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/coursunix.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/coursunix.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/coursunix.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/coursunix.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/coursunix.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/coursunix.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/coursunix.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/coursunix.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/coursunix.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=8&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://coursunix.wordpress.com/2008/10/30/shell-et-commandes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c8af8e11781178ca2e90c056d4abd87?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ddelegli</media:title>
		</media:content>

		<media:content url="http://coursunix.files.wordpress.com/2008/11/kernel.png" medium="image">
			<media:title type="html">kernel</media:title>
		</media:content>

		<media:content url="http://coursunix.files.wordpress.com/2008/11/kernel_details.png" medium="image">
			<media:title type="html">kernel_details</media:title>
		</media:content>

		<media:content url="http://coursunix.files.wordpress.com/2008/11/klogo1.png?w=96" medium="image">
			<media:title type="html">klogo1</media:title>
		</media:content>

		<media:content url="http://coursunix.files.wordpress.com/2008/11/gnome.png" medium="image">
			<media:title type="html">gnome</media:title>
		</media:content>
	</item>
		<item>
		<title>Premiers pas</title>
		<link>http://coursunix.wordpress.com/2008/10/29/premier-pas/</link>
		<comments>http://coursunix.wordpress.com/2008/10/29/premier-pas/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 10:06:30 +0000</pubDate>
		<dc:creator>ddelegli</dc:creator>
				<category><![CDATA[2. Langage de commande]]></category>

		<guid isPermaLink="false">http://coursunix.wordpress.com/?p=10</guid>
		<description><![CDATA[Pour pouvoir travailler sur une machine Unix, on doit avoir un compte. Un compte Unix c&#8217;est : un nom d&#8217;utilisateur un mot de passe un répertoire d&#8217;accueil (login directory) un environement (shell par défaut) L&#8217;utilisateur va se connecter au système en s&#8217;identifiant (mécanisme de login) et donc fournir son nom et son mot de passe. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=10&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Pour pouvoir travailler sur une machine Unix, on doit avoir un compte.</p>
<p>Un compte Unix c&#8217;est :</p>
<ul>
<li>un nom d&#8217;utilisateur</li>
<li>un mot de passe</li>
<li>un répertoire d&#8217;accueil (login directory)</li>
<li>un environement (shell par défaut)</li>
</ul>
<p>L&#8217;utilisateur va se connecter au système en s&#8217;identifiant (mécanisme de login) et donc fournir son nom et son mot de passe.</p>
<p>Le lancement  d&#8217;une &#8216;console&#8217; ou d&#8217;un &#8216;terminal&#8217; via <em>telnet </em>ou <em>ssh </em>par exemple, ouvre une fenêtre textuelle et déclenche un shell par défaut.</p>
<p>Ce shell se termine (et la session utilisateur avec lui) par un logout.</p>
<p>remarque : dans le cas d&#8217;un terminal virtuel , on sortira par &#8216;exit&#8217; (il n&#8217;y a pas eu de véritable connexion&#8230;)</p>
<p>Un prompt en général &#8216;$&#8217; est un signe d&#8217;invite, indiquant que le shell est opérationnel et attend d&#8217;exécuter une commande.</p>
<h3>Quelques commandes utiles</h3>
<blockquote><p>$&gt; whoami : qui je suis ?<br />
$&gt; who : donne des informations sur les utilisateurs présent<br />
$&gt; whereis toto (ou which toto) : où se trouve la commande &#8216;toto&#8217;<br />
$&gt; alias raccourci=commande : crée un raccourci pour la commande &#8216;commande&#8217;<br />
$&gt; uname [-a] : des infos sur l&#8217;OS<br />
$&gt; date : donne l&#8217;heure et la date<br />
$&gt; echo : affiche du texte<br />
$&gt; clear : efface le terminal<br />
$&gt; ls : liste les fichiers du répertoire courant<br />
$&gt; pwd : indique le répertoire courant<br />
$&gt;  more nomFich : liste le fichier nomFich sur l&#8217;écran avec arrêt chaque page-écran</p></blockquote>
<h3>Un peu d&#8217;aide&#8230;</h3>
<p>Il existe un certain nombre de moyen sous Unix pour obtenir de l&#8217;aide, sur la syntaxe des commandes, mais aussi sur le shell en général.</p>
<p>Voici quelques exemples de commandes pouvant vous apporter de l&#8217;aide :</p>
<blockquote><p>$&gt; whatis nom_commande : donne des infos sur les commandes internes<br />
$&gt; man nom_commande : donne des informations sur commande<br />
$&gt; help : liste les commandes internes<br />
$&gt; nom_commande &#8211;help  : &#8230; si cette option existe !<br />
$&gt; nom_commande -h : &#8230; idem</p></blockquote>
<p>Et maintenant &#8230; A VOUS !</p>
<ul>
<li>Connectez vous sur la machine&#8230;</li>
<li>Quel Unix utilise t-on ?</li>
<li>Quel est votre répertoire de travail ?</li>
<li>Quels fichiers contient-il ?</li>
<li>Trouver la commande qui liste les fichiers cachés du répertoire&#8230;et afficher leur nom, puis leur contenu !</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/coursunix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/coursunix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/coursunix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/coursunix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/coursunix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/coursunix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/coursunix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/coursunix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/coursunix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/coursunix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/coursunix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/coursunix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/coursunix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/coursunix.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=10&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://coursunix.wordpress.com/2008/10/29/premier-pas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c8af8e11781178ca2e90c056d4abd87?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ddelegli</media:title>
		</media:content>
	</item>
		<item>
		<title>Redirections d&#8217;entrée sorties</title>
		<link>http://coursunix.wordpress.com/2008/10/28/redirections-dentree-sorties/</link>
		<comments>http://coursunix.wordpress.com/2008/10/28/redirections-dentree-sorties/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 10:08:55 +0000</pubDate>
		<dc:creator>ddelegli</dc:creator>
				<category><![CDATA[2. Langage de commande]]></category>

		<guid isPermaLink="false">http://coursunix.wordpress.com/?p=12</guid>
		<description><![CDATA[Les flux standards Chaque programme possède 3 flux standards qu&#8217;il utilise pour communiquer en général avec l&#8217;utilisateur : * l&#8217;entrée standard nommée stdin (identifiant 0) : il s&#8217;agit par défaut du clavier, * la sortie standard nommée stdout (identifiant 1) : il s&#8217;agit par défaut de l&#8217;écran, * la sortie d&#8217;erreur standard nommée stderr (identifiant [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=12&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Les flux standards</h3>
<p>Chaque programme possède 3 flux standards qu&#8217;il utilise pour communiquer en général avec l&#8217;utilisateur :</p>
<p>* l&#8217;entrée standard nommée stdin (identifiant 0) : il s&#8217;agit par défaut du clavier,<br />
* la sortie standard nommée stdout (identifiant 1) : il s&#8217;agit par défaut de l&#8217;écran,<br />
* la sortie d&#8217;erreur standard nommée stderr (identifiant 2) : il s&#8217;agit par défaut de l&#8217;écran.</p>
<p>rem : un programme peut aussi intéragir avec d&#8217;autre programmes (pipe)</p>
<h3>Redirections</h3>
<p>Ces flux peuvent etre redirigés vers des fichiers ou&#8230;d&#8217;autres flux (grace au caractere &#8216;&amp;&#8217;)<br />
&lt; ou 0&lt; indique une redirection d&#8217;entree<br />
&gt; ou 1&gt; indique implicitement stdout<br />
&gt;&gt; indique une redirection de sortie sans ecraser le fichier (mode &#8216; ajouter&#8217; ou &#8216;append&#8217;)<br />
2&gt; indique une redirection de stderr (&gt; tout court serait ambigu)<br />
2&gt;&amp;1 indique une redirection du flux stderr vers stdout<br />
1&gt;&amp;2 indique une redirection du flux stderr vers stdout</p>
<p>note : on ne peut par rediriger VERS le clavier !!<br />
note : 2&gt;&amp;1 n&#8217;est utile que si stdout est lui meme redirigé, car par defaut stderr va dans stdout !<br />
exemples simples</p>
<blockquote><p>$&gt; # on concatene 2 fichiers dans un troisième</p>
<p>$&gt; cat fich1 fich2 &gt; fich1plus2<br />
$&gt; # on renvoie les erreurs de compilation dans un fichier<br />
$&gt;  cc -c monFich.c 2&gt; erreurs<br />
$&gt; # on récupère des paramètres a partir d&#8217;un fichier<br />
$&gt;  monProg &lt; defaultValues<br />
$&gt;  # on redirige, et on ajoute un message a la fin du fichier<br />
$&gt; cat  f1 f2 &gt;  s1.txt</p>
<p>$&gt; echo &#8220;c&#8217;est termine&#8221; &gt;&gt; s1.txt</p></blockquote>
<p>On va voir ci après quelques application un peu moins simples&#8230;</p>
<p>On crée un fichier  redir.sh avec vi, qui lit des données (un nom de fichier) affiche une sortie (le contenu du fichier) ou une erreur (si le fichier n&#8217;existe pas)</p>
<blockquote><p># redir.sh<br />
echo &#8220;Entrer un nom de fichier&#8221;<br />
read NOM<br />
cat $NOM</p></blockquote>
<h3>Flux standards</h3>
<p>$&gt; redir.sh<br />
Entrer un nom de fichier<br />
bonjour.sh<br />
echo bonjour<br />
# message d&#8217;invite a l&#8221;ecran par defaut<br />
# lecture du clavier par défaut<br />
# le fichier  existe affichage du contenu a l&#8217;ecran par defaut<br />
# si le fichier n&#8217;existait pas, erreur a l&#8217;ecran par defaut</p>
<h3>Redirection vers ou de fichier</h3>
<p>essai avec redirections simple des 3 fluxs vers des  fichiers<br />
redir.sh 0&lt;entree.txt 1&gt;sortie.txt 2&gt;erreur.txt</p>
<p>note : on peut utiliser un pseudo fichier poubelle pour envoyer les sorties&#8230;.nulle part. Ce fichier s&#8217;appelle &#8216;/dev/null&#8217;s<br />
redir.sh 0&lt;entree.txt 1&gt;/dev/null 2&gt;/dev/null<br />
&#8230;le programme est muet dans tous les cas !</p>
<h3>Redirections de flux vers flux</h3>
<p># les erreurs vont dans erreur.txt mais la sortie correcte AUSSI !<br />
redir.sh 0&lt;entree.txt 2&gt;erreur.txt 1&gt;&amp;2<br />
# attention a l&#8217;ordre !<br />
redir.sh 0&lt;entree.txt 1&gt;&amp;2 2&gt;erreur.txt<br />
# envoie la sortie vers les erreurs (par defaut stderr) et ENSUITE les erreurs dans un fichiers</p>
<p>redir.sh 0&lt;entree.txt 2&gt;&amp;1 &gt;sortie.txt<br />
# inutile !<br />
redir.sh 0&lt;entree.txt &gt;sortie.txt 2&gt;&amp;1<br />
# renvoie tout vers sortie.txt , meme les erreurs</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/coursunix.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/coursunix.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/coursunix.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/coursunix.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/coursunix.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/coursunix.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/coursunix.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/coursunix.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/coursunix.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/coursunix.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/coursunix.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/coursunix.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/coursunix.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/coursunix.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coursunix.wordpress.com&amp;blog=5652325&amp;post=12&amp;subd=coursunix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://coursunix.wordpress.com/2008/10/28/redirections-dentree-sorties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c8af8e11781178ca2e90c056d4abd87?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ddelegli</media:title>
		</media:content>
	</item>
	</channel>
</rss>
