From aeeb331f9d88b01cab4050e6bbe9bf6b81416bc3 Mon Sep 17 00:00:00 2001 From: ngwalang Date: Tue, 27 Sep 2022 16:23:37 +0200 Subject: [PATCH] Ma progression en date du 27 septembre --- TP01/AA/DIR1/DIR11/.fi112 | 0 TP01/AA/DIR1/DIR11/fi111 | 0 TP01/AA/DIR1/DIR11/fi113 | 0 TP01/AA/DIR1/DIR11/fi31 | 0 TP01/AA/DIR1/fi11 | 0 TP01/AA/DIR3/fi31 | 0 TP01/BB/DIR1/DIR11/.fi112 | 0 TP01/BB/DIR1/DIR11/fi111 | 0 TP01/BB/DIR2/fi21 | 0 TP01/BB/DIR3/fi31 | 0 TP01/BB/DIR3/fi32 | 0 TP01/IV.txt | 3 +++ TP02/FT6 | 2 ++ TP02/FichierTest3 | 2 ++ TP02/FichierTest4 | 0 TP02/fi | 0 TP02/fifi | 0 TP02/tp02-reponses.txt | 36 ++++++++++++++++++++++++++++++++++++ TP03/TP03.txt | 22 ++++++++++++++++++++++ TP03/y.txt | 0 20 files changed, 65 insertions(+) create mode 100644 TP01/AA/DIR1/DIR11/.fi112 create mode 100644 TP01/AA/DIR1/DIR11/fi111 create mode 100644 TP01/AA/DIR1/DIR11/fi113 create mode 100644 TP01/AA/DIR1/DIR11/fi31 create mode 100644 TP01/AA/DIR1/fi11 create mode 100644 TP01/AA/DIR3/fi31 create mode 100644 TP01/BB/DIR1/DIR11/.fi112 create mode 100644 TP01/BB/DIR1/DIR11/fi111 create mode 100644 TP01/BB/DIR2/fi21 create mode 100644 TP01/BB/DIR3/fi31 create mode 100644 TP01/BB/DIR3/fi32 create mode 100644 TP01/IV.txt create mode 100644 TP02/FT6 create mode 100644 TP02/FichierTest3 create mode 100644 TP02/FichierTest4 create mode 100644 TP02/fi create mode 100644 TP02/fifi create mode 100644 TP02/tp02-reponses.txt create mode 100644 TP03/TP03.txt create mode 100644 TP03/y.txt diff --git a/TP01/AA/DIR1/DIR11/.fi112 b/TP01/AA/DIR1/DIR11/.fi112 new file mode 100644 index 0000000..e69de29 diff --git a/TP01/AA/DIR1/DIR11/fi111 b/TP01/AA/DIR1/DIR11/fi111 new file mode 100644 index 0000000..e69de29 diff --git a/TP01/AA/DIR1/DIR11/fi113 b/TP01/AA/DIR1/DIR11/fi113 new file mode 100644 index 0000000..e69de29 diff --git a/TP01/AA/DIR1/DIR11/fi31 b/TP01/AA/DIR1/DIR11/fi31 new file mode 100644 index 0000000..e69de29 diff --git a/TP01/AA/DIR1/fi11 b/TP01/AA/DIR1/fi11 new file mode 100644 index 0000000..e69de29 diff --git a/TP01/AA/DIR3/fi31 b/TP01/AA/DIR3/fi31 new file mode 100644 index 0000000..e69de29 diff --git a/TP01/BB/DIR1/DIR11/.fi112 b/TP01/BB/DIR1/DIR11/.fi112 new file mode 100644 index 0000000..e69de29 diff --git a/TP01/BB/DIR1/DIR11/fi111 b/TP01/BB/DIR1/DIR11/fi111 new file mode 100644 index 0000000..e69de29 diff --git a/TP01/BB/DIR2/fi21 b/TP01/BB/DIR2/fi21 new file mode 100644 index 0000000..e69de29 diff --git a/TP01/BB/DIR3/fi31 b/TP01/BB/DIR3/fi31 new file mode 100644 index 0000000..e69de29 diff --git a/TP01/BB/DIR3/fi32 b/TP01/BB/DIR3/fi32 new file mode 100644 index 0000000..e69de29 diff --git a/TP01/IV.txt b/TP01/IV.txt new file mode 100644 index 0000000..5968e29 --- /dev/null +++ b/TP01/IV.txt @@ -0,0 +1,3 @@ +Question 1) +bash: fi21: command not found +fi21 n'est pas une commande connue par bash, il ne peut donc pas l'interpréter \ No newline at end of file diff --git a/TP02/FT6 b/TP02/FT6 new file mode 100644 index 0000000..0013451 --- /dev/null +++ b/TP02/FT6 @@ -0,0 +1,2 @@ +ls: impossible d'accéder à 'nofi': Aucun fichier ou dossier de ce type +-rw-r--r-- 1 ngwalang students22 0 13 sept. 17:02 fi diff --git a/TP02/FichierTest3 b/TP02/FichierTest3 new file mode 100644 index 0000000..f9264f7 --- /dev/null +++ b/TP02/FichierTest3 @@ -0,0 +1,2 @@ +Hello +World diff --git a/TP02/FichierTest4 b/TP02/FichierTest4 new file mode 100644 index 0000000..e69de29 diff --git a/TP02/fi b/TP02/fi new file mode 100644 index 0000000..e69de29 diff --git a/TP02/fifi b/TP02/fifi new file mode 100644 index 0000000..e69de29 diff --git a/TP02/tp02-reponses.txt b/TP02/tp02-reponses.txt new file mode 100644 index 0000000..5a331c8 --- /dev/null +++ b/TP02/tp02-reponses.txt @@ -0,0 +1,36 @@ +Partie 1 / Question 1) +La commande "echo" affiche une ligne de texte. + +Question 2) +La commande renvoie la ligne de texte "Hello World !" conformément à ce qui lui a été demandé en entrée. + +Question 3) +La commande renvoie un 0, ce qui signifie que le code d'avant a été lancé sans erreurs. + +Question 4) +La commande renvoie fi + +Question 5) +La commande renvoie 0 pour signifier que le code d'avant n'a pas rencontré une erreur à l'éxecution. + +Question 6) +La commande renvoie "-rw-r--r-- 1 ngwalang students22 0 13 sept. 17:02 fi +", soit . + +Question 7) +La commande renvoie 2 pour signaler l'erreur du dossier inexistant que le programme précédent a rencontré à l'éxécution. + +Question 8) +La commande renvoie "ls: impossible d'accéder à 'nofi': Aucun fichier ou dossier de ce type", autrement dit une erreur signalant l'inexistence du dossier + +Question 9) +La commande renvoie 2, signalant que le dernier code éxécuté a rencontré une erreur lors qu'il tournait. + +Pipeline / Question 1) +La commande renvoie "Hello World2!" + +Pipeline / Question 2) +La commande renvoie "Hello World1!" + +Liste / Question 1) + diff --git a/TP03/TP03.txt b/TP03/TP03.txt new file mode 100644 index 0000000..5518f33 --- /dev/null +++ b/TP03/TP03.txt @@ -0,0 +1,22 @@ +Partie 2 / Question 1) +La commande man permet de consulter la documentation +Question 2) +La commande echo $(nom de la variable) répond à la problématique + +Question 4) +La commande read -p répond à la problématique + +Question 5) +La commande echo -n répond à la problématique + +Question 6) +Il faut utiliser "&&" + +Question 7) +read -p "Ecris une valeur" var && echo $var + +Partie 3 / Question 1) +La commande echo -e permet de répondre à la problématique + +Question 2) + diff --git a/TP03/y.txt b/TP03/y.txt new file mode 100644 index 0000000..e69de29