From 849f308e9506bb9f492114542cf1d5b6fb0dd9d9 Mon Sep 17 00:00:00 2001 From: Mickael Asseline Date: Wed, 19 May 2021 09:54:47 +0000 Subject: [PATCH] docs: update Linux/Commandes --- Linux/Commandes.html | 50 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/Linux/Commandes.html b/Linux/Commandes.html index 102fd10..089992b 100644 --- a/Linux/Commandes.html +++ b/Linux/Commandes.html @@ -2,7 +2,7 @@ title: Commandes utiles description: published: true -date: 2021-05-19T09:41:16.434Z +date: 2021-05-19T09:54:46.206Z tags: editor: ckeditor dateCreated: 2021-04-28T18:24:13.228Z @@ -276,6 +276,52 @@ dateCreated: 2021-04-28T18:24:13.228Z +

find - Chercher un fichier

+

Permet de trouver un fichier précis ou une liste de fichier

+
find <DOSSIER> <OPTIONS> -iname "<FICHIER>"
+

 

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OptionCommentaire
-iname <FICHIER>Cherche par nom de fichier
-name <FICHIER>Cherche par nom de fichier (sensible à la casse)
-type f/dCherche un certain type (f = fichier - d = dossier)
-size +/- <TAILLE>Cherche en fonction de la taille
-user <UTILISATEUR>Cherche en fonction de l'utilisateur
-group <GROUPE>Cherche en fonction du groupe
-perm <PERMISSION>Cherche en fonction de la permission
+
+

Exemple : Chercher des fichier de plus de 200ko qui ne contienne pas le dans le nom “2015” dans le dossier “/photosdevacances”

+
find /photosdevacances -type f -size +200k -not -iname "*2015*"

head - Afficher l'en-tête d'un fichier

Affiche l'en-tête d'un fichier

head <option> fichier
@@ -291,7 +337,7 @@ dateCreated: 2021-04-28T18:24:13.228Z -n - spécifie le nombre de ligne à afficher + Spécifie le nombre de ligne à afficher