<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épertoire courant</td>
<td><code>ls</code></td>
</tr>
<tr>
<th>absolu</th>
<td>Commence par le caractère <code>/</code><br>Défini à partir de la racine</td>
<td><code>ls /users/dupont/public_html</code></td>
</tr>
<tr>
<th>relatif, en descendant<br>à partir du répertoire courant</th>
<td>Commence par un nom de répertoire</td>
<td><code>ls Server</code></td>
</tr>
<tr>
<th>relatif, en remontant<br>à partir du répertoire courant</th>
<td>Commence par <code>..</code>, ré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 être inclue dans un chemin
absolu ou relatif.<br>Par exemple : <code>ls $DILIB</code>
</p>
<hr>
<address><a href="mailto:philippe.houdry@inist.fr">Philippe.Houdry@inist.fr</a></address>
</body>
</html>