Newer
Older
cours-unix-shell / UnixShell_cours2018 / pathsUnix.fre.html
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <link REL="STYLESHEET" TYPE="text/css" TITLE="Style DILIB" HREF="../../dilib.css">
    <title>Chemins relatif et absolu - UNIX</title>
    <style type="text/css">
      Q     { font-style: italic; }
      TABLE { text-align: center; }
    </style>
  </head>

  <body>

    <h1>Chemins (paths)</h1>
    <table bgcolor="white" border="1" class="var" style="margin-left:0;">
	<tr>
	<th>vide</th>
	<td>R&eacute;pertoire courant</td>
	<td><code>ls</code></td>
	</tr>
	
	<tr>
	<th>absolu</th>
	<td>Commence par le caract&egrave;re <code>/</code><br>D&eacute;fini &agrave; partir de la racine</td>

	<td><code>ls /users/dupont/public_html</code></td>
	</tr>
	
	<tr>
	<th>relatif, en descendant<br>&agrave; partir du r&eacute;pertoire courant</th>
	<td>Commence par un nom de r&eacute;pertoire</td>

	<td><code>ls Server</code></td>
	</tr>
	
	<tr>
	<th>relatif, en remontant<br>&agrave; partir du r&eacute;pertoire courant</th>
	<td>Commence par <code>..</code>, r&eacute;pertoire parent</td>
	<td><code>ls ../public_html</code></td>
	</tr>
    </table>

    <p>
      Comme nous le verrons par la suite, une variable d'environnement
      contenant un chemin unix peut &ecirc;tre inclue dans un chemin
      absolu ou relatif.<br>Par exemple&nbsp;:&nbsp;<code>ls $DILIB</code>
    </p>

    <hr>
    <address><a href="mailto:philippe.houdry@inist.fr">Philippe.Houdry@inist.fr</a></address>
  </body>
</html>