From d3f47544196f4be17f63eab150608764e57f26c7 Mon Sep 17 00:00:00 2001 From: ngwalang Date: Tue, 29 Nov 2022 16:00:02 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A9organisation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 TP04/tp04-reponses.txt | 13 - TP05/tp05-reponses.txt | 51 --- TP06/GLOB/11glob22blog3 | 0 TP06/GLOB/1glob | 0 TP06/GLOB/1glob22 | 0 TP06/GLOB/1glob22gloB333 | 0 TP06/GLOB/gLob/44patterN | 0 TP06/GLOB/gLob/Pattern4 | 0 TP06/GLOB/gLob/pAtterN | 0 TP06/GLOB/gLob/paTTerN/theglobpattern | 0 TP06/GLOB/gLob/patterN | 0 TP06/GLOB/gloB1bloG | 0 TP06/any2dec_inv.sh | 31 -- TP06/tp06-reponses.txt | 12 - TP07/find-output.txt | 160 --------- TP07/ls-output.txt | 158 --------- TP07/sort | 316 ------------------ TP07/tp07-reponses.txt | 13 - TP08/my_seq.sh | 16 - 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 --- TP09/TREE/lib/kernel/config/AA/BB/CC/play.in | Bin 1024 -> 0 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 --- TP09/TREE/lib/kernel/config/AA/CC | 48 --- TP09/TREE/lib/krb5/plugins/inout.dev | 48 --- TP09/TREE/lib/krb5/plugins/play.in | Bin 1024 -> 0 bytes TP09/TREE/lib/krb5/synch/atom.install | 16 - 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 --- TP09/TRee/lib/kernel/config/AA/BB/CC/play.in | Bin 1024 -> 0 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 --- TP09/TRee/lib/kernel/config/AA/CC | 48 --- TP09/TRee/lib/krb5/plugins/inout.dev | 48 --- TP09/TRee/lib/krb5/plugins/play.in | Bin 1024 -> 0 bytes TP09/TRee/lib/krb5/synch/atom.install | 16 - TP09/TRee/lib/krb5/synch/settings.sh | 24 -- TP09/tp09-reponses.txt | 60 ---- 59 files changed, 1850 deletions(-) delete mode 100644 TP02/FT6 delete mode 100644 TP02/FichierTest3 delete mode 100644 TP02/FichierTest4 delete mode 100644 TP02/fi delete mode 100644 TP02/fifi delete mode 100644 TP02/tp02-reponses.txt delete mode 100644 TP03/TP03.txt delete mode 100644 TP03/y.txt delete mode 100644 TP04/tp04-reponses.txt delete mode 100644 TP05/tp05-reponses.txt delete mode 100644 TP06/GLOB/11glob22blog3 delete mode 100644 TP06/GLOB/1glob delete mode 100644 TP06/GLOB/1glob22 delete mode 100644 TP06/GLOB/1glob22gloB333 delete mode 100644 TP06/GLOB/gLob/44patterN delete mode 100644 TP06/GLOB/gLob/Pattern4 delete mode 100644 TP06/GLOB/gLob/pAtterN delete mode 100644 TP06/GLOB/gLob/paTTerN/theglobpattern delete mode 100644 TP06/GLOB/gLob/patterN delete mode 100644 TP06/GLOB/gloB1bloG delete mode 100755 TP06/any2dec_inv.sh delete mode 100644 TP06/tp06-reponses.txt delete mode 100644 TP07/find-output.txt delete mode 100644 TP07/ls-output.txt delete mode 100644 TP07/sort delete mode 100644 TP07/tp07-reponses.txt delete mode 100755 TP08/my_seq.sh delete mode 100644 TP08/tp08-reponses.txt delete mode 100755 TP09/TREE/lib/kernel/config/AA/BB/CC/50-depmod.install delete mode 100755 TP09/TREE/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install delete mode 100755 TP09/TREE/lib/kernel/config/AA/BB/CC/90-loaderentry.install delete mode 100644 TP09/TREE/lib/kernel/config/AA/BB/CC/XX/inout.dev delete mode 100644 TP09/TREE/lib/kernel/config/AA/BB/CC/atom.install delete mode 100644 TP09/TREE/lib/kernel/config/AA/BB/CC/inout.dev delete mode 100644 TP09/TREE/lib/kernel/config/AA/BB/CC/play.in delete mode 100644 TP09/TREE/lib/kernel/config/AA/BB/CC/settings.sh delete mode 100644 TP09/TREE/lib/kernel/config/AA/BB/DD/YY/inout.dev delete mode 100644 TP09/TREE/lib/kernel/config/AA/BB/DD/inout.dev delete mode 100644 TP09/TREE/lib/kernel/config/AA/CC delete mode 100644 TP09/TREE/lib/krb5/plugins/inout.dev delete mode 100644 TP09/TREE/lib/krb5/plugins/play.in delete mode 100644 TP09/TREE/lib/krb5/synch/atom.install delete mode 100644 TP09/TREE/lib/krb5/synch/settings.sh delete mode 100755 TP09/TRee/lib/kernel/config/AA/BB/CC/50-depmod.install delete mode 100755 TP09/TRee/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install delete mode 100755 TP09/TRee/lib/kernel/config/AA/BB/CC/90-loaderentry.install delete mode 100644 TP09/TRee/lib/kernel/config/AA/BB/CC/XX/inout.dev delete mode 100644 TP09/TRee/lib/kernel/config/AA/BB/CC/atom.install delete mode 100644 TP09/TRee/lib/kernel/config/AA/BB/CC/inout.dev delete mode 100644 TP09/TRee/lib/kernel/config/AA/BB/CC/play.in delete mode 100644 TP09/TRee/lib/kernel/config/AA/BB/CC/settings.sh delete mode 100644 TP09/TRee/lib/kernel/config/AA/BB/DD/YY/inout.dev delete mode 100644 TP09/TRee/lib/kernel/config/AA/BB/DD/inout.dev delete mode 100644 TP09/TRee/lib/kernel/config/AA/CC delete mode 100644 TP09/TRee/lib/krb5/plugins/inout.dev delete mode 100644 TP09/TRee/lib/krb5/plugins/play.in delete mode 100644 TP09/TRee/lib/krb5/synch/atom.install delete mode 100644 TP09/TRee/lib/krb5/synch/settings.sh delete mode 100644 TP09/tp09-reponses.txt diff --git a/TP02/FT6 b/TP02/FT6 deleted file mode 100644 index 0013451..0000000 --- a/TP02/FT6 +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index f9264f7..0000000 --- a/TP02/FichierTest3 +++ /dev/null @@ -1,2 +0,0 @@ -Hello -World diff --git a/TP02/FichierTest4 b/TP02/FichierTest4 deleted file mode 100644 index e69de29..0000000 diff --git a/TP02/fi b/TP02/fi deleted file mode 100644 index e69de29..0000000 diff --git a/TP02/fifi b/TP02/fifi deleted file mode 100644 index e69de29..0000000 diff --git a/TP02/tp02-reponses.txt b/TP02/tp02-reponses.txt deleted file mode 100644 index 5a331c8..0000000 --- a/TP02/tp02-reponses.txt +++ /dev/null @@ -1,36 +0,0 @@ -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 deleted file mode 100644 index 5518f33..0000000 --- a/TP03/TP03.txt +++ /dev/null @@ -1,22 +0,0 @@ -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 deleted file mode 100644 index e69de29..0000000 diff --git a/TP04/tp04-reponses.txt b/TP04/tp04-reponses.txt deleted file mode 100644 index 19ad30e..0000000 --- a/TP04/tp04-reponses.txt +++ /dev/null @@ -1,13 +0,0 @@ -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/TP05/tp05-reponses.txt b/TP05/tp05-reponses.txt deleted file mode 100644 index 04ec346..0000000 --- a/TP05/tp05-reponses.txt +++ /dev/null @@ -1,51 +0,0 @@ -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/TP06/GLOB/11glob22blog3 b/TP06/GLOB/11glob22blog3 deleted file mode 100644 index e69de29..0000000 diff --git a/TP06/GLOB/1glob b/TP06/GLOB/1glob deleted file mode 100644 index e69de29..0000000 diff --git a/TP06/GLOB/1glob22 b/TP06/GLOB/1glob22 deleted file mode 100644 index e69de29..0000000 diff --git a/TP06/GLOB/1glob22gloB333 b/TP06/GLOB/1glob22gloB333 deleted file mode 100644 index e69de29..0000000 diff --git a/TP06/GLOB/gLob/44patterN b/TP06/GLOB/gLob/44patterN deleted file mode 100644 index e69de29..0000000 diff --git a/TP06/GLOB/gLob/Pattern4 b/TP06/GLOB/gLob/Pattern4 deleted file mode 100644 index e69de29..0000000 diff --git a/TP06/GLOB/gLob/pAtterN b/TP06/GLOB/gLob/pAtterN deleted file mode 100644 index e69de29..0000000 diff --git a/TP06/GLOB/gLob/paTTerN/theglobpattern b/TP06/GLOB/gLob/paTTerN/theglobpattern deleted file mode 100644 index e69de29..0000000 diff --git a/TP06/GLOB/gLob/patterN b/TP06/GLOB/gLob/patterN deleted file mode 100644 index e69de29..0000000 diff --git a/TP06/GLOB/gloB1bloG b/TP06/GLOB/gloB1bloG deleted file mode 100644 index e69de29..0000000 diff --git a/TP06/any2dec_inv.sh b/TP06/any2dec_inv.sh deleted file mode 100755 index ced6713..0000000 --- a/TP06/any2dec_inv.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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/TP07/sort b/TP07/sort deleted file mode 100644 index d5629b9..0000000 --- a/TP07/sort +++ /dev/null @@ -1,316 +0,0 @@ -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/TP07/tp07-reponses.txt b/TP07/tp07-reponses.txt deleted file mode 100644 index 816bbd0..0000000 --- a/TP07/tp07-reponses.txt +++ /dev/null @@ -1,13 +0,0 @@ -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/TP08/my_seq.sh b/TP08/my_seq.sh deleted file mode 100755 index d91c4a0..0000000 --- a/TP08/my_seq.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/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/TP08/tp08-reponses.txt b/TP08/tp08-reponses.txt deleted file mode 100644 index e8616d8..0000000 --- a/TP08/tp08-reponses.txt +++ /dev/null @@ -1,4 +0,0 @@ -Question 3b) -echo "$? x=$x" affiche 0 x = 7 -echo "$? x=$x" affiche 0 x = -echo "$? x=$x" affiche 1 x = diff --git a/TP09/TREE/lib/kernel/config/AA/BB/CC/50-depmod.install b/TP09/TREE/lib/kernel/config/AA/BB/CC/50-depmod.install deleted file mode 100755 index 68c24be..0000000 --- a/TP09/TREE/lib/kernel/config/AA/BB/CC/50-depmod.install +++ /dev/null @@ -1,8 +0,0 @@ -#!/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/TP09/TREE/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install b/TP09/TREE/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install deleted file mode 100755 index c8f51ba..0000000 --- a/TP09/TREE/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install +++ /dev/null @@ -1,12 +0,0 @@ -#!/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/TP09/TREE/lib/kernel/config/AA/BB/CC/90-loaderentry.install b/TP09/TREE/lib/kernel/config/AA/BB/CC/90-loaderentry.install deleted file mode 100755 index c17b8a9..0000000 --- a/TP09/TREE/lib/kernel/config/AA/BB/CC/90-loaderentry.install +++ /dev/null @@ -1,89 +0,0 @@ -#!/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/TP09/TREE/lib/kernel/config/AA/BB/CC/XX/inout.dev b/TP09/TREE/lib/kernel/config/AA/BB/CC/XX/inout.dev deleted file mode 100644 index 0e36aef..0000000 --- a/TP09/TREE/lib/kernel/config/AA/BB/CC/XX/inout.dev +++ /dev/null @@ -1,48 +0,0 @@ -#!/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/TP09/TREE/lib/kernel/config/AA/BB/CC/atom.install b/TP09/TREE/lib/kernel/config/AA/BB/CC/atom.install deleted file mode 100644 index a793689..0000000 --- a/TP09/TREE/lib/kernel/config/AA/BB/CC/atom.install +++ /dev/null @@ -1,16 +0,0 @@ -#!/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/TP09/TREE/lib/kernel/config/AA/BB/CC/inout.dev b/TP09/TREE/lib/kernel/config/AA/BB/CC/inout.dev deleted file mode 100644 index 0e36aef..0000000 --- a/TP09/TREE/lib/kernel/config/AA/BB/CC/inout.dev +++ /dev/null @@ -1,48 +0,0 @@ -#!/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/TP09/TREE/lib/kernel/config/AA/BB/CC/play.in b/TP09/TREE/lib/kernel/config/AA/BB/CC/play.in deleted file mode 100644 index 06d7405020018ddf3cacee90fd4af10487da3d20..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1024 ScmZQz7zLvtFd70QH3R?z00031 diff --git a/TP09/TREE/lib/kernel/config/AA/BB/CC/settings.sh b/TP09/TREE/lib/kernel/config/AA/BB/CC/settings.sh deleted file mode 100644 index ada62ea..0000000 --- a/TP09/TREE/lib/kernel/config/AA/BB/CC/settings.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/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/TP09/TREE/lib/kernel/config/AA/BB/DD/YY/inout.dev b/TP09/TREE/lib/kernel/config/AA/BB/DD/YY/inout.dev deleted file mode 100644 index 0e36aef..0000000 --- a/TP09/TREE/lib/kernel/config/AA/BB/DD/YY/inout.dev +++ /dev/null @@ -1,48 +0,0 @@ -#!/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/TP09/TREE/lib/kernel/config/AA/BB/DD/inout.dev b/TP09/TREE/lib/kernel/config/AA/BB/DD/inout.dev deleted file mode 100644 index 0e36aef..0000000 --- a/TP09/TREE/lib/kernel/config/AA/BB/DD/inout.dev +++ /dev/null @@ -1,48 +0,0 @@ -#!/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/TP09/TREE/lib/kernel/config/AA/CC b/TP09/TREE/lib/kernel/config/AA/CC deleted file mode 100644 index 0e36aef..0000000 --- a/TP09/TREE/lib/kernel/config/AA/CC +++ /dev/null @@ -1,48 +0,0 @@ -#!/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/TP09/TREE/lib/krb5/plugins/inout.dev b/TP09/TREE/lib/krb5/plugins/inout.dev deleted file mode 100644 index 0e36aef..0000000 --- a/TP09/TREE/lib/krb5/plugins/inout.dev +++ /dev/null @@ -1,48 +0,0 @@ -#!/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/TP09/TREE/lib/krb5/plugins/play.in b/TP09/TREE/lib/krb5/plugins/play.in deleted file mode 100644 index 06d7405020018ddf3cacee90fd4af10487da3d20..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1024 ScmZQz7zLvtFd70QH3R?z00031 diff --git a/TP09/TREE/lib/krb5/synch/atom.install b/TP09/TREE/lib/krb5/synch/atom.install deleted file mode 100644 index a793689..0000000 --- a/TP09/TREE/lib/krb5/synch/atom.install +++ /dev/null @@ -1,16 +0,0 @@ -#!/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/TP09/TREE/lib/krb5/synch/settings.sh b/TP09/TREE/lib/krb5/synch/settings.sh deleted file mode 100644 index ada62ea..0000000 --- a/TP09/TREE/lib/krb5/synch/settings.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/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/TP09/TRee/lib/kernel/config/AA/BB/CC/50-depmod.install b/TP09/TRee/lib/kernel/config/AA/BB/CC/50-depmod.install deleted file mode 100755 index 68c24be..0000000 --- a/TP09/TRee/lib/kernel/config/AA/BB/CC/50-depmod.install +++ /dev/null @@ -1,8 +0,0 @@ -#!/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/TP09/TRee/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install b/TP09/TRee/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install deleted file mode 100755 index c8f51ba..0000000 --- a/TP09/TRee/lib/kernel/config/AA/BB/CC/50-mkinitcpio.install +++ /dev/null @@ -1,12 +0,0 @@ -#!/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/TP09/TRee/lib/kernel/config/AA/BB/CC/90-loaderentry.install b/TP09/TRee/lib/kernel/config/AA/BB/CC/90-loaderentry.install deleted file mode 100755 index c17b8a9..0000000 --- a/TP09/TRee/lib/kernel/config/AA/BB/CC/90-loaderentry.install +++ /dev/null @@ -1,89 +0,0 @@ -#!/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/TP09/TRee/lib/kernel/config/AA/BB/CC/XX/inout.dev b/TP09/TRee/lib/kernel/config/AA/BB/CC/XX/inout.dev deleted file mode 100644 index 0e36aef..0000000 --- a/TP09/TRee/lib/kernel/config/AA/BB/CC/XX/inout.dev +++ /dev/null @@ -1,48 +0,0 @@ -#!/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/TP09/TRee/lib/kernel/config/AA/BB/CC/atom.install b/TP09/TRee/lib/kernel/config/AA/BB/CC/atom.install deleted file mode 100644 index a793689..0000000 --- a/TP09/TRee/lib/kernel/config/AA/BB/CC/atom.install +++ /dev/null @@ -1,16 +0,0 @@ -#!/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/TP09/TRee/lib/kernel/config/AA/BB/CC/inout.dev b/TP09/TRee/lib/kernel/config/AA/BB/CC/inout.dev deleted file mode 100644 index 0e36aef..0000000 --- a/TP09/TRee/lib/kernel/config/AA/BB/CC/inout.dev +++ /dev/null @@ -1,48 +0,0 @@ -#!/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/TP09/TRee/lib/kernel/config/AA/BB/CC/play.in b/TP09/TRee/lib/kernel/config/AA/BB/CC/play.in deleted file mode 100644 index 06d7405020018ddf3cacee90fd4af10487da3d20..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1024 ScmZQz7zLvtFd70QH3R?z00031 diff --git a/TP09/TRee/lib/kernel/config/AA/BB/CC/settings.sh b/TP09/TRee/lib/kernel/config/AA/BB/CC/settings.sh deleted file mode 100644 index ada62ea..0000000 --- a/TP09/TRee/lib/kernel/config/AA/BB/CC/settings.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/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/TP09/TRee/lib/kernel/config/AA/BB/DD/YY/inout.dev b/TP09/TRee/lib/kernel/config/AA/BB/DD/YY/inout.dev deleted file mode 100644 index 0e36aef..0000000 --- a/TP09/TRee/lib/kernel/config/AA/BB/DD/YY/inout.dev +++ /dev/null @@ -1,48 +0,0 @@ -#!/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/TP09/TRee/lib/kernel/config/AA/BB/DD/inout.dev b/TP09/TRee/lib/kernel/config/AA/BB/DD/inout.dev deleted file mode 100644 index 0e36aef..0000000 --- a/TP09/TRee/lib/kernel/config/AA/BB/DD/inout.dev +++ /dev/null @@ -1,48 +0,0 @@ -#!/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/TP09/TRee/lib/kernel/config/AA/CC b/TP09/TRee/lib/kernel/config/AA/CC deleted file mode 100644 index 0e36aef..0000000 --- a/TP09/TRee/lib/kernel/config/AA/CC +++ /dev/null @@ -1,48 +0,0 @@ -#!/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/TP09/TRee/lib/krb5/plugins/inout.dev b/TP09/TRee/lib/krb5/plugins/inout.dev deleted file mode 100644 index 0e36aef..0000000 --- a/TP09/TRee/lib/krb5/plugins/inout.dev +++ /dev/null @@ -1,48 +0,0 @@ -#!/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/TP09/TRee/lib/krb5/plugins/play.in b/TP09/TRee/lib/krb5/plugins/play.in deleted file mode 100644 index 06d7405020018ddf3cacee90fd4af10487da3d20..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1024 ScmZQz7zLvtFd70QH3R?z00031 diff --git a/TP09/TRee/lib/krb5/synch/atom.install b/TP09/TRee/lib/krb5/synch/atom.install deleted file mode 100644 index a793689..0000000 --- a/TP09/TRee/lib/krb5/synch/atom.install +++ /dev/null @@ -1,16 +0,0 @@ -#!/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/TP09/TRee/lib/krb5/synch/settings.sh b/TP09/TRee/lib/krb5/synch/settings.sh deleted file mode 100644 index ada62ea..0000000 --- a/TP09/TRee/lib/krb5/synch/settings.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/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/TP09/tp09-reponses.txt b/TP09/tp09-reponses.txt deleted file mode 100644 index a59915f..0000000 --- a/TP09/tp09-reponses.txt +++ /dev/null @@ -1,60 +0,0 @@ -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