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:start [2020/08/08 11:35] – admin | elearning:workbooks:centos:6:utilisateur:start [2023/02/14 10:26] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ======LCF100 - CentOS Linux (RHEL) - User===== | + | ~~PDF: |
- | =====Importation de la Machine Virtuelle===== | + | Version : **2022.01** |
- | Ouvrez VirtualBox et importez la machine virtuelle **CentOS_7** | + | Dernière mise-à-jour |
- | Fichier > Importer un appareil virtuel ... | + | ======LCF100 - RHEL/ |
- | La machine virtuelle est configurée de la façon suivante : | + | =====Contenu du Module===== |
- | ^ Machine ^ Adresse IP ^ Redirection de Port ^ | + | * **LCF100 - RHEL/ |
- | | CentOS_7 | 10.0.2.15 | 3022 | | + | * Contenu du Module |
+ | * Prérequis | ||
+ | * Matériel | ||
+ | * Logiciels | ||
+ | * Internet | ||
+ | * Programme de la Formation | ||
- | Les noms d' | + | =====Prérequis===== |
- | ^ Utilisateur ^ Mot de Passe ^ | + | ==== Matériel==== |
- | | trainee | trainee | | + | |
- | | root | fenestros | | + | |
- | =====Démarrage | + | * Un poste (MacOS, Linux, Windows(tm) ou Solaris(tm)), |
+ | * Clavier AZERTY FR ou QWERTY US, | ||
+ | * 4 Go de RAM minimum, | ||
- | Cliquez sur la machine virtuelle **CentOS_7**, | + | ====Logiciels==== |
- | Si votre machine virtuelle ne démarre pas en vous indiquant une erreur de la prise en charge de l'USB, cliquez sur : | + | * Web Chrome version 72+ ou |
+ | * Microsoft Edge version 79+ ou | ||
+ | * Firefox version 65+. | ||
- | Machine > Configuration > USB > Cochez **Contrôleur USB 1.1 (OHCI)** > OK | + | ====Internet==== |
- | Si votre machine virtuelle ne démarre pas en vous donnant une autre erreur : | + | * Un accès à Internet **rapide** (4G minimum) **SANS** passer par un proxy, |
- | Vérifiez que la prise en charge | + | =====Programme |
- | =====Connexion à la Machine Virtuelle avec SSH===== | + | ====Jour #1 - 7 heures==== |
- | ====Linux==== | + | * **LCF100 - RHEL/ |
+ | * Contenu du Module | ||
+ | * Prérequis | ||
+ | * Matériel | ||
+ | * Logiciels | ||
+ | * Internet | ||
+ | * Programme de la Formation | ||
- | Ouvrez un terminal et tapez la commande | + | * **LCF101 - Système de Fichiers** - 2 heures |
+ | * Linux File Hierarchy System | ||
+ | * RHEL/CentOS 6 | ||
+ | * RHEL/CentOS 7 | ||
+ | * Types de Fichiers | ||
+ | * La Commande mount | ||
+ | * Options de la commande | ||
+ | * Le Fichier / | ||
+ | * Comprendre le fichier / | ||
+ | * Options de Montage | ||
+ | * La Commande umount | ||
+ | * Options de la commande | ||
+ | * Système de Fichiers Unix | ||
+ | * Superbloc | ||
+ | * Inodes | ||
+ | * Blocs de données | ||
+ | * Liens Physiques | ||
+ | * Liens Symboliques | ||
- | < | + | * **LCF102 - L’Éditeur VI** - 2 heures |
- | $ ssh -l trainee localhost | + | * Présentation |
- | </ | + | * LAB #1 - Créer, ouvrir et fermer des fichiers |
+ | * 1.1 - Commandes | ||
+ | * 1.2 - Créer un nouveau fichier avec VI | ||
+ | * 1.3 - Ouvrir un fichier en mode lecture seule avec la commande view | ||
+ | * 1.4 - Ouvrir un fichier en mode lecture-écriture avec la commande vi | ||
+ | * LAB #2 - La Commande set | ||
+ | * 2.1 - Commandes | ||
+ | * 2.2 - Activer la numérotation des lignes avec la commande set | ||
+ | * LAB #3 - Se Déplacer dans un Fichier | ||
+ | * 3.1 - Commandes | ||
+ | * LAB #4 - Insertion de Texte | ||
+ | * 4.1 - Commandes | ||
+ | * 4.2 - Insérer du texte | ||
+ | * LAB #5 - Recherche de Texte | ||
+ | * 5.1 - Commandes | ||
+ | * 5.2 - Rechercher et remplacer du texte | ||
+ | * LAB #6 - Suppression de Texte | ||
+ | * 6.1 - Commandes | ||
+ | * 6.2 - Supprimer des lignes | ||
+ | * LAB #7 -Copier, Couper et Coller | ||
+ | * 7.1 - Commandes | ||
+ | * 7.2 - Copier, couper et coller du texte | ||
+ | * LAB #8 -Configuration d'une Interface VI Personnelle | ||
- | Tapez **yes** à la question suivante | + | |
+ | * L'Aide des Commandes Externes au Shell | ||
+ | * L'Aide des Commandes Internes du Shell | ||
+ | * La Commande man | ||
+ | * La Commande apropos | ||
+ | * Les Commandes makewhatis | ||
+ | * Les Commandes mandb et whatis | ||
+ | * La Commande info | ||
- | < | + | ====Jour #2 - 7 heures==== |
- | The authenticity of host ' | + | |
- | ECDSA key fingerprint is SHA256: | + | |
- | Are you sure you want to continue connecting (yes/no)? yes | + | |
- | </ | + | |
- | Saisissez le mot de passe **trainee** : | + | * **LCF104 - Commandes |
+ | * 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 - La Commande seq | ||
+ | * 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 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
- | < | + | * **LCF105 - La Ligne de Commande** - 3 heures |
- | Warning: Permanently added '[localhost]:3022' (ECDSA) to the list of known hosts. | + | * Le Shell |
- | trainee@localhost's password: trainee | + | * Le Shell /bin/bash |
- | </code> | + | * Les Commandes Internes et Externes au shell |
+ | * Les alias | ||
+ | * Le Prompt | ||
+ | * Rappeler des Commandes | ||
+ | * Générer les fins de noms de fichiers | ||
+ | * Le shell interactif | ||
+ | * Caractère * | ||
+ | * Caractère ? | ||
+ | * Caractères | ||
+ | * L'option extglob | ||
+ | * ?(expression) | ||
+ | * *(expression) | ||
+ | * +(expression) | ||
+ | * @(expression) | ||
+ | * !(expression) | ||
+ | * Caractères d'Échappement | ||
+ | * Codes Retour | ||
+ | * Redirections | ||
+ | * Pipes | ||
+ | * Substitutions de Commandes | ||
+ | * Chaînage de Commandes | ||
+ | * Affichage des variables du shell | ||
+ | * Les variables principales | ||
+ | * Les Variables de Régionalisation et d' | ||
+ | * Les variables spéciales | ||
+ | * La Commande env | ||
+ | * Options du Shell Bash | ||
+ | * Exemples | ||
+ | * noclobber | ||
+ | * noglob | ||
+ | * nounset | ||
+ | * Les Scripts Shell | ||
+ | * Exécution | ||
+ | * La commande read | ||
+ | * Code de retour | ||
+ | * La variable IFS | ||
+ | * La commande test | ||
+ | * Tests de Fichiers | ||
+ | * Tests de chaînes de caractère | ||
+ | * Tests sur des nombres | ||
+ | * Les opérateurs | ||
+ | * Tests d' | ||
+ | * La commande %%[[ expression ]]%% | ||
+ | * Opérateurs du shell | ||
+ | * L' | ||
+ | * La commande expr | ||
+ | * Opérateurs Arithmétiques | ||
+ | * Opérateurs de Comparaison | ||
+ | * Opérateurs Logiques | ||
+ | * La commande let | ||
+ | * Opérateurs Arithmétiques | ||
+ | * Opérateurs de comparaison | ||
+ | * Opérateurs Logiques | ||
+ | * Opérateurs travaillant sur les bits | ||
+ | * Structures de contrôle | ||
+ | * If | ||
+ | * case | ||
+ | * Exemple | ||
+ | * Boucles | ||
+ | * for | ||
+ | * while | ||
+ | * Exemple | ||
+ | * Scripts de Démarrage | ||
+ | * LAB #1- Scripts de Démarrage | ||
+ | * ~/.bash_profile | ||
+ | * ~/.bashrc | ||
- | Vous obtiendrez : | + | * **LCF106 - Validation de la Formation** - 1 heure. |
+ | * Contenu du Module | ||
+ | * Rappel du Programme de la Formation | ||
+ | * Évaluation de la Formation | ||
+ | * Validation des acquis Globale | ||
- | < | + | ----- |
- | trainee@localhost' | + | |
- | Last login: Sun Mar 15 14:24:30 2020 from gateway | + | |
- | [trainee@centos7 ~]$ | + | |
- | </ | + | |
- | ====MacOS==== | + | Copyright © 2023 Hugh Norris - Document non-contractuel. Le programme peut être modifié sans préavis. |
- | Ouvrez un terminal et tapez la commande suivante : | ||
- | |||
- | < | ||
- | $ ssh -l trainee localhost -p 3022 | ||
- | </ | ||
- | |||
- | Acceptez la **clef**. | ||
- | |||
- | Saisissez le mot de passe **trainee**. | ||
- | |||
- | ====Windows 10 avec le Client SSH==== | ||
- | |||
- | Lancez **CMD** et tapez la commande suivante : | ||
- | |||
- | < | ||
- | $ ssh -l trainee localhost -p 3022 | ||
- | </ | ||
- | |||
- | Acceptez la **clef**. | ||
- | |||
- | Saisissez le mot de passe **trainee**. | ||
- | |||
- | ====Windows 7 et Windows 10 sans le Client SSH==== | ||
- | |||
- | Ouvrez **putty** et renseignez les informations suivantes : | ||
- | |||
- | * Host Name --> localhost | ||
- | * Port --> 3022 | ||
- | * Saved Sessions --> CentOS7 | ||
- | |||
- | Cliquez sur le bouton **Save** puis double-cliquez sur le nom **CentOS7** dans la liste des **Saved Sessions** : | ||
- | |||
- | {{ : | ||
- | |||
- | Acceptez la clef en cliquant sur le bouton **Accept** : | ||
- | |||
- | {{ : | ||
- | |||
- | Connectez-vous en tant que **trainee** puis saisissez le mot de passe **trainee** et appuyez sur la touche [Entrée] : | ||
- | |||
- | {{ : |