Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
elearning:workbooks:centos:6:utilisateur:l104 [2020/07/30 10:42] – admin | elearning:workbooks:centos:6:utilisateur:l104 [2023/02/14 08:25] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~PDF: | ~~PDF: | ||
+ | |||
+ | Version : **2022.01** | ||
Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
- | ======LRF104 | + | ======LCF104 |
+ | |||
+ | =====Contenu du Module===== | ||
+ | |||
+ | * **LCF104 - Commandes de Base et Outils de Manipulation de Fichiers Texte** | ||
+ | * Contenu du Module | ||
+ | * LAB #1 - 38 Commandes de Base | ||
+ | * 1.1 - La commande stty | ||
+ | * 1.2 - La commande date | ||
+ | * 1.3 - La commande who | ||
+ | * 1.4 - La commande df | ||
+ | * 1.5 - La commande free | ||
+ | * 1.6 - La commande whoami | ||
+ | * 1.7 - La commande pwd | ||
+ | * 1.8 - La commande cd | ||
+ | * 1.9 - La commande ls | ||
+ | * 1.10 - La commande lsof | ||
+ | * 1.11 - La commande touch | ||
+ | * 1.12 - La commande echo | ||
+ | * 1.13 - La commande cp | ||
+ | * 1.14 - La commande file | ||
+ | * 1.15 - La commande cat | ||
+ | * 1.16 - La commande mv | ||
+ | * 1.17 - La commande mkdir | ||
+ | * 1.18 - La commande rmdir | ||
+ | * 1.19 - La commande rm | ||
+ | * 1.20 - La commande sort | ||
+ | * 1.21 - La commande more | ||
+ | * 1.22 - La commande less | ||
+ | * 1.23 - La commande find | ||
+ | * 1.24 - La commande su | ||
+ | * 1.25 - Les commandes locate et updatedb | ||
+ | * 1.26 - La commande whereis | ||
+ | * 1.27 - La commande which | ||
+ | * 1.28 - La commande uptime | ||
+ | * 1.29 - La commande w | ||
+ | * 1.30 - La commande uname | ||
+ | * 1.31 - La commande du | ||
+ | * 1.32 - La commande clear | ||
+ | * 1.33 - La commande exit | ||
+ | * 1.34 - La commande logout | ||
+ | * 1.35 - La commande sleep | ||
+ | * 1.36 - La Commande wall | ||
+ | * 1.37 - The seq Command | ||
+ | * 1.38 - La Commande screen | ||
+ | * LAB #2 - Options et Arguments | ||
+ | * LAB #3 - Expressions Régulières | ||
+ | * ERb | ||
+ | * ERe | ||
+ | * Outils de Manipulation de Fichiers Texte | ||
+ | * Présentation des Commandes grep, egrep et fgrep | ||
+ | * La commande grep | ||
+ | * La Commande egrep | ||
+ | * La Commande fgrep | ||
+ | * LAB #4 - Utiliser grep, egrep et fgrep | ||
+ | * Présentation de la Commande sed | ||
+ | * LAB #5 - Utiliser la Commande sed | ||
+ | * Présentation de La Commande awk | ||
+ | * Découpage en champs | ||
+ | * Critères | ||
+ | * Une expression régulière valide pour la ligne | ||
+ | * Une expression régulière valide pour un champ | ||
+ | * Une comparaison | ||
+ | * Un opérateur logique | ||
+ | * Une variable interne | ||
+ | * Scripts awk | ||
+ | * La Fonction printf | ||
+ | * Structures de Contrôle | ||
+ | * if | ||
+ | * for | ||
+ | * while | ||
+ | * do-while | ||
+ | * LAB #6 - Utiliser la Commande awk | ||
+ | * LAB #7 -Autres Commandes Utiles | ||
+ | * 7.1 - La Commande expand | ||
+ | * 7.2 - La Commande unexpand | ||
+ | * 7.3 - La Commande cut | ||
+ | * 7.4 - La Commande uniq | ||
+ | * 7.5 - La Commande tr | ||
+ | * 7.6 - La Commande paste | ||
+ | * 7.7 - La Commande split | ||
+ | * 7.8 - La Commande diff | ||
+ | * 7.9 - La Commande cmp | ||
+ | * 7.10 - La commande patch | ||
+ | * 7.11 - La commande strings | ||
+ | * 7.12 - La commande comm | ||
+ | * 7.13 - La commande head | ||
+ | * 7.14 - La commande tail | ||
+ | * LAB #8 - Utiliser les commandes ifconfig, grep, tr et cut pour isoler l' | ||
+ | * LAB #9 - Utiliser les commandes ip, grep, awk et sed pour isoler l' | ||
+ | |||
+ | =====LAB #1 - 38 Commandes de Base===== | ||
<WRAP center round todo> | <WRAP center round todo> | ||
**A faire** - Vous êtes actuellement connecté(e) en tant que root dans votre terminal. Avant de procéder plus loin, tapez la commande exit et appuyez sur la touch < | **A faire** - Vous êtes actuellement connecté(e) en tant que root dans votre terminal. Avant de procéder plus loin, tapez la commande exit et appuyez sur la touch < | ||
</ | </ | ||
- | |||
- | =====LAB #1 - 38 Commandes de Base===== | ||
====1.1 - La commande stty===== | ====1.1 - La commande stty===== | ||
Ligne 652: | Ligne 743: | ||
La commande **locate** sert à rechercher un ou des fichiers dans l' | La commande **locate** sert à rechercher un ou des fichiers dans l' | ||
- | |||
- | La base de données par défaut est **/ | ||
- | |||
- | < | ||
- | [root@centos7 ~]# ls -l / | ||
- | -rw-r-----. 1 root slocate 3887117 Sep 29 03:46 / | ||
- | </ | ||
- | |||
- | <WRAP center round important> | ||
- | **Important** : Pour plus d' | ||
- | </ | ||
La commande **updatedb** peut être configurée en éditant son fichier de configuration **/ | La commande **updatedb** peut être configurée en éditant son fichier de configuration **/ | ||
Ligne 697: | Ligne 777: | ||
/ | / | ||
</ | </ | ||
+ | |||
+ | La base de données par défaut est **/ | ||
+ | |||
+ | < | ||
+ | [root@centos7 ~]# ls -l / | ||
+ | -rw-r-----. 1 root slocate 3887117 Sep 29 03:46 / | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important> | ||
+ | **Important** : Pour plus d' | ||
+ | </ | ||
===Options des commandes=== | ===Options des commandes=== | ||
Ligne 855: | Ligne 946: | ||
< | < | ||
[root@centos7 ~]# exit | [root@centos7 ~]# exit | ||
- | logou | + | logout |
[trainee@centos7 ~]$ | [trainee@centos7 ~]$ | ||
</ | </ | ||
Ligne 892: | Ligne 983: | ||
< | < | ||
+ | [trainee@centos7 ~]$ su - | ||
+ | Password: fenestros | ||
[root@centos7 ~]# wall this is a message from root | [root@centos7 ~]# wall this is a message from root | ||
[root@centos7 ~]# | [root@centos7 ~]# | ||
Ligne 930: | Ligne 1023: | ||
</ | </ | ||
- | ====1.37 - The seq Command==== | + | ====1.37 - La Commande |
La commande **seq** affiche une séquence de nombres du PREMIER au DERNIER par pas d'un INCREMENT. La commande prend la forme suivante : | La commande **seq** affiche une séquence de nombres du PREMIER au DERNIER par pas d'un INCREMENT. La commande prend la forme suivante : | ||
Ligne 1312: | Ligne 1405: | ||
</ | </ | ||
- | ====LAB #4 - Utiliser grep, egrep et fgrep==== | + | ===LAB #4 - Utiliser grep, egrep et fgrep=== |
Téléchargez le fichier **greptest** vers votre machine virtuelle en double-cliquant sur le titre ci-dessous : | Téléchargez le fichier **greptest** vers votre machine virtuelle en double-cliquant sur le titre ci-dessous : | ||
Ligne 1551: | Ligne 1644: | ||
</ | </ | ||
- | ====LAB #5 - Utiliser la Commande sed==== | + | ===LAB #5 - Utiliser la Commande sed=== |
La commande **d** de sed permet de ne pas afficher certaines lignes à l' | La commande **d** de sed permet de ne pas afficher certaines lignes à l' | ||
Ligne 1991: | Ligne 2084: | ||
</ | </ | ||
- | ====LAB #6 - Utiliser la Commande awk==== | + | ===LAB #6 - Utiliser la Commande awk=== |
Pour illustrer l' | Pour illustrer l' | ||
Ligne 3421: | Ligne 3514: | ||
</ | </ | ||
- | ===LAB #8 - Utiliser les commandes ifconfig, grep, tr et cut pour isoler l' | + | ====LAB #8 - Utiliser les commandes ifconfig, grep, tr et cut pour isoler l' |
< | < | ||
Ligne 3452: | Ligne 3545: | ||
</ | </ | ||
- | ===LAB #9 - Utiliser les commandes ip, grep, awk et sed pour isoler l' | + | ====LAB #9 - Utiliser les commandes ip, grep, awk et sed pour isoler l' |
< | < | ||
Ligne 3478: | Ligne 3571: | ||
----- | ----- | ||
- | < | + | |
- | <div align=" | + | Copyright © 2023 Hugh Norris. |
- | Copyright © 2020 Hugh Norris. | + | |
- | </ | + |