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:linuxscripts:start [2020/01/05 16:17] – modification externe 127.0.0.1 | elearning:linuxscripts:start [2023/07/13 16:59] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | **Version | + | ~~PDF: |
+ | |||
+ | **Version | ||
Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
- | =====Linux Shell : Programmation | + | ======LCF900 - Unix Programmation |
=====Présentation===== | =====Présentation===== | ||
Ligne 11: | Ligne 13: | ||
**Objectif** : Maîtriser les bases du scripting bash/ksh sous Linux. | **Objectif** : Maîtriser les bases du scripting bash/ksh sous Linux. | ||
\\ | \\ | ||
- | **Public** : Utilisateurs | + | **Public** : Utilisateurs |
\\ | \\ | ||
- | **Pré requis** : Aucun. | + | **Pré requis** : Connaître un autre système d' |
\\ | \\ | ||
**Méthode d' | **Méthode d' | ||
Ligne 19: | Ligne 21: | ||
**Validation des acquis** : Évaluations à l'aide de tests auto-correctifs. | **Validation des acquis** : Évaluations à l'aide de tests auto-correctifs. | ||
\\ | \\ | ||
- | **Modalités** : 21 heures. | + | **Modalités** : 3 jours (21h). |
\\ | \\ | ||
- | **Moyens pédagogiquese** : Support | + | **Formateur** : Certifié **[[http:// |
- | \\ | + | |
- | **Ressources** : Machine virtuelle RHEL 7 ou Debian 9 ou Ubuntu 18.04 ou SLES 12 au choix. | + | =====Les Plus de cette Formation===== |
+ | |||
+ | L' | ||
+ | |||
+ | * de mesurer le niveau du stagiaire avant la formation et celui atteint | ||
+ | * de suivre du travail de chaque participant en termes de temps passé dans chaque module grâce à un reporting détaillé. | ||
+ | |||
+ | L' | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | =====Prérequis===== | ||
- | =====Prérequis en Salle===== | + | ==== Matériel==== |
- | * Un poste par apprenant, | + | * Un poste (MacOS, Linux, Windows(tm) ou Solaris(tm)), |
- | * Windows(tm) | + | |
- | * Le mot de passe du compte administrateur de Windows(tm), | + | |
* Clavier AZERTY FR ou QWERTY US, | * Clavier AZERTY FR ou QWERTY US, | ||
- | | + | * 4 Go de RAM minimum, |
- | | + | * Processeur |
- | * Processeur | + | * Un casque ou des écouteurs, |
- | * 8 Go d' | + | * Un micro (optionnel). |
- | * Un accès à Internet rapide **sans** passer par un proxy. | + | |
- | **Important** - Vos postes devraient pouvoir atteindre la page web suivante pour visualiser les cours : [[https:// | + | ====Logiciels==== |
- | N.B. Les stagiaires installeront les logiciels suivants sur les postes : | + | * Web Chrome version 72+ ou |
+ | * Microsoft Edge version 79+ ou | ||
+ | * Firefox version 65+. | ||
- | * Oracle VirtualBox v 6.0 ou plus, | + | ====Internet==== |
- | * Putty, | + | |
- | * WinSCP. | + | * Un accès à Internet **rapide** (4G minimum) **SANS** passer par un proxy, |
+ | * Accès **débloqué** aux ports 80 et 443 à : https:// | ||
=====Programme===== | =====Programme===== | ||
====Jour #1 - 7 heures==== | ====Jour #1 - 7 heures==== | ||
+ | |||
+ | * **Présentation de Linux** - 1 heure. | ||
+ | * De MULTICS aux Guerres d'Unix | ||
+ | * Unix et le PC | ||
+ | * De Minix à Linux | ||
+ | |||
+ | * **L' | ||
+ | * Présentation | ||
+ | * Lancer et Quitter VI | ||
+ | * Set | ||
+ | * Commandes du Curseur | ||
+ | * Insertion de Texte | ||
+ | * Recherche de Texte | ||
+ | * Suppression de Texte | ||
+ | * Copier - Coller | ||
+ | * Couper - Coller | ||
+ | * En cas de problème | ||
+ | * Validation des Acquis | ||
+ | |||
+ | * **48 Commandes de Base** - 4 heures. | ||
+ | * Etude des commandes de base | ||
+ | * La commande stty | ||
+ | * La commande date | ||
+ | * La commande who | ||
+ | * La commande df | ||
+ | * La commande free | ||
+ | * La commande whoami | ||
+ | * La commande pwd | ||
+ | * La commande cd | ||
+ | * La commande ls | ||
+ | * La commande touch | ||
+ | * La commande echo | ||
+ | * La commande cp | ||
+ | * La commande cat | ||
+ | * La commande mv | ||
+ | * La commande mkdir | ||
+ | * La commande rm | ||
+ | * La commande rmdir | ||
+ | * La commande rm | ||
+ | * La commande sort | ||
+ | * La commande more | ||
+ | * La commande less | ||
+ | * La commande find | ||
+ | * La commande su | ||
+ | * La commande updatedb | ||
+ | * La commande whereis | ||
+ | * La commande which | ||
+ | * La commande uptime | ||
+ | * La commande w | ||
+ | * La commande uname | ||
+ | * La commande du | ||
+ | * La commande lsmod | ||
+ | * La commande modprobe | ||
+ | * La commande rmmod | ||
+ | * La commande modinfo | ||
+ | * La commande clear | ||
+ | * La commande exit | ||
+ | * La commande logout | ||
+ | * La commande shutdown | ||
+ | * La commande reboot | ||
+ | * La commande halt | ||
+ | * La commande poweroff | ||
+ | * La commande sleep | ||
+ | * La commande logout | ||
+ | * La commande shutdown | ||
+ | * La commande reboot | ||
+ | * La commande sec | ||
+ | * La commande screen | ||
+ | * Options et arguments | ||
+ | * Validation des Acquis | ||
+ | |||
+ | ====Jour #2 - 7 heures==== | ||
* **Outils de Manipulation de Fichiers Textes** - 4 heures. | * **Outils de Manipulation de Fichiers Textes** - 4 heures. | ||
Ligne 72: | Ligne 160: | ||
* La commande tail | * La commande tail | ||
* Validation des acquis | * Validation des acquis | ||
- | * **Commandes** : stty, date, who, df, free, whoami, pwd, cd, ls, touch, echo, cp, file, cat, mv, mkdir, rmdir, rm, sort, more, find, su, locate, updatedb, whereis, which, uptime, w, uname, du, lsmod, modprobe, rmmod, modinfo, clear, exit, logout, shutdown, reboot, halt, poweroff, sleep, grep, egrep, fgrep, sed, awk, tr, paste, cut, split, diff, cmp, uniq, patch, strings, comm, od, head, tail. | ||
* **La Ligne de Commande** - 3 heures.. | * **La Ligne de Commande** - 3 heures.. | ||
Ligne 86: | Ligne 173: | ||
* Régionalisation et Internationalisation | * Régionalisation et Internationalisation | ||
* Options du shell bash | * Options du shell bash | ||
- | * Les Scripts Shell | + | |
+ | |||
+ | ====Jour #3 - 7 heures==== | ||
+ | |||
+ | * **Les Scripts Shell** - 5 heures | ||
* Exécution | * Exécution | ||
* Les variables spéciales | * Les variables spéciales | ||
Ligne 101: | Ligne 192: | ||
* Boucles | * Boucles | ||
* Scripts de Démarrage | * Scripts de Démarrage | ||
- | * Validation des acquis | + | |
- | * **Commandes** : type, alias, unalias, chsh, history, wc, tee, set, vi, script, read, test, expr, let, if, case, for, while. | + | * Fonction **cree_user**, |
- | + | * Fonction **modif_user**, | |
- | ====Jour #2 - 7 heures==== | + | * Fonction **affiche_user**, |
- | + | * Fonction **cree_liste_user**, | |
- | * **LAB #1** - 3 heures.. | + | * Fonction **cree_group**, |
- | * Automatiser la Gestion des Utilisateurs et Groupes, | + | * Fonction **modif_group**, |
- | * Fonction **cree_user**, | + | * Fonction **delete_group**, |
- | * Fonction **modif_user**, | + | * Fonction **affiche_group**, |
- | * Fonction **affiche_user**, | + | * Menu des choix. |
- | * Fonction **cree_liste_user**, | + | * LAB #2 - Automatiser la Gestion des Sauvegardes, |
- | * Fonction **cree_group**, | + | * Fonction **archive_rep**, |
- | * Fonction **modif_group**, | + | * Fonction **restaure_rep**, |
- | * Fonction **delete_group**, | + | * Fonction **affiche_archive**, |
- | * Fonction **affiche_group**, | + | * Fonction **compress_archive**, |
- | * Menu des choix. | + | * Fonction **decompress_archive**, |
- | + | * Gestion des erreurs. | |
- | * **LAB #2** - 4 heures.. | + | * Validation des acquis |
- | * Automatiser la Gestion des Sauvegardes, | + | |
- | * Fonction **archive_rep**, | + | |
- | * Fonction **restaure_rep**, | + | |
- | * Fonction **affiche_archive**, | + | |
- | * Fonction **compress_archive**, | + | |
- | * Fonction **decompress_archive**, | + | |
- | * Gestion des erreurs. | + | |
- | ----- | + | ---- |
- | < | + | Copyright © 2023 Hugh Norris |
- | <div align=" | + | |
- | Copyright © 2019 Hugh Norris. | + | |
- | </ | + |