From 8780ce3c01a0ba51a27e4c7218a2e3ac2fc8fc8f Mon Sep 17 00:00:00 2001 From: ngwalang Date: Tue, 29 Nov 2022 15:40:14 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A9organisation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SCR1.1/TP01/AA/DIR1/DIR11/.fi112 | 0 SCR1.1/TP01/AA/DIR1/DIR11/fi111 | 0 SCR1.1/TP01/AA/DIR1/DIR11/fi113 | 0 SCR1.1/TP01/AA/DIR1/DIR11/fi31 | 0 SCR1.1/TP01/AA/DIR1/fi11 | 0 SCR1.1/TP01/AA/DIR3/fi31 | 0 SCR1.1/TP01/BB/DIR1/DIR11/.fi112 | 0 SCR1.1/TP01/BB/DIR1/DIR11/fi111 | 0 SCR1.1/TP01/BB/DIR2/fi21 | 0 SCR1.1/TP01/BB/DIR3/fi31 | 0 SCR1.1/TP01/BB/DIR3/fi32 | 0 SCR1.1/TP01/IV.txt | 3 + SCR1.1/TP02/FT6 | 2 + SCR1.1/TP02/FichierTest3 | 2 + SCR1.1/TP02/FichierTest4 | 0 SCR1.1/TP02/fi | 0 SCR1.1/TP02/fifi | 0 SCR1.1/TP02/tp02-reponses.txt | 36 ++ SCR1.1/TP03/TP03.txt | 22 ++ SCR1.1/TP03/y.txt | 0 SCR1.1/TP04/tp04-reponses.txt | 13 + SCR1.1/TP05/tp05-reponses.txt | 51 +++ SCR1.2/TP06/GLOB/11glob22blog3 | 0 SCR1.2/TP06/GLOB/1glob | 0 SCR1.2/TP06/GLOB/1glob22 | 0 SCR1.2/TP06/GLOB/1glob22gloB333 | 0 SCR1.2/TP06/GLOB/gLob/44patterN | 0 SCR1.2/TP06/GLOB/gLob/Pattern4 | 0 SCR1.2/TP06/GLOB/gLob/pAtterN | 0 SCR1.2/TP06/GLOB/gLob/paTTerN/theglobpattern | 0 SCR1.2/TP06/GLOB/gLob/patterN | 0 SCR1.2/TP06/GLOB/gloB1bloG | 0 SCR1.2/TP06/any2dec_inv.sh | 31 ++ SCR1.2/TP06/tp06-reponses.txt | 12 + SCR1.2/TP07/find-output.txt | 160 +++++++++ SCR1.2/TP07/ls-output.txt | 158 +++++++++ SCR1.2/TP07/sort | 316 ++++++++++++++++++ SCR1.2/TP07/tp07-reponses.txt | 13 + SCR1.2/TP08/my_seq.sh | 16 + SCR1.2/TP08/tp08-reponses.txt | 4 + .../kernel/config/AA/BB/CC/50-depmod.install | 8 + .../config/AA/BB/CC/50-mkinitcpio.install | 12 + .../config/AA/BB/CC/90-loaderentry.install | 89 +++++ .../lib/kernel/config/AA/BB/CC/XX/inout.dev | 48 +++ .../lib/kernel/config/AA/BB/CC/atom.install | 16 + .../TREE/lib/kernel/config/AA/BB/CC/inout.dev | 48 +++ .../TREE/lib/kernel/config/AA/BB/CC/play.in | Bin 0 -> 1024 bytes .../lib/kernel/config/AA/BB/CC/settings.sh | 24 ++ .../lib/kernel/config/AA/BB/DD/YY/inout.dev | 48 +++ .../TREE/lib/kernel/config/AA/BB/DD/inout.dev | 48 +++ SCR1.2/TP09/TREE/lib/kernel/config/AA/CC | 48 +++ SCR1.2/TP09/TREE/lib/krb5/plugins/inout.dev | 48 +++ SCR1.2/TP09/TREE/lib/krb5/plugins/play.in | Bin 0 -> 1024 bytes SCR1.2/TP09/TREE/lib/krb5/synch/atom.install | 16 + SCR1.2/TP09/TREE/lib/krb5/synch/settings.sh | 24 ++ .../kernel/config/AA/BB/CC/50-depmod.install | 8 + .../config/AA/BB/CC/50-mkinitcpio.install | 12 + .../config/AA/BB/CC/90-loaderentry.install | 89 +++++ .../lib/kernel/config/AA/BB/CC/XX/inout.dev | 48 +++ .../lib/kernel/config/AA/BB/CC/atom.install | 16 + .../TRee/lib/kernel/config/AA/BB/CC/inout.dev | 48 +++ .../TRee/lib/kernel/config/AA/BB/CC/play.in | Bin 0 -> 1024 bytes .../lib/kernel/config/AA/BB/CC/settings.sh | 24 ++ .../lib/kernel/config/AA/BB/DD/YY/inout.dev | 48 +++ .../TRee/lib/kernel/config/AA/BB/DD/inout.dev | 48 +++ SCR1.2/TP09/TRee/lib/kernel/config/AA/CC | 48 +++ SCR1.2/TP09/TRee/lib/krb5/plugins/inout.dev | 48 +++ SCR1.2/TP09/TRee/lib/krb5/plugins/play.in | Bin 0 -> 1024 bytes SCR1.2/TP09/TRee/lib/krb5/synch/atom.install | 16 + SCR1.2/TP09/TRee/lib/krb5/synch/settings.sh | 24 ++ SCR1.2/TP09/tp09-reponses.txt | 60 ++++ 71 files changed, 1853 insertions(+) create mode 100644 SCR1.1/TP01/AA/DIR1/DIR11/.fi112 create mode 100644 SCR1.1/TP01/AA/DIR1/DIR11/fi111 create mode 100644 SCR1.1/TP01/AA/DIR1/DIR11/fi113 create mode 100644 SCR1.1/TP01/AA/DIR1/DIR11/fi31 create mode 100644 SCR1.1/TP01/AA/DIR1/fi11 create mode 100644 SCR1.1/TP01/AA/DIR3/fi31 create mode 100644 SCR1.1/TP01/BB/DIR1/DIR11/.fi112 create mode 100644 SCR1.1/TP01/BB/DIR1/DIR11/fi111 create mode 100644 SCR1.1/TP01/BB/DIR2/fi21 create mode 100644 SCR1.1/TP01/BB/DIR3/fi31 create mode 100644 SCR1.1/TP01/BB/DIR3/fi32 create mode 100644 SCR1.1/TP01/IV.txt create mode 100644 SCR1.1/TP02/FT6 create mode 100644 SCR1.1/TP02/FichierTest3 create mode 100644 SCR1.1/TP02/FichierTest4 create mode 100644 SCR1.1/TP02/fi create mode 100644 SCR1.1/TP02/fifi create mode 100644 SCR1.1/TP02/tp02-reponses.txt create mode 100644 SCR1.1/TP03/TP03.txt create mode 100644 SCR1.1/TP03/y.txt create mode 100644 SCR1.1/TP04/tp04-reponses.txt create mode 100644 SCR1.1/TP05/tp05-reponses.txt create mode 100644 SCR1.2/TP06/GLOB/11glob22blog3 create mode 100644 SCR1.2/TP06/GLOB/1glob create mode 100644 SCR1.2/TP06/GLOB/1glob22 create mode 100644 SCR1.2/TP06/GLOB/1glob22gloB333 create mode 100644 SCR1.2/TP06/GLOB/gLob/44patterN create mode 100644 SCR1.2/TP06/GLOB/gLob/Pattern4 create mode 100644 SCR1.2/TP06/GLOB/gLob/pAtterN create mode 100644 SCR1.2/TP06/GLOB/gLob/paTTerN/theglobpattern create mode 100644 SCR1.2/TP06/GLOB/gLob/patterN create mode 100644 SCR1.2/TP06/GLOB/gloB1bloG create mode 100755 SCR1.2/TP06/any2dec_inv.sh create mode 100644 SCR1.2/TP06/tp06-reponses.txt create mode 100644 SCR1.2/TP07/find-output.txt create mode 100644 SCR1.2/TP07/ls-output.txt create mode 100644 SCR1.2/TP07/sort create mode 100644 SCR1.2/TP07/tp07-reponses.txt create mode 100755 SCR1.2/TP08/my_seq.sh create mode 100644 SCR1.2/TP08/tp08-reponses.txt create mode 100755 SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/50-depmod.install create mode 100755 SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install create mode 100755 SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/90-loaderentry.install create mode 100644 SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/XX/inout.dev create mode 100644 SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/atom.install create mode 100644 SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/inout.dev create mode 100644 SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/play.in create mode 100644 SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/settings.sh create mode 100644 SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/DD/YY/inout.dev create mode 100644 SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/DD/inout.dev create mode 100644 SCR1.2/TP09/TREE/lib/kernel/config/AA/CC create mode 100644 SCR1.2/TP09/TREE/lib/krb5/plugins/inout.dev create mode 100644 SCR1.2/TP09/TREE/lib/krb5/plugins/play.in create mode 100644 SCR1.2/TP09/TREE/lib/krb5/synch/atom.install create mode 100644 SCR1.2/TP09/TREE/lib/krb5/synch/settings.sh create mode 100755 SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/50-depmod.install create mode 100755 SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install create mode 100755 SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/90-loaderentry.install create mode 100644 SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/XX/inout.dev create mode 100644 SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/atom.install create mode 100644 SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/inout.dev create mode 100644 SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/play.in create mode 100644 SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/settings.sh create mode 100644 SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/DD/YY/inout.dev create mode 100644 SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/DD/inout.dev create mode 100644 SCR1.2/TP09/TRee/lib/kernel/config/AA/CC create mode 100644 SCR1.2/TP09/TRee/lib/krb5/plugins/inout.dev create mode 100644 SCR1.2/TP09/TRee/lib/krb5/plugins/play.in create mode 100644 SCR1.2/TP09/TRee/lib/krb5/synch/atom.install create mode 100644 SCR1.2/TP09/TRee/lib/krb5/synch/settings.sh create mode 100644 SCR1.2/TP09/tp09-reponses.txt diff --git a/SCR1.1/TP01/AA/DIR1/DIR11/.fi112 b/SCR1.1/TP01/AA/DIR1/DIR11/.fi112 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/AA/DIR1/DIR11/fi111 b/SCR1.1/TP01/AA/DIR1/DIR11/fi111 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/AA/DIR1/DIR11/fi113 b/SCR1.1/TP01/AA/DIR1/DIR11/fi113 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/AA/DIR1/DIR11/fi31 b/SCR1.1/TP01/AA/DIR1/DIR11/fi31 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/AA/DIR1/fi11 b/SCR1.1/TP01/AA/DIR1/fi11 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/AA/DIR3/fi31 b/SCR1.1/TP01/AA/DIR3/fi31 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/BB/DIR1/DIR11/.fi112 b/SCR1.1/TP01/BB/DIR1/DIR11/.fi112 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/BB/DIR1/DIR11/fi111 b/SCR1.1/TP01/BB/DIR1/DIR11/fi111 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/BB/DIR2/fi21 b/SCR1.1/TP01/BB/DIR2/fi21 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/BB/DIR3/fi31 b/SCR1.1/TP01/BB/DIR3/fi31 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/BB/DIR3/fi32 b/SCR1.1/TP01/BB/DIR3/fi32 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/IV.txt b/SCR1.1/TP01/IV.txt new file mode 100644 index 0000000..5968e29 --- /dev/null +++ b/SCR1.1/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/SCR1.1/TP02/FT6 b/SCR1.1/TP02/FT6 new file mode 100644 index 0000000..0013451 --- /dev/null +++ b/SCR1.1/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/SCR1.1/TP02/FichierTest3 b/SCR1.1/TP02/FichierTest3 new file mode 100644 index 0000000..f9264f7 --- /dev/null +++ b/SCR1.1/TP02/FichierTest3 @@ -0,0 +1,2 @@ +Hello +World diff --git a/SCR1.1/TP02/FichierTest4 b/SCR1.1/TP02/FichierTest4 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP02/fi b/SCR1.1/TP02/fi new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP02/fifi b/SCR1.1/TP02/fifi new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP02/tp02-reponses.txt b/SCR1.1/TP02/tp02-reponses.txt new file mode 100644 index 0000000..5a331c8 --- /dev/null +++ b/SCR1.1/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/SCR1.1/TP03/TP03.txt b/SCR1.1/TP03/TP03.txt new file mode 100644 index 0000000..5518f33 --- /dev/null +++ b/SCR1.1/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/SCR1.1/TP03/y.txt b/SCR1.1/TP03/y.txt new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP04/tp04-reponses.txt b/SCR1.1/TP04/tp04-reponses.txt new file mode 100644 index 0000000..19ad30e --- /dev/null +++ b/SCR1.1/TP04/tp04-reponses.txt @@ -0,0 +1,13 @@ +I) +La commande à écrire pour afficher la disposition courante du clavier est localectl status, la disposition est Français-France conformément à ce qui est inscrit dans /etc/vconsole.conf +Pour afficher toutes les dispositions disponibles il faut faire localectl list-keymaps +II/Question 1) +Le disque est divisé en 5 partitions +Pour connaître les différents chemins menant à chaque parition est lsblk -p +Question 2) +La commande mount et le fichier /etc/mtab/ affichent les mêmes informations +Les partitions montées sont proc, sys, dev, run, tmp et export +La commande findmnt est plus précise en affichant la même chose sous forme d'arborescence +Pour afficher les vrais systèmes montés il faut taper findmnt --real + +III/Question 1) \ No newline at end of file diff --git a/SCR1.1/TP05/tp05-reponses.txt b/SCR1.1/TP05/tp05-reponses.txt new file mode 100644 index 0000000..04ec346 --- /dev/null +++ b/SCR1.1/TP05/tp05-reponses.txt @@ -0,0 +1,51 @@ +Question 1) +man -k / apropos + +Question 2) +hostname + +Question 3) +5.15.62-1-lts + +Question 4) +8 + +Question 5) +2.9Ghz + +Question 6) +Intel + +Question 7) +Little Endian + +Question 8) +00:00.0 Host bridge: Intel Corporation 10th Gen Core Processor Host Bridge/DRAM Registers (rev 05) +00:02.0 VGA compatible controller: Intel Corporation CometLake-S GT2 [UHD Graphics 630] (rev 05) +00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 05) +00:12.0 Signal processing controller: Intel Corporation Comet Lake PCH Thermal Controller +00:14.0 USB controller: Intel Corporation Comet Lake USB 3.1 xHCI Host Controller +00:14.2 RAM memory: Intel Corporation Comet Lake PCH Shared SRAM +00:16.0 Communication controller: Intel Corporation Comet Lake HECI Controller +00:16.3 Serial controller: Intel Corporation Comet Lake Keyboard and Text (KT) Redirection +00:17.0 SATA controller: Intel Corporation Comet Lake SATA AHCI Controller +00:1b.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #21 (rev f0) +00:1f.0 ISA bridge: Intel Corporation Q470 Chipset LPC/eSPI Controller +00:1f.3 Audio device: Intel Corporation Comet Lake PCH cAVS +00:1f.4 SMBus: Intel Corporation Comet Lake PCH SMBus Controller +00:1f.5 Serial bus controller: Intel Corporation Comet Lake PCH SPI Controller +00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (11) I219-LM +01:00.0 Non-Volatile memory controller: Sandisk Corp WD Blue SN550 NVMe SSD (rev 01) + +lspci -v +Question 9) +lsmod + +Question 10) +Intel / e1000e + +Question 11) +16Go + +Question 12) +256Mo \ No newline at end of file diff --git a/SCR1.2/TP06/GLOB/11glob22blog3 b/SCR1.2/TP06/GLOB/11glob22blog3 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.2/TP06/GLOB/1glob b/SCR1.2/TP06/GLOB/1glob new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.2/TP06/GLOB/1glob22 b/SCR1.2/TP06/GLOB/1glob22 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.2/TP06/GLOB/1glob22gloB333 b/SCR1.2/TP06/GLOB/1glob22gloB333 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.2/TP06/GLOB/gLob/44patterN b/SCR1.2/TP06/GLOB/gLob/44patterN new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.2/TP06/GLOB/gLob/Pattern4 b/SCR1.2/TP06/GLOB/gLob/Pattern4 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.2/TP06/GLOB/gLob/pAtterN b/SCR1.2/TP06/GLOB/gLob/pAtterN new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.2/TP06/GLOB/gLob/paTTerN/theglobpattern b/SCR1.2/TP06/GLOB/gLob/paTTerN/theglobpattern new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.2/TP06/GLOB/gLob/patterN b/SCR1.2/TP06/GLOB/gLob/patterN new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.2/TP06/GLOB/gloB1bloG b/SCR1.2/TP06/GLOB/gloB1bloG new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.2/TP06/any2dec_inv.sh b/SCR1.2/TP06/any2dec_inv.sh new file mode 100755 index 0000000..ced6713 --- /dev/null +++ b/SCR1.2/TP06/any2dec_inv.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# +# any2dec.sh +# +if [[ $# -lt 2 ]] +then + echo "Usage: $0 " + exit +fi +if [[ $1 -lt 2 || $1 -gt 36 ]] +then + echo "The radix is a decimal between 2 and 36" + exit +fi +DIGITS=0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ +LEGAL_DIGITS=$(expr substr $DIGITS 1 $1) +decimal=0 +l=$(expr length $2) +for ((i=0;i ../usr/share/zoneinfo/UTC +-rw-r--r-- 1 root root 5583 29 oct. 2016 login.defs +-rw-r--r-- 1 root root 686 21 août 2016 logrotate.conf +drwxr-xr-x 2 root root 4096 15 nov. 2016 logrotate.d +drwxr-xr-x 5 root root 4096 15 nov. 2016 lvm +-r--r--r-- 1 root root 33 5 juil. 2016 machine-id +-r--r--r-- 1 root root 6298 20 oct. 2016 mail.rc +-rw-r--r-- 1 root root 5897 18 mai 2016 makepkg.conf +-rw-r--r-- 1 root root 5134 26 août 2016 man_db.conf +-rw-r--r-- 1 root root 2349 2 févr. 2016 mdadm.conf +-rw-r--r-- 1 root root 945 5 sept. 2016 mke2fs.conf +-rw-r--r-- 1 root root 2490 9 sept. 2016 mkinitcpio.conf +drwxr-xr-x 2 root root 4096 23 nov. 2016 mkinitcpio.d +drwxr-xr-x 2 root root 4096 18 nov. 2015 modprobe.d +drwxr-xr-x 2 root root 4096 18 juin 2016 modules-load.d +-rw-r--r-- 1 root root 0 30 sept. 2015 motd +lrwxrwxrwx 1 root root 19 5 juil. 2016 mtab -> ../proc/self/mounts +-rw-r--r-- 1 root root 8779 29 oct. 2016 nanorc +-rw-r--r-- 1 root root 767 6 nov. 2015 netconfig +drwxr-xr-x 5 root root 4096 11 juil. 2016 netctl +-rw-r--r-- 1 root root 3605 25 août 2016 nfsmount.conf +-rw-r--r-- 1 root root 2387 6 août 2016 nscd.conf +-rw-r--r-- 1 root root 321 15 juil. 2016 nss_ldap.conf +-rw-r--r-- 1 root root 9472 13 juil. 2016 nss_ldap.conf.ori +-rw-r--r-- 1 root root 238 13 juil. 2016 nsswitch.conf +-rw-r--r-- 1 root root 234 30 sept. 2015 nsswitch.conf.ori +-rw-r--r-- 1 root root 1300 3 juil. 2014 nsswitch.ldap +-rw-r--r-- 1 root root 1605 15 juil. 2016 ntp.conf +-rw-r--r-- 1 root root 706 4 juin 2016 ntp.conf.ori +drwxr-xr-x 2 root root 4096 2 sept. 2015 ODBCDataSources +-rw-r--r-- 1 root root 0 6 nov. 2016 odbc.ini +-rw-r--r-- 1 root root 0 6 nov. 2016 odbcinst.ini +drwxr-xr-x 6 ldap ldap 4096 4 nov. 2016 openldap +lrwxrwxrwx 1 root root 21 5 juil. 2016 os-release -> ../usr/lib/os-release +-rw-r--r-- 1 root root 2898 18 mai 2016 pacman.conf +drwxr-xr-x 3 root root 4096 23 nov. 2016 pacman.d +drwxr-xr-x 2 root root 4096 15 nov. 2016 pam.d +drwxr-xr-x 2 root root 4096 13 juil. 2016 pam.d.old +drwxr-xr-x 2 root root 4096 13 juil. 2016 pam.d.ori +-rw-r--r-- 1 root root 311 15 juil. 2016 pam_ldap.conf +-rw-r--r-- 1 root root 8678 1 juil. 2014 pam_ldap.conf.ori +-rw-r--r-- 1 root root 1317 31 oct. 2016 passwd +-rw-r--r-- 1 root root 1277 31 oct. 2016 passwd- +drwxr-xr-x 2 root root 4096 13 mai 2013 pcmcia +drwxr-xr-x 2 root root 4096 18 déc. 2015 pkcs11 +drwxr-xr-x 3 root root 4096 25 oct. 2015 polkit-1 +-rw-r--r-- 1 root root 573 30 sept. 2015 profile +drwxr-xr-x 2 root root 4096 9 nov. 2016 profile.d +-rw-r--r-- 1 root root 3145 10 nov. 2016 protocols +drwxr-xr-x 2 root root 4096 25 juin 2016 pulse +drwxr-xr-x 9 radiusd radiusd 4096 11 mai 2016 raddb +drwxr-xr-x 9 root root 4096 15 nov. 2016 raddb.default +-rw-r--r-- 1 root root 1814 1 mars 2014 request-key.conf +drwxr-xr-x 2 root root 4096 24 oct. 2016 request-key.d +-rw-r--r-- 1 root root 49 18 juil. 13:11 resolv.conf +-rw-r--r-- 1 root root 80 18 juil. 13:11 resolv.conf.bak +-rw-r--r-- 1 root root 254 19 mai 2016 resolvconf.conf +-rw-r--r-- 1 root root 1634 6 août 2016 rpc +-rw-r--r-- 1 root root 172 20 nov. 2016 rsyncd.conf +drwxr-xr-x 3 root root 4096 15 nov. 2016 samba +drwxr-xr-x 2 root root 4096 15 nov. 2016 sasl2 +-rw-r--r-- 1 root root 86 30 sept. 2015 securetty +drwxr-xr-x 3 root root 4096 31 oct. 2016 security +-rw-r--r-- 1 root root 294578 10 nov. 2016 services +-rw------- 1 root root 843 17 juil. 12:32 shadow +-rw------- 1 root root 815 31 oct. 2016 shadow- +-rw-r--r-- 1 root root 52 30 sept. 2015 shells +drwxr-xr-x 2 root root 4096 23 nov. 2016 skel +drwxr-xr-x 2 root root 4096 13 juil. 2016 smbldap-tools +drwxr-xr-x 2 root root 4096 24 oct. 2016 ssh +drwxr-xr-x 5 root root 4096 24 oct. 2016 ssl +-r--r----- 1 root root 3213 31 oct. 2016 sudoers +drwxr-x--- 2 root root 4096 25 mars 2016 sudoers.d +drwxr-xr-x 2 root root 4096 25 août 2016 sysconfig +drwxr-xr-x 2 root root 4096 18 juin 2016 sysctl.d +drwxr-xr-x 5 root root 4096 24 oct. 2016 systemd +drwxr-xr-x 2 root root 4096 18 juin 2016 tmpfiles.d +-rw-r--r-- 1 root root 376 21 avril 2015 trusted-key.key +drwxr-xr-x 4 root root 4096 24 oct. 2016 udev +-rw-r--r-- 1 root root 558 14 déc. 2014 updatedb.conf +-rw-r--r-- 1 root root 10 5 juil. 2016 vconsole.conf +drwxr-xr-x 2 root root 4096 19 sept. 2015 vde +drwxr-xr-x 3 root root 4096 19 sept. 2015 vde2 +-rw-r--r-- 1 root root 912 11 sept. 2017 vimrc +-rw-r--r-- 1 root root 5026 19 juin 2016 wgetrc +-rw-r--r-- 1 root root 382 15 mars 2017 whois.conf +drwxr-xr-x 3 root root 4096 18 juin 2016 X11 +drwxr-xr-x 4 root root 4096 31 oct. 2016 xdg +drwxr-xr-x 2 root root 4096 23 nov. 2016 xinetd.d +-rw-r--r-- 1 root root 1443 9 nov. 2016 yaourtrc diff --git a/SCR1.2/TP07/sort b/SCR1.2/TP07/sort new file mode 100644 index 0000000..d5629b9 --- /dev/null +++ b/SCR1.2/TP07/sort @@ -0,0 +1,316 @@ +total 1048 +total 1048 +-rw-r--r-- 1 root root 83501 30 août 10:07 ld.so.cache +-rw-r--r-- 1 root root 83501 30 août 10:07 ld.so.cache +-rw-r--r-- 1 root root 1191 15 août 2016 dhcpcd.conf +-rw-r--r-- 1 root root 1191 15 août 2016 dhcpcd.conf +drwxr-xr-x 4 root root 4096 6 août 2016 fonts +drwxr-xr-x 4 root root 4096 6 août 2016 fonts +-rw-r--r-- 1 root root 2584 6 août 2016 gai.conf +-rw-r--r-- 1 root root 2584 6 août 2016 gai.conf +drwxr-xr-x 2 root root 4096 22 août 2016 ld.so.conf.d +drwxr-xr-x 2 root root 4096 22 août 2016 ld.so.conf.d +drwxr-xr-x 2 root root 4096 22 août 2016 libnl +drwxr-xr-x 2 root root 4096 22 août 2016 libnl +-rw-r--r-- 1 root root 9614 6 août 2016 locale.gen.pacnew +-rw-r--r-- 1 root root 9614 6 août 2016 locale.gen.pacnew +-rw-r--r-- 1 root root 686 21 août 2016 logrotate.conf +-rw-r--r-- 1 root root 686 21 août 2016 logrotate.conf +-rw-r--r-- 1 root root 5134 26 août 2016 man_db.conf +-rw-r--r-- 1 root root 5134 26 août 2016 man_db.conf +-rw-r--r-- 1 root root 3605 25 août 2016 nfsmount.conf +-rw-r--r-- 1 root root 3605 25 août 2016 nfsmount.conf +-rw-r--r-- 1 root root 2387 6 août 2016 nscd.conf +-rw-r--r-- 1 root root 2387 6 août 2016 nscd.conf +-rw-r--r-- 1 root root 1634 6 août 2016 rpc +-rw-r--r-- 1 root root 1634 6 août 2016 rpc +drwxr-xr-x 2 root root 4096 25 août 2016 sysconfig +drwxr-xr-x 2 root root 4096 25 août 2016 sysconfig +-rw-r--r-- 1 root root 376 21 avril 2015 trusted-key.key +-rw-r--r-- 1 root root 376 21 avril 2015 trusted-key.key +-rw-r--r-- 1 root root 558 14 déc. 2014 updatedb.conf +-rw-r--r-- 1 root root 558 14 déc. 2014 updatedb.conf +drwxr-xr-x 2 root root 4096 18 déc. 2015 pkcs11 +drwxr-xr-x 2 root root 4096 18 déc. 2015 pkcs11 +-rw-r--r-- 1 root root 2349 2 févr. 2016 mdadm.conf +-rw-r--r-- 1 root root 2349 2 févr. 2016 mdadm.conf +drwxr-xr-x 4 root root 4096 20 janv. 2016 initcpio +drwxr-xr-x 4 root root 4096 20 janv. 2016 initcpio +drwxr-xr-x 2 root root 4096 25 janv. 2017 gdb +drwxr-xr-x 2 root root 4096 25 janv. 2017 gdb +-rw------- 1 root root 843 17 juil. 12:32 shadow +-rw------- 1 root root 843 17 juil. 12:32 shadow +-rw-r--r-- 1 root root 49 18 juil. 13:11 resolv.conf +-rw-r--r-- 1 root root 49 18 juil. 13:11 resolv.conf +-rw-r--r-- 1 root root 80 18 juil. 13:11 resolv.conf.bak +-rw-r--r-- 1 root root 80 18 juil. 13:11 resolv.conf.bak +-rw-r--r-- 1 root root 1300 3 juil. 2014 nsswitch.ldap +-rw-r--r-- 1 root root 1300 3 juil. 2014 nsswitch.ldap +-rw-r--r-- 1 root root 8678 1 juil. 2014 pam_ldap.conf.ori +-rw-r--r-- 1 root root 8678 1 juil. 2014 pam_ldap.conf.ori +-rw-r--r-- 1 root root 23543 28 juil. 2016 brltty.conf +-rw-r--r-- 1 root root 23543 28 juil. 2016 brltty.conf +-rw-r--r-- 1 root root 224 13 juil. 2016 exports +-rw-r--r-- 1 root root 224 13 juil. 2016 exports +-rw-r--r-- 1 root root 277 13 juil. 2016 fstab +-rw-r--r-- 1 root root 277 13 juil. 2016 fstab +-rw-r--r-- 1 root root 209 13 juil. 2016 fstab.ori +-rw-r--r-- 1 root root 209 13 juil. 2016 fstab.ori +-rw-r--r-- 1 root root 9 13 juil. 2016 hostname +-rw-r--r-- 1 root root 9 13 juil. 2016 hostname +-rw-r--r-- 1 root root 4 5 juil. 2016 hostname.ori +-rw-r--r-- 1 root root 4 5 juil. 2016 hostname.ori +-rw-r--r-- 1 root root 182 13 juil. 2016 hosts +-rw-r--r-- 1 root root 182 13 juil. 2016 hosts +-rw-r--r-- 1 root root 171 13 juil. 2016 idmapd.conf +-rw-r--r-- 1 root root 171 13 juil. 2016 idmapd.conf +-rw-r--r-- 1 root root 17 5 juil. 2016 locale.conf +-rw-r--r-- 1 root root 17 5 juil. 2016 locale.conf +-rw-r--r-- 1 root root 9530 5 juil. 2016 locale.gen +-rw-r--r-- 1 root root 9530 5 juil. 2016 locale.gen +-r--r--r-- 1 root root 33 5 juil. 2016 machine-id +-r--r--r-- 1 root root 33 5 juil. 2016 machine-id +lrwxrwxrwx 1 root root 19 5 juil. 2016 mtab -> ../proc/self/mounts +lrwxrwxrwx 1 root root 19 5 juil. 2016 mtab -> ../proc/self/mounts +drwxr-xr-x 5 root root 4096 11 juil. 2016 netctl +drwxr-xr-x 5 root root 4096 11 juil. 2016 netctl +-rw-r--r-- 1 root root 321 15 juil. 2016 nss_ldap.conf +-rw-r--r-- 1 root root 321 15 juil. 2016 nss_ldap.conf +-rw-r--r-- 1 root root 9472 13 juil. 2016 nss_ldap.conf.ori +-rw-r--r-- 1 root root 9472 13 juil. 2016 nss_ldap.conf.ori +-rw-r--r-- 1 root root 238 13 juil. 2016 nsswitch.conf +-rw-r--r-- 1 root root 238 13 juil. 2016 nsswitch.conf +-rw-r--r-- 1 root root 1605 15 juil. 2016 ntp.conf +-rw-r--r-- 1 root root 1605 15 juil. 2016 ntp.conf +lrwxrwxrwx 1 root root 21 5 juil. 2016 os-release -> ../usr/lib/os-release +lrwxrwxrwx 1 root root 21 5 juil. 2016 os-release -> ../usr/lib/os-release +drwxr-xr-x 2 root root 4096 13 juil. 2016 pam.d.old +drwxr-xr-x 2 root root 4096 13 juil. 2016 pam.d.old +drwxr-xr-x 2 root root 4096 13 juil. 2016 pam.d.ori +drwxr-xr-x 2 root root 4096 13 juil. 2016 pam.d.ori +-rw-r--r-- 1 root root 311 15 juil. 2016 pam_ldap.conf +-rw-r--r-- 1 root root 311 15 juil. 2016 pam_ldap.conf +drwxr-xr-x 2 root root 4096 13 juil. 2016 smbldap-tools +drwxr-xr-x 2 root root 4096 13 juil. 2016 smbldap-tools +-rw-r--r-- 1 root root 10 5 juil. 2016 vconsole.conf +-rw-r--r-- 1 root root 10 5 juil. 2016 vconsole.conf +lrwxrwxrwx 1 root root 25 6 juil. 2017 localtime -> ../usr/share/zoneinfo/UTC +lrwxrwxrwx 1 root root 25 6 juil. 2017 localtime -> ../usr/share/zoneinfo/UTC +-rw-r--r-- 1 root root 541 30 juin 2016 anacrontab +-rw-r--r-- 1 root root 541 30 juin 2016 anacrontab +drwxr-xr-x 2 root root 4096 18 juin 2016 binfmt.d +drwxr-xr-x 2 root root 4096 18 juin 2016 binfmt.d +drwxr-xr-x 2 root root 4096 30 juin 2016 cron.daily +drwxr-xr-x 2 root root 4096 30 juin 2016 cron.daily +-rw-r--r-- 1 root root 74 30 juin 2016 cron.deny +-rw-r--r-- 1 root root 74 30 juin 2016 cron.deny +drwxr-xr-x 2 root root 4096 30 juin 2016 cron.monthly +drwxr-xr-x 2 root root 4096 30 juin 2016 cron.monthly +drwxr-xr-x 2 root root 4096 30 juin 2016 cron.weekly +drwxr-xr-x 2 root root 4096 30 juin 2016 cron.weekly +-rw-r--r-- 1 root root 97 9 juin 2016 environment +-rw-r--r-- 1 root root 97 9 juin 2016 environment +-rw-r--r-- 1 root root 216 22 juin 2016 fuse.conf +-rw-r--r-- 1 root root 216 22 juin 2016 fuse.conf +drwxr-xr-x 3 root root 4096 18 juin 2016 gss +drwxr-xr-x 3 root root 4096 18 juin 2016 gss +drwxr-xr-x 2 root root 4096 13 juin 2016 ifplugd +drwxr-xr-x 2 root root 4096 13 juin 2016 ifplugd +drwxr-xr-x 3 root root 4096 18 juin 2016 kernel +drwxr-xr-x 3 root root 4096 18 juin 2016 kernel +drwxr-xr-x 2 root root 4096 18 juin 2016 modules-load.d +drwxr-xr-x 2 root root 4096 18 juin 2016 modules-load.d +-rw-r--r-- 1 root root 706 4 juin 2016 ntp.conf.ori +-rw-r--r-- 1 root root 706 4 juin 2016 ntp.conf.ori +drwxr-xr-x 2 root root 4096 25 juin 2016 pulse +drwxr-xr-x 2 root root 4096 25 juin 2016 pulse +drwxr-xr-x 2 root root 4096 18 juin 2016 sysctl.d +drwxr-xr-x 2 root root 4096 18 juin 2016 sysctl.d +drwxr-xr-x 2 root root 4096 18 juin 2016 tmpfiles.d +drwxr-xr-x 2 root root 4096 18 juin 2016 tmpfiles.d +-rw-r--r-- 1 root root 5026 19 juin 2016 wgetrc +-rw-r--r-- 1 root root 5026 19 juin 2016 wgetrc +drwxr-xr-x 3 root root 4096 18 juin 2016 X11 +drwxr-xr-x 3 root root 4096 18 juin 2016 X11 +drwxr-xr-x 2 root root 4096 13 mai 2013 pcmcia +drwxr-xr-x 2 root root 4096 13 mai 2013 pcmcia +drwxr-xr-x 4 root root 4096 7 mai 2016 ca-certificates +drwxr-xr-x 4 root root 4096 7 mai 2016 ca-certificates +drwxr-xr-x 2 root root 4096 20 mai 2016 libsmbios +drwxr-xr-x 2 root root 4096 20 mai 2016 libsmbios +-rw-r--r-- 1 root root 5897 18 mai 2016 makepkg.conf +-rw-r--r-- 1 root root 5897 18 mai 2016 makepkg.conf +-rw-r--r-- 1 root root 2898 18 mai 2016 pacman.conf +-rw-r--r-- 1 root root 2898 18 mai 2016 pacman.conf +drwxr-xr-x 9 radiusd radiusd 4096 11 mai 2016 raddb +drwxr-xr-x 9 radiusd radiusd 4096 11 mai 2016 raddb +-rw-r--r-- 1 root root 254 19 mai 2016 resolvconf.conf +-rw-r--r-- 1 root root 254 19 mai 2016 resolvconf.conf +-rw-r--r-- 1 root root 1814 1 mars 2014 request-key.conf +-rw-r--r-- 1 root root 1814 1 mars 2014 request-key.conf +drwxr-xr-x 3 root root 4096 6 mars 2016 avahi +drwxr-xr-x 3 root root 4096 6 mars 2016 avahi +-rw-r--r-- 1 root root 1362 14 mars 2016 ethertypes +-rw-r--r-- 1 root root 1362 14 mars 2016 ethertypes +drwxr-xr-x 2 root root 4096 14 mars 2016 iptables +drwxr-xr-x 2 root root 4096 14 mars 2016 iptables +-rw-r--r-- 1 root root 369 7 mars 2016 krb5.conf +-rw-r--r-- 1 root root 369 7 mars 2016 krb5.conf +drwxr-x--- 2 root root 4096 25 mars 2016 sudoers.d +drwxr-x--- 2 root root 4096 25 mars 2016 sudoers.d +-rw-r--r-- 1 root root 382 15 mars 2017 whois.conf +-rw-r--r-- 1 root root 382 15 mars 2017 whois.conf +drwxr-xr-x 2 root root 4096 18 nov. 2015 depmod.d +drwxr-xr-x 2 root root 4096 18 nov. 2015 depmod.d +drwxr-xr-x 2 root root 4096 6 nov. 2015 exports.d +drwxr-xr-x 2 root root 4096 6 nov. 2015 exports.d +-rw-r--r-- 1 root root 439 6 nov. 2015 exports.ori +-rw-r--r-- 1 root root 439 6 nov. 2015 exports.ori +drwxr-xr-x 2 root root 4096 18 nov. 2015 modprobe.d +drwxr-xr-x 2 root root 4096 18 nov. 2015 modprobe.d +-rw-r--r-- 1 root root 767 6 nov. 2015 netconfig +-rw-r--r-- 1 root root 767 6 nov. 2015 netconfig +-rw-r--r-- 1 root root 28 14 nov. 2016 bash.bash_logout +-rw-r--r-- 1 root root 28 14 nov. 2016 bash.bash_logout +-rw-r--r-- 1 root root 576 14 nov. 2016 bash.bashrc +-rw-r--r-- 1 root root 576 14 nov. 2016 bash.bashrc +drwxr-xr-x 2 root root 4096 15 nov. 2016 conf.d +drwxr-xr-x 2 root root 4096 15 nov. 2016 conf.d +drwxr-xr-x 2 root root 4096 9 nov. 2016 default +drwxr-xr-x 2 root root 4096 9 nov. 2016 default +-rw-r--r-- 1 root root 4479 14 nov. 2016 drirc +-rw-r--r-- 1 root root 4479 14 nov. 2016 drirc +drwxr-xr-x 2 root root 4096 9 nov. 2016 gssproxy +drwxr-xr-x 2 root root 4096 9 nov. 2016 gssproxy +drwxr-xr-x 2 root root 4096 23 nov. 2016 gtk-3.0 +drwxr-xr-x 2 root root 4096 23 nov. 2016 gtk-3.0 +drwxr-xr-x 2 root root 4096 23 nov. 2016 ImageMagick-6 +drwxr-xr-x 2 root root 4096 23 nov. 2016 ImageMagick-6 +-rw-r--r-- 1 root root 714 6 nov. 2016 inputrc +-rw-r--r-- 1 root root 714 6 nov. 2016 inputrc +drwxr-xr-x 4 root root 4096 15 nov. 2016 libvirt +drwxr-xr-x 4 root root 4096 15 nov. 2016 libvirt +drwxr-xr-x 2 root root 4096 15 nov. 2016 logrotate.d +drwxr-xr-x 2 root root 4096 15 nov. 2016 logrotate.d +drwxr-xr-x 5 root root 4096 15 nov. 2016 lvm +drwxr-xr-x 5 root root 4096 15 nov. 2016 lvm +drwxr-xr-x 2 root root 4096 23 nov. 2016 mkinitcpio.d +drwxr-xr-x 2 root root 4096 23 nov. 2016 mkinitcpio.d +-rw-r--r-- 1 root root 0 6 nov. 2016 odbc.ini +-rw-r--r-- 1 root root 0 6 nov. 2016 odbc.ini +-rw-r--r-- 1 root root 0 6 nov. 2016 odbcinst.ini +-rw-r--r-- 1 root root 0 6 nov. 2016 odbcinst.ini +drwxr-xr-x 6 ldap ldap 4096 4 nov. 2016 openldap +drwxr-xr-x 6 ldap ldap 4096 4 nov. 2016 openldap +drwxr-xr-x 3 root root 4096 23 nov. 2016 pacman.d +drwxr-xr-x 3 root root 4096 23 nov. 2016 pacman.d +drwxr-xr-x 2 root root 4096 15 nov. 2016 pam.d +drwxr-xr-x 2 root root 4096 15 nov. 2016 pam.d +drwxr-xr-x 2 root root 4096 9 nov. 2016 profile.d +drwxr-xr-x 2 root root 4096 9 nov. 2016 profile.d +-rw-r--r-- 1 root root 3145 10 nov. 2016 protocols +-rw-r--r-- 1 root root 3145 10 nov. 2016 protocols +drwxr-xr-x 9 root root 4096 15 nov. 2016 raddb.default +drwxr-xr-x 9 root root 4096 15 nov. 2016 raddb.default +-rw-r--r-- 1 root root 172 20 nov. 2016 rsyncd.conf +-rw-r--r-- 1 root root 172 20 nov. 2016 rsyncd.conf +drwxr-xr-x 3 root root 4096 15 nov. 2016 samba +drwxr-xr-x 3 root root 4096 15 nov. 2016 samba +drwxr-xr-x 2 root root 4096 15 nov. 2016 sasl2 +drwxr-xr-x 2 root root 4096 15 nov. 2016 sasl2 +-rw-r--r-- 1 root root 294578 10 nov. 2016 services +-rw-r--r-- 1 root root 294578 10 nov. 2016 services +drwxr-xr-x 2 root root 4096 23 nov. 2016 skel +drwxr-xr-x 2 root root 4096 23 nov. 2016 skel +drwxr-xr-x 2 root root 4096 23 nov. 2016 xinetd.d +drwxr-xr-x 2 root root 4096 23 nov. 2016 xinetd.d +-rw-r--r-- 1 root root 1443 9 nov. 2016 yaourtrc +-rw-r--r-- 1 root root 1443 9 nov. 2016 yaourtrc +-rw-r--r-- 1 root root 918 21 oct. 2013 gssapi_mech.conf +-rw-r--r-- 1 root root 918 21 oct. 2013 gssapi_mech.conf +drwxr-xr-x 3 root root 4096 25 oct. 2015 polkit-1 +drwxr-xr-x 3 root root 4096 25 oct. 2015 polkit-1 +-rw-r----- 1 root brlapi 33 31 oct. 2016 brlapi.key +-rw-r----- 1 root brlapi 33 31 oct. 2016 brlapi.key +drwxr-xr-x 2 root root 4096 9 oct. 2016 ceph +drwxr-xr-x 2 root root 4096 9 oct. 2016 ceph +drwxr-xr-x 3 root root 4096 24 oct. 2016 dbus-1 +drwxr-xr-x 3 root root 4096 24 oct. 2016 dbus-1 +-rw-r--r-- 1 root root 856 31 oct. 2016 group +-rw-r--r-- 1 root root 856 31 oct. 2016 group +-rw-r--r-- 1 root root 842 31 oct. 2016 group- +-rw-r--r-- 1 root root 842 31 oct. 2016 group- +-rw------- 1 root root 712 31 oct. 2016 gshadow +-rw------- 1 root root 712 31 oct. 2016 gshadow +-rw------- 1 root root 701 31 oct. 2016 gshadow- +-rw------- 1 root root 701 31 oct. 2016 gshadow- +drwxr-xr-x 2 root root 4096 24 oct. 2016 iproute2 +drwxr-xr-x 2 root root 4096 24 oct. 2016 iproute2 +drwxr-xr-x 6 root root 4096 23 oct. 2016 java-8-openjdk +drwxr-xr-x 6 root root 4096 23 oct. 2016 java-8-openjdk +-rw-r--r-- 1 root root 5583 29 oct. 2016 login.defs +-rw-r--r-- 1 root root 5583 29 oct. 2016 login.defs +-r--r--r-- 1 root root 6298 20 oct. 2016 mail.rc +-r--r--r-- 1 root root 6298 20 oct. 2016 mail.rc +-rw-r--r-- 1 root root 8779 29 oct. 2016 nanorc +-rw-r--r-- 1 root root 8779 29 oct. 2016 nanorc +-rw-r--r-- 1 root root 1317 31 oct. 2016 passwd +-rw-r--r-- 1 root root 1317 31 oct. 2016 passwd +-rw-r--r-- 1 root root 1277 31 oct. 2016 passwd- +-rw-r--r-- 1 root root 1277 31 oct. 2016 passwd- +drwxr-xr-x 2 root root 4096 24 oct. 2016 request-key.d +drwxr-xr-x 2 root root 4096 24 oct. 2016 request-key.d +drwxr-xr-x 3 root root 4096 31 oct. 2016 security +drwxr-xr-x 3 root root 4096 31 oct. 2016 security +-rw------- 1 root root 815 31 oct. 2016 shadow- +-rw------- 1 root root 815 31 oct. 2016 shadow- +drwxr-xr-x 2 root root 4096 24 oct. 2016 ssh +drwxr-xr-x 2 root root 4096 24 oct. 2016 ssh +drwxr-xr-x 5 root root 4096 24 oct. 2016 ssl +drwxr-xr-x 5 root root 4096 24 oct. 2016 ssl +-r--r----- 1 root root 3213 31 oct. 2016 sudoers +-r--r----- 1 root root 3213 31 oct. 2016 sudoers +drwxr-xr-x 5 root root 4096 24 oct. 2016 systemd +drwxr-xr-x 5 root root 4096 24 oct. 2016 systemd +drwxr-xr-x 4 root root 4096 24 oct. 2016 udev +drwxr-xr-x 4 root root 4096 24 oct. 2016 udev +drwxr-xr-x 4 root root 4096 31 oct. 2016 xdg +drwxr-xr-x 4 root root 4096 31 oct. 2016 xdg +-rw-r--r-- 1 root root 0 30 sept. 2015 arch-release +-rw-r--r-- 1 root root 0 30 sept. 2015 arch-release +-rw------- 1 root root 930 30 sept. 2015 crypttab +-rw------- 1 root root 930 30 sept. 2015 crypttab +-rw-r--r-- 1 root root 63 30 sept. 2015 host.conf +-rw-r--r-- 1 root root 63 30 sept. 2015 host.conf +-rw-r--r-- 1 root root 195 30 sept. 2015 hosts.ori +-rw-r--r-- 1 root root 195 30 sept. 2015 hosts.ori +-rw-r--r-- 1 root root 20 30 sept. 2015 issue +-rw-r--r-- 1 root root 20 30 sept. 2015 issue +-rw-r--r-- 1 root root 71 30 sept. 2015 ld.so.conf +-rw-r--r-- 1 root root 71 30 sept. 2015 ld.so.conf +-rw-r--r-- 1 root root 0 30 sept. 2015 motd +-rw-r--r-- 1 root root 0 30 sept. 2015 motd +-rw-r--r-- 1 root root 234 30 sept. 2015 nsswitch.conf.ori +-rw-r--r-- 1 root root 234 30 sept. 2015 nsswitch.conf.ori +drwxr-xr-x 2 root root 4096 2 sept. 2015 ODBCDataSources +drwxr-xr-x 2 root root 4096 2 sept. 2015 ODBCDataSources +-rw-r--r-- 1 root root 573 30 sept. 2015 profile +-rw-r--r-- 1 root root 573 30 sept. 2015 profile +-rw-r--r-- 1 root root 86 30 sept. 2015 securetty +-rw-r--r-- 1 root root 86 30 sept. 2015 securetty +-rw-r--r-- 1 root root 52 30 sept. 2015 shells +-rw-r--r-- 1 root root 52 30 sept. 2015 shells +drwxr-xr-x 2 root root 4096 19 sept. 2015 vde +drwxr-xr-x 2 root root 4096 19 sept. 2015 vde +drwxr-xr-x 3 root root 4096 19 sept. 2015 vde2 +drwxr-xr-x 3 root root 4096 19 sept. 2015 vde2 +drwxr-xr-x 2 root root 4096 19 sept. 2016 cron.d +drwxr-xr-x 2 root root 4096 19 sept. 2016 cron.d +drwxr-xr-x 2 root root 4096 19 sept. 2016 cron.hourly +drwxr-xr-x 2 root root 4096 19 sept. 2016 cron.hourly +-rw-r--r-- 1 root root 945 5 sept. 2016 mke2fs.conf +-rw-r--r-- 1 root root 945 5 sept. 2016 mke2fs.conf +-rw-r--r-- 1 root root 2490 9 sept. 2016 mkinitcpio.conf +-rw-r--r-- 1 root root 2490 9 sept. 2016 mkinitcpio.conf +-rw-r--r-- 1 root root 912 11 sept. 2017 vimrc +-rw-r--r-- 1 root root 912 11 sept. 2017 vimrc diff --git a/SCR1.2/TP07/tp07-reponses.txt b/SCR1.2/TP07/tp07-reponses.txt new file mode 100644 index 0000000..816bbd0 --- /dev/null +++ b/SCR1.2/TP07/tp07-reponses.txt @@ -0,0 +1,13 @@ +Partie I) +expr length stock_market affiche 12 +expr substr stock_market 1 5 affiche stock +expr substr stock_market 7 12 affiche market +expr index stock_market "_" affiche 6 car l'underscore est en 6ème position +expr index stock_market "_c" affiche 4 car le c est en 4ème position + +Question 1) +sort -n -k5 ls_output.txt (Tri alphanumérique croissant) / sort -n -r -k5 ls_output.txt (Tri alphanumérique décroissant) + +Question 2) +sort -r -k2 ./find-output.txt +sort -k2 ./find_output.txt diff --git a/SCR1.2/TP08/my_seq.sh b/SCR1.2/TP08/my_seq.sh new file mode 100755 index 0000000..d91c4a0 --- /dev/null +++ b/SCR1.2/TP08/my_seq.sh @@ -0,0 +1,16 @@ +#!/bin/bash +## A simple script shell which reproduces the +## $(seq) behaviour + +if [[ $# -lt 1 ]] +then + echo "Usage : my_seq.sh " + exit +fi + +for ((i = 1; i <= $1; i++)) +do + echo $i +done + +exit diff --git a/SCR1.2/TP08/tp08-reponses.txt b/SCR1.2/TP08/tp08-reponses.txt new file mode 100644 index 0000000..e8616d8 --- /dev/null +++ b/SCR1.2/TP08/tp08-reponses.txt @@ -0,0 +1,4 @@ +Question 3b) +echo "$? x=$x" affiche 0 x = 7 +echo "$? x=$x" affiche 0 x = +echo "$? x=$x" affiche 1 x = diff --git a/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/50-depmod.install b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/50-depmod.install new file mode 100755 index 0000000..68c24be --- /dev/null +++ b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/50-depmod.install @@ -0,0 +1,8 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install new file mode 100755 index 0000000..c8f51ba --- /dev/null +++ b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install @@ -0,0 +1,12 @@ +#!/bin/sh + +case $1 in + add) + mkinitcpio -k "$2" -g "$3"/initrd + ;; + remove) + rm -f -- "$3"/initrd + ;; +esac + +# vim: set ft=sh ts=4 sw=4 et: diff --git a/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/90-loaderentry.install b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/90-loaderentry.install new file mode 100755 index 0000000..c17b8a9 --- /dev/null +++ b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/90-loaderentry.install @@ -0,0 +1,89 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +COMMAND="$1" +KERNEL_VERSION="$2" +BOOT_DIR_ABS="$3" +KERNEL_IMAGE="$4" + +if [[ -f /etc/machine-id ]]; then + read MACHINE_ID < /etc/machine-id +fi + +if ! [[ $MACHINE_ID ]]; then + exit 1 +fi + +BOOT_DIR="/$MACHINE_ID/$KERNEL_VERSION" +LOADER_ENTRY="/boot/loader/entries/$MACHINE_ID-$KERNEL_VERSION.conf" + +if [[ $COMMAND == remove ]]; then + exec rm -f "$LOADER_ENTRY" +fi + +if ! [[ $COMMAND == add ]]; then + exit 1 +fi + +if ! [[ $KERNEL_IMAGE ]]; then + exit 1 +fi + +if [[ -f /etc/os-release ]]; then + . /etc/os-release +elif [[ -f /usr/lib/os-release ]]; then + . /usr/lib/os-release +fi + +if ! [[ $PRETTY_NAME ]]; then + PRETTY_NAME="Linux $KERNEL_VERSION" +fi + +declare -a BOOT_OPTIONS + +if [[ -f /etc/kernel/cmdline ]]; then + readarray -t BOOT_OPTIONS < /etc/kernel/cmdline +fi + +if ! [[ ${BOOT_OPTIONS[*]} ]]; then + readarray -t line < /proc/cmdline + for i in ${line[*]}; do + if [[ "${i#initrd=*}" == "$i" ]]; then + BOOT_OPTIONS[${#BOOT_OPTIONS[@]}]="$i" + fi + done +fi + +if ! [[ ${BOOT_OPTIONS[*]} ]]; then + echo "Could not determine the kernel command line parameters." >&2 + echo "Please specify the kernel command line in /etc/kernel/cmdline!" >&2 + exit 1 +fi + +cp "$KERNEL_IMAGE" "$BOOT_DIR_ABS/linux" && + chown root:root "$BOOT_DIR_ABS/linux" && + chmod 0644 "$BOOT_DIR_ABS/linux" || { + echo "Could not copy '$KERNEL_IMAGE to '$BOOT_DIR_ABS/linux'." >&2 + exit 1 +} + +mkdir -p "${LOADER_ENTRY%/*}" || { + echo "Could not create loader entry directory '${LOADER_ENTRY%/*}'." >&2 + exit 1 +} + +{ + echo "title $PRETTY_NAME" + echo "version $KERNEL_VERSION" + echo "machine-id $MACHINE_ID" + echo "options ${BOOT_OPTIONS[*]}" + echo "linux $BOOT_DIR/linux" + [[ -f $BOOT_DIR_ABS/initrd ]] && \ + echo "initrd $BOOT_DIR/initrd" + : +} > "$LOADER_ENTRY" || { + echo "Could not create loader entry '$LOADER_ENTRY'." >&2 + exit 1 +} +exit 0 diff --git a/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/XX/inout.dev b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/XX/inout.dev new file mode 100644 index 0000000..0e36aef --- /dev/null +++ b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/XX/inout.dev @@ -0,0 +1,48 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/atom.install b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/atom.install new file mode 100644 index 0000000..a793689 --- /dev/null +++ b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/atom.install @@ -0,0 +1,16 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/inout.dev b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/inout.dev new file mode 100644 index 0000000..0e36aef --- /dev/null +++ b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/inout.dev @@ -0,0 +1,48 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/play.in b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/play.in new file mode 100644 index 0000000000000000000000000000000000000000..06d7405020018ddf3cacee90fd4af10487da3d20 GIT binary patch literal 1024 ScmZQz7zLvtFd70QH3R?z00031 literal 0 HcmV?d00001 diff --git a/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/settings.sh b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/settings.sh new file mode 100644 index 0000000..ada62ea --- /dev/null +++ b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/CC/settings.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/DD/YY/inout.dev b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/DD/YY/inout.dev new file mode 100644 index 0000000..0e36aef --- /dev/null +++ b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/DD/YY/inout.dev @@ -0,0 +1,48 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/DD/inout.dev b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/DD/inout.dev new file mode 100644 index 0000000..0e36aef --- /dev/null +++ b/SCR1.2/TP09/TREE/lib/kernel/config/AA/BB/DD/inout.dev @@ -0,0 +1,48 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TREE/lib/kernel/config/AA/CC b/SCR1.2/TP09/TREE/lib/kernel/config/AA/CC new file mode 100644 index 0000000..0e36aef --- /dev/null +++ b/SCR1.2/TP09/TREE/lib/kernel/config/AA/CC @@ -0,0 +1,48 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TREE/lib/krb5/plugins/inout.dev b/SCR1.2/TP09/TREE/lib/krb5/plugins/inout.dev new file mode 100644 index 0000000..0e36aef --- /dev/null +++ b/SCR1.2/TP09/TREE/lib/krb5/plugins/inout.dev @@ -0,0 +1,48 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TREE/lib/krb5/plugins/play.in b/SCR1.2/TP09/TREE/lib/krb5/plugins/play.in new file mode 100644 index 0000000000000000000000000000000000000000..06d7405020018ddf3cacee90fd4af10487da3d20 GIT binary patch literal 1024 ScmZQz7zLvtFd70QH3R?z00031 literal 0 HcmV?d00001 diff --git a/SCR1.2/TP09/TREE/lib/krb5/synch/atom.install b/SCR1.2/TP09/TREE/lib/krb5/synch/atom.install new file mode 100644 index 0000000..a793689 --- /dev/null +++ b/SCR1.2/TP09/TREE/lib/krb5/synch/atom.install @@ -0,0 +1,16 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TREE/lib/krb5/synch/settings.sh b/SCR1.2/TP09/TREE/lib/krb5/synch/settings.sh new file mode 100644 index 0000000..ada62ea --- /dev/null +++ b/SCR1.2/TP09/TREE/lib/krb5/synch/settings.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/50-depmod.install b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/50-depmod.install new file mode 100755 index 0000000..68c24be --- /dev/null +++ b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/50-depmod.install @@ -0,0 +1,8 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install new file mode 100755 index 0000000..c8f51ba --- /dev/null +++ b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install @@ -0,0 +1,12 @@ +#!/bin/sh + +case $1 in + add) + mkinitcpio -k "$2" -g "$3"/initrd + ;; + remove) + rm -f -- "$3"/initrd + ;; +esac + +# vim: set ft=sh ts=4 sw=4 et: diff --git a/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/90-loaderentry.install b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/90-loaderentry.install new file mode 100755 index 0000000..c17b8a9 --- /dev/null +++ b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/90-loaderentry.install @@ -0,0 +1,89 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +COMMAND="$1" +KERNEL_VERSION="$2" +BOOT_DIR_ABS="$3" +KERNEL_IMAGE="$4" + +if [[ -f /etc/machine-id ]]; then + read MACHINE_ID < /etc/machine-id +fi + +if ! [[ $MACHINE_ID ]]; then + exit 1 +fi + +BOOT_DIR="/$MACHINE_ID/$KERNEL_VERSION" +LOADER_ENTRY="/boot/loader/entries/$MACHINE_ID-$KERNEL_VERSION.conf" + +if [[ $COMMAND == remove ]]; then + exec rm -f "$LOADER_ENTRY" +fi + +if ! [[ $COMMAND == add ]]; then + exit 1 +fi + +if ! [[ $KERNEL_IMAGE ]]; then + exit 1 +fi + +if [[ -f /etc/os-release ]]; then + . /etc/os-release +elif [[ -f /usr/lib/os-release ]]; then + . /usr/lib/os-release +fi + +if ! [[ $PRETTY_NAME ]]; then + PRETTY_NAME="Linux $KERNEL_VERSION" +fi + +declare -a BOOT_OPTIONS + +if [[ -f /etc/kernel/cmdline ]]; then + readarray -t BOOT_OPTIONS < /etc/kernel/cmdline +fi + +if ! [[ ${BOOT_OPTIONS[*]} ]]; then + readarray -t line < /proc/cmdline + for i in ${line[*]}; do + if [[ "${i#initrd=*}" == "$i" ]]; then + BOOT_OPTIONS[${#BOOT_OPTIONS[@]}]="$i" + fi + done +fi + +if ! [[ ${BOOT_OPTIONS[*]} ]]; then + echo "Could not determine the kernel command line parameters." >&2 + echo "Please specify the kernel command line in /etc/kernel/cmdline!" >&2 + exit 1 +fi + +cp "$KERNEL_IMAGE" "$BOOT_DIR_ABS/linux" && + chown root:root "$BOOT_DIR_ABS/linux" && + chmod 0644 "$BOOT_DIR_ABS/linux" || { + echo "Could not copy '$KERNEL_IMAGE to '$BOOT_DIR_ABS/linux'." >&2 + exit 1 +} + +mkdir -p "${LOADER_ENTRY%/*}" || { + echo "Could not create loader entry directory '${LOADER_ENTRY%/*}'." >&2 + exit 1 +} + +{ + echo "title $PRETTY_NAME" + echo "version $KERNEL_VERSION" + echo "machine-id $MACHINE_ID" + echo "options ${BOOT_OPTIONS[*]}" + echo "linux $BOOT_DIR/linux" + [[ -f $BOOT_DIR_ABS/initrd ]] && \ + echo "initrd $BOOT_DIR/initrd" + : +} > "$LOADER_ENTRY" || { + echo "Could not create loader entry '$LOADER_ENTRY'." >&2 + exit 1 +} +exit 0 diff --git a/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/XX/inout.dev b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/XX/inout.dev new file mode 100644 index 0000000..0e36aef --- /dev/null +++ b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/XX/inout.dev @@ -0,0 +1,48 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/atom.install b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/atom.install new file mode 100644 index 0000000..a793689 --- /dev/null +++ b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/atom.install @@ -0,0 +1,16 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/inout.dev b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/inout.dev new file mode 100644 index 0000000..0e36aef --- /dev/null +++ b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/inout.dev @@ -0,0 +1,48 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/play.in b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/play.in new file mode 100644 index 0000000000000000000000000000000000000000..06d7405020018ddf3cacee90fd4af10487da3d20 GIT binary patch literal 1024 ScmZQz7zLvtFd70QH3R?z00031 literal 0 HcmV?d00001 diff --git a/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/settings.sh b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/settings.sh new file mode 100644 index 0000000..ada62ea --- /dev/null +++ b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/CC/settings.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/DD/YY/inout.dev b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/DD/YY/inout.dev new file mode 100644 index 0000000..0e36aef --- /dev/null +++ b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/DD/YY/inout.dev @@ -0,0 +1,48 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/DD/inout.dev b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/DD/inout.dev new file mode 100644 index 0000000..0e36aef --- /dev/null +++ b/SCR1.2/TP09/TRee/lib/kernel/config/AA/BB/DD/inout.dev @@ -0,0 +1,48 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TRee/lib/kernel/config/AA/CC b/SCR1.2/TP09/TRee/lib/kernel/config/AA/CC new file mode 100644 index 0000000..0e36aef --- /dev/null +++ b/SCR1.2/TP09/TRee/lib/kernel/config/AA/CC @@ -0,0 +1,48 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TRee/lib/krb5/plugins/inout.dev b/SCR1.2/TP09/TRee/lib/krb5/plugins/inout.dev new file mode 100644 index 0000000..0e36aef --- /dev/null +++ b/SCR1.2/TP09/TRee/lib/krb5/plugins/inout.dev @@ -0,0 +1,48 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TRee/lib/krb5/plugins/play.in b/SCR1.2/TP09/TRee/lib/krb5/plugins/play.in new file mode 100644 index 0000000000000000000000000000000000000000..06d7405020018ddf3cacee90fd4af10487da3d20 GIT binary patch literal 1024 ScmZQz7zLvtFd70QH3R?z00031 literal 0 HcmV?d00001 diff --git a/SCR1.2/TP09/TRee/lib/krb5/synch/atom.install b/SCR1.2/TP09/TRee/lib/krb5/synch/atom.install new file mode 100644 index 0000000..a793689 --- /dev/null +++ b/SCR1.2/TP09/TRee/lib/krb5/synch/atom.install @@ -0,0 +1,16 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/TRee/lib/krb5/synch/settings.sh b/SCR1.2/TP09/TRee/lib/krb5/synch/settings.sh new file mode 100644 index 0000000..ada62ea --- /dev/null +++ b/SCR1.2/TP09/TRee/lib/krb5/synch/settings.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" diff --git a/SCR1.2/TP09/tp09-reponses.txt b/SCR1.2/TP09/tp09-reponses.txt new file mode 100644 index 0000000..a59915f --- /dev/null +++ b/SCR1.2/TP09/tp09-reponses.txt @@ -0,0 +1,60 @@ +Partie I / Question 1) +find . -name "*.install" -type d +Question 2) +find . -name "*.d" -type f +Question 3) +find . -empty -type d +Question 4) +find . -size -1000c -type f +Question 5) +find . -size +30000c -type f +Question 6) +find . -size -1k -type f +Question 7) +find . -size 2b -type f +Question 8) +find . -size +30b -type f +Question 9) +find . -size -3b -type f +Question 10) +find . -size +1b -type f -size -4b +Question 11) +find . -newer lib/krb5/synch/atom.install +Question 12) +find ./lib/krb5/synch/ -mtime -4 +Question 13) +find /lib/kernel/install.d -mtime +3 +Question 14) +find -mtime 3 -atime 2 +Question 15) +find -type d -perm /022 +Question 16) +find -type d -perm -444 +Question 17) +find -type d -perm 644 + +Partie II / Question 1) +cp $(find . -maxdepth 4 -type f -name "[(:digit:)]*") lib/kernel/config/AA/BB/CC/ +cp $(find . -maxdepth 4 -type f -name "[(:digit:)]*") lib/kernel/config/AA/BB/CC/XX +cp $(find . -maxdepth 4 -type f -name "[(:digit:)]*") lib/kernel/config/AA/BB/DD +cp $(find . -maxdepth 4 -type f -name "[(:digit:)]*") lib/kernel/config/AA/BB/DD/YY + +find . -maxdepth 4 -type f -name "[(:digit:)]*" -exec cp '{}' lib/kernel/config/AA/BB/CC \; +find . -maxdepth 4 -type f -name "[(:digit:)]*" -exec cp '{}' lib/kernel/config/AA/BB/CC/XX \; +find . -maxdepth 4 -type f -name "[(:digit:)]*" -exec cp '{}' lib/kernel/config/AA/BB/DD \; +find . -maxdepth 4 -type f -name "[(:digit:)]*" -exec cp '{}' lib/kernel/config/AA/BB/DD/YY \; + +Question 2) +find . -amin +30 + +Question 3) +find . -mindepth 6 -type d -name "[[:upper:]]*" -exec chmod 0700 {} \; + +Question 4) +find . -cmin +15 + +Partie III / Question 1) +find / -type f -name "*.h" -print -quit 2> /dev/null + +Question 2) +find / -newer ../TRee/lib/kernel/config/AA/BB/DD/YY/transm.d -printf "%p -- %c\n" 2> /dev/null \ No newline at end of file