1
0
Bifurcation 0
miroir de https://github.com/PAPAMICA/Wiki-Tech.io.git synchronisé 2024-07-07 02:20:13 +02:00

docs: update Linux/Commandes

Cette révision appartient à :
Mickael Asseline 2021-05-08 16:10:06 +00:00 révisé par Mickael Asseline
Parent ebc6d8a330
révision e83bf5c91d

Voir le fichier

@ -2,7 +2,7 @@
title: Commandes utiles
description:
published: true
date: 2021-05-08T16:08:11.018Z
date: 2021-05-08T16:10:04.748Z
tags:
editor: ckeditor
dateCreated: 2021-04-28T18:24:13.228Z
@ -307,22 +307,24 @@ dateCreated: 2021-04-28T18:24:13.228Z
</figure>
<p>&nbsp;</p>
<h2>less - Afficher un fichier page par page</h2>
<p><strong>&nbsp;affiche le fichier page par page. C'est donc pratique pour les longs fichiers.</strong></p>
<p><strong>&nbsp;Affiche le fichier page par page. C'est donc pratique pour les longs fichiers.</strong></p>
<pre><code class="language-plaintext">less fichier</code></pre>
<p>&nbsp;</p>
<h2><strong>head - A</strong>fficher l'en-tête d'un fichier</h2>
<p><strong>affiche l'en-tête d'un fichier</strong></p>
<p><strong>Affiche l'en-tête d'un fichier</strong></p>
<pre><code class="language-plaintext">head &lt;option&gt; fichier</code></pre>
<p>&nbsp;</p>
<figure class="table">
<table>
<thead>
<tr>
<th>Option</th>
<th>Commentaire</th>
</tr>
</thead>
<tbody>
<tr>
<td>Option</td>
<td>Commentaire</td>
</tr>
<tr>
<td><code>-n</code></td>
<td style="text-align:center;"><code>-n</code></td>
<td>spécifie le nombre de ligne à afficher</td>
</tr>
</tbody>
@ -332,15 +334,18 @@ dateCreated: 2021-04-28T18:24:13.228Z
<h2>tail - Afficher la fin d'un fichier</h2>
<p><strong>Affiche la fin d'un fichier</strong></p>
<pre><code class="language-plaintext">tail &lt;option&gt; fichier</code></pre>
<p>&nbsp;</p>
<figure class="table">
<table>
<thead>
<tr>
<th>Option</th>
<th>Commentaire</th>
</tr>
</thead>
<tbody>
<tr>
<td>Option</td>
<td>Commentaire</td>
</tr>
<tr>
<td><code>-f</code></td>
<td style="text-align:center;"><code>-f</code></td>
<td>permet de mettre à jour en temps réel l'affichage de la fin du fichier</td>
</tr>
</tbody>