commit 08494029eabc9fd9d72401564776775732a8f291 Author: Simon Saye Babu Date: Wed Nov 16 09:17:18 2022 +0100 1st commit SCR diff --git a/SCR.1.2/TP06/GLOB/11glob22blog3 b/SCR.1.2/TP06/GLOB/11glob22blog3 new file mode 100644 index 0000000..e69de29 diff --git a/SCR.1.2/TP06/GLOB/1glob b/SCR.1.2/TP06/GLOB/1glob new file mode 100644 index 0000000..e69de29 diff --git a/SCR.1.2/TP06/GLOB/1glob22 b/SCR.1.2/TP06/GLOB/1glob22 new file mode 100644 index 0000000..e69de29 diff --git a/SCR.1.2/TP06/GLOB/1glob22gloB333 b/SCR.1.2/TP06/GLOB/1glob22gloB333 new file mode 100644 index 0000000..e69de29 diff --git a/SCR.1.2/TP06/GLOB/gLob/44patterN b/SCR.1.2/TP06/GLOB/gLob/44patterN new file mode 100644 index 0000000..e69de29 diff --git a/SCR.1.2/TP06/GLOB/gLob/Pattern4 b/SCR.1.2/TP06/GLOB/gLob/Pattern4 new file mode 100644 index 0000000..e69de29 diff --git a/SCR.1.2/TP06/GLOB/gLob/pAtterN b/SCR.1.2/TP06/GLOB/gLob/pAtterN new file mode 100644 index 0000000..e69de29 diff --git a/SCR.1.2/TP06/GLOB/gLob/paTTerN/theglobpattern b/SCR.1.2/TP06/GLOB/gLob/paTTerN/theglobpattern new file mode 100644 index 0000000..e69de29 diff --git a/SCR.1.2/TP06/GLOB/gLob/patterN b/SCR.1.2/TP06/GLOB/gLob/patterN new file mode 100644 index 0000000..e69de29 diff --git a/SCR.1.2/TP06/GLOB/gloB1bloG b/SCR.1.2/TP06/GLOB/gloB1bloG new file mode 100644 index 0000000..e69de29 diff --git a/SCR.1.2/TP06/globpattern.tar b/SCR.1.2/TP06/globpattern.tar new file mode 100644 index 0000000..0b8e547 Binary files /dev/null and b/SCR.1.2/TP06/globpattern.tar differ diff --git a/SCR.1.2/TP06/tp06-reponse.txt b/SCR.1.2/TP06/tp06-reponse.txt new file mode 100644 index 0000000..b6785d2 --- /dev/null +++ b/SCR.1.2/TP06/tp06-reponse.txt @@ -0,0 +1,144 @@ +1) ls ./GLOB/gLob *[[:upper:]] +44patterN patterN paTTerN pAtterN Pattern4 +2) ls -dGLOB/*[[:upper:]]* +3) ls -d GLOB/?[[:digit:]]* +4) ls -d GLOB/*[[:digit:]][[:digit:]]* + +II- +1) +Pathname Expansion + After word splitting, unless the -f option has been set, bash scans + each word for the characters *, ?, and [. If one of these characters + appears, and is not quoted, then the word is regarded as a pattern, and + replaced with an alphabetically sorted list of filenames matching the + pattern (see Pattern Matching below). If no matching filenames are + found, and the shell option nullglob is not enabled, the word is left + unchanged. If the nullglob option is set, and no matches are found, + the word is removed. If the failglob shell option is set, and no + matches are found, an error message is printed and the command is not + executed. If the shell option nocaseglob is enabled, the match is per‐ + formed without regard to the case of alphabetic characters. When a + pattern is used for pathname expansion, the character ``.'' at the + start of a name or immediately following a slash must be matched ex‐ + plicitly, unless the shell option dotglob is set. The filenames ``.'' + and ``..'' must always be matched explicitly, even if dotglob is set. + In other cases, the ``.'' character is not treated specially. When + matching a pathname, the slash character must always be matched explic‐ + itly by a slash in the pattern, but in other matching contexts it can + be matched by a special pattern character as described below under Pat‐ + tern Matching. See the description of shopt below under SHELL BUILTIN + COMMANDS for a description of the nocaseglob, nullglob, failglob, and + dotglob shell options. + + The GLOBIGNORE shell variable may be used to restrict the set of file + names matching a pattern. If GLOBIGNORE is set, each matching file + name that also matches one of the patterns in GLOBIGNORE is removed + from the list of matches. If the nocaseglob option is set, the match‐ + ing against the patterns in GLOBIGNORE is performed without regard to + case. The filenames ``.'' and ``..'' are always ignored when GLOBIG‐ + NORE is set and not null. However, setting GLOBIGNORE to a non-null + value has the effect of enabling the dotglob shell option, so all other + filenames beginning with a ``.'' will match. To get the old behavior + of ignoring filenames beginning with a ``.'', make ``.*'' one of the + patterns in GLOBIGNORE. The dotglob option is disabled when GLOBIGNORE + is unset. The pattern matching honors the setting of the extglob shell + option. + + Pattern Matching + + Any character that appears in a pattern, other than the special pattern + characters described below, matches itself. The NUL character may not + occur in a pattern. A backslash escapes the following character; the + escaping backslash is discarded when matching. The special pattern + characters must be quoted if they are to be matched literally. + + The special pattern characters have the following meanings: + + * Matches any string, including the null string. When the + globstar shell option is enabled, and * is used in a + pathname expansion context, two adjacent *s used as a + single pattern will match all files and zero or more di‐ + rectories and subdirectories. If followed by a /, two + adjacent *s will match only directories and subdirecto‐ + ries. + ? Matches any single character. + [...] Matches any one of the enclosed characters. A pair of + characters separated by a hyphen denotes a range expres‐ + sion; any character that falls between those two charac‐ + ters, inclusive, using the current locale's collating se‐ + quence and character set, is matched. If the first char‐ + acter following the [ is a ! or a ^ then any character + not enclosed is matched. The sorting order of characters + in range expressions is determined by the current locale + and the values of the LC_COLLATE or LC_ALL shell vari‐ + ables, if set. To obtain the traditional interpretation + of range expressions, where [a-d] is equivalent to + [abcd], set value of the LC_ALL shell variable to C, or + enable the globasciiranges shell option. A - may be + matched by including it as the first or last character in + the set. A ] may be matched by including it as the first + character in the set. + Within [ and ], character classes can be specified using + the syntax [:class:], where class is one of the following + classes defined in the POSIX standard: + alnum alpha ascii blank cntrl digit graph lower print + punct space upper word xdigit + A character class matches any character belonging to that + class. The word character class matches letters, digits, + and the character _. + + Within [ and ], an equivalence class can be specified us‐ + ing the syntax [=c=], which matches all characters with + the same collation weight (as defined by the current lo‐ + cale) as the character c. + + Within [ and ], the syntax [.symbol.] matches the collat‐ + ing symbol symbol. + + If the extglob shell option is enabled using the shopt builtin, several + extended pattern matching operators are recognized. In the following + description, a pattern-list is a list of one or more patterns separated + by a |. Composite patterns may be formed using one or more of the fol‐ + lowing sub-patterns: + + ?(pattern-list) + Matches zero or one occurrence of the given patterns + *(pattern-list) + Matches zero or more occurrences of the given patterns + +(pattern-list) + Matches one or more occurrences of the given patterns + @(pattern-list) + Matches one of the given patterns + !(pattern-list) + Matches anything except one of the given patterns + + Complicated extended pattern matching against long strings is slow, es‐ + pecially when the patterns contain alternations and the strings contain + multiple matches. Using separate matches against shorter strings, or + using arrays of strings instead of a single long string, may be faster. + +2) shopt Shell option names as accepted by the shopt + builtin. +shopt [-pqsu] [-o] [optname ...] + Toggle the values of settings controlling optional shell behav‐ + ior. The settings can be either those listed below, or, if the + -o option is used, those available with the -o option to the set + builtin command. With no options, or with the -p option, a list + of all settable options is displayed, with an indication of + whether or not each is set; if optnames are supplied, the output + is restricted to those options. The -p option causes output to + be displayed in a form that may be reused as input. Other op‐ + tions have the following meanings: + -s Enable (set) each optname. + -u Disable (unset) each optname. + -q Suppresses normal output (quiet mode); the return status + indicates whether the optname is set or unset. If multi‐ + ple optname arguments are given with -q, the return sta‐ + tus is zero if all optnames are enabled; non-zero other‐ + wise. + -o Restricts the values of optname to be those defined for + the -o option to the set builtin. + + + + \ No newline at end of file diff --git a/SCR.1.2/TP07/find-output-1.txt b/SCR.1.2/TP07/find-output-1.txt new file mode 100644 index 0000000..33c853e --- /dev/null +++ b/SCR.1.2/TP07/find-output-1.txt @@ -0,0 +1,160 @@ +/etc/gssapi_mech.conf : 2013/10/21 : 918 +/etc/pcmcia : 2013/05/13 : 4096 +/etc/nsswitch.ldap : 2014/07/03 : 1300 +/etc/pam_ldap.conf.ori : 2014/07/01 : 8678 +/etc/request-key.conf : 2014/03/01 : 1814 +/etc/updatedb.conf : 2014/12/14 : 558 +/etc/arch-release : 2015/09/30 : 0 +/etc/crypttab : 2015/09/30 : 930 +/etc/depmod.d : 2015/11/18 : 4096 +/etc/exports.d : 2015/11/06 : 4096 +/etc/exports.ori : 2015/11/06 : 439 +/etc/host.conf : 2015/09/30 : 63 +/etc/hosts.ori : 2015/09/30 : 195 +/etc/issue : 2015/09/30 : 20 +/etc/ld.so.conf : 2015/09/30 : 71 +/etc/modprobe.d : 2015/11/18 : 4096 +/etc/motd : 2015/09/30 : 0 +/etc/netconfig : 2015/11/06 : 767 +/etc/nsswitch.conf.ori : 2015/09/30 : 234 +/etc/ODBCDataSources : 2015/09/02 : 4096 +/etc/pkcs11 : 2015/12/18 : 4096 +/etc/polkit-1 : 2015/10/25 : 4096 +/etc/profile : 2015/09/30 : 573 +/etc/securetty : 2015/09/30 : 86 +/etc/shells : 2015/09/30 : 52 +/etc/trusted-key.key : 2015/04/21 : 376 +/etc/vde : 2015/09/19 : 4096 +/etc/vde2 : 2015/09/19 : 4096 +/etc/anacrontab : 2016/06/30 : 541 +/etc/avahi : 2016/03/06 : 4096 +/etc/bash.bash_logout : 2016/11/14 : 28 +/etc/bash.bashrc : 2016/11/14 : 576 +/etc/binfmt.d : 2016/06/18 : 4096 +/etc/brlapi.key : 2016/10/31 : 33 +/etc/brltty.conf : 2016/07/28 : 23543 +/etc/ca-certificates : 2016/05/07 : 4096 +/etc/ceph : 2016/10/09 : 4096 +/etc/conf.d : 2016/11/15 : 4096 +/etc/cron.d : 2016/09/19 : 4096 +/etc/cron.daily : 2016/06/30 : 4096 +/etc/cron.deny : 2016/06/30 : 74 +/etc/cron.hourly : 2016/09/19 : 4096 +/etc/cron.monthly : 2016/06/30 : 4096 +/etc/cron.weekly : 2016/06/30 : 4096 +/etc/dbus-1 : 2016/10/24 : 4096 +/etc/default : 2016/11/09 : 4096 +/etc/dhcpcd.conf : 2016/08/15 : 1191 +/etc/drirc : 2016/11/14 : 4479 +/etc/environment : 2016/06/09 : 97 +/etc/ethertypes : 2016/03/14 : 1362 +/etc/exports : 2016/07/13 : 224 +/etc/fonts : 2016/08/06 : 4096 +/etc/fstab : 2016/07/13 : 277 +/etc/fstab.ori : 2016/07/13 : 209 +/etc/fuse.conf : 2016/06/22 : 216 +/etc/gai.conf : 2016/08/06 : 2584 +/etc/group- : 2016/10/31 : 842 +/etc/group : 2016/10/31 : 856 +/etc/gshadow- : 2016/10/31 : 701 +/etc/gshadow : 2016/10/31 : 712 +/etc/gss : 2016/06/18 : 4096 +/etc/gssproxy : 2016/11/09 : 4096 +/etc/gtk-3.0 : 2016/11/23 : 4096 +/etc/hostname : 2016/07/13 : 9 +/etc/hostname.ori : 2016/07/05 : 4 +/etc/hosts : 2016/07/13 : 182 +/etc/idmapd.conf : 2016/07/13 : 171 +/etc/ifplugd : 2016/06/13 : 4096 +/etc/ImageMagick-6 : 2016/11/23 : 4096 +/etc/initcpio : 2016/01/20 : 4096 +/etc/inputrc : 2016/11/06 : 714 +/etc/iproute2 : 2016/10/24 : 4096 +/etc/iptables : 2016/03/14 : 4096 +/etc/java-8-openjdk : 2016/10/23 : 4096 +/etc/kernel : 2016/06/18 : 4096 +/etc/krb5.conf : 2016/03/07 : 369 +/etc/ld.so.conf.d : 2016/08/22 : 4096 +/etc/libnl : 2016/08/22 : 4096 +/etc/libsmbios : 2016/05/20 : 4096 +/etc/libvirt : 2016/11/15 : 4096 +/etc/locale.conf : 2016/07/05 : 17 +/etc/locale.gen : 2016/07/05 : 9530 +/etc/locale.gen.pacnew : 2016/08/06 : 9614 +/etc/login.defs : 2016/10/29 : 5583 +/etc/logrotate.conf : 2016/08/21 : 686 +/etc/logrotate.d : 2016/11/15 : 4096 +/etc/lvm : 2016/11/15 : 4096 +/etc/machine-id : 2016/07/05 : 33 +/etc/mail.rc : 2016/10/20 : 6298 +/etc/makepkg.conf : 2016/05/18 : 5897 +/etc/man_db.conf : 2016/08/26 : 5134 +/etc/mdadm.conf : 2016/02/02 : 2349 +/etc/mke2fs.conf : 2016/09/05 : 945 +/etc/mkinitcpio.conf : 2016/09/09 : 2490 +/etc/mkinitcpio.d : 2016/11/23 : 4096 +/etc/modules-load.d : 2016/06/18 : 4096 +/etc/mtab : 2016/07/05 : 19 +/etc/nanorc : 2016/10/29 : 8779 +/etc/netctl : 2016/07/11 : 4096 +/etc/nfsmount.conf : 2016/08/25 : 3605 +/etc/nscd.conf : 2016/08/06 : 2387 +/etc/nss_ldap.conf : 2016/07/15 : 321 +/etc/nss_ldap.conf.ori : 2016/07/13 : 9472 +/etc/nsswitch.conf : 2016/07/13 : 238 +/etc/ntp.conf : 2016/07/15 : 1605 +/etc/ntp.conf.ori : 2016/06/04 : 706 +/etc/odbc.ini : 2016/11/06 : 0 +/etc/odbcinst.ini : 2016/11/06 : 0 +/etc/openldap : 2016/11/04 : 4096 +/etc/os-release : 2016/07/05 : 21 +/etc/pacman.conf : 2016/05/18 : 2898 +/etc/pacman.d : 2016/11/23 : 4096 +/etc/pam.d : 2016/11/15 : 4096 +/etc/pam.d.old : 2016/07/13 : 4096 +/etc/pam.d.ori : 2016/07/13 : 4096 +/etc/pam_ldap.conf : 2016/07/15 : 311 +/etc/passwd- : 2016/10/31 : 1277 +/etc/passwd : 2016/10/31 : 1317 +/etc/profile.d : 2016/11/09 : 4096 +/etc/protocols : 2016/11/10 : 3145 +/etc/pulse : 2016/06/25 : 4096 +/etc/.pwd.lock : 2016/07/05 : 0 +/etc/raddb : 2016/05/11 : 4096 +/etc/raddb.default : 2016/11/15 : 4096 +/etc/request-key.d : 2016/10/24 : 4096 +/etc/resolvconf.conf : 2016/05/19 : 254 +/etc/rpc : 2016/08/06 : 1634 +/etc/rsyncd.conf : 2016/11/20 : 172 +/etc/samba : 2016/11/15 : 4096 +/etc/sasl2 : 2016/11/15 : 4096 +/etc/security : 2016/10/31 : 4096 +/etc/services : 2016/11/10 : 294578 +/etc/shadow- : 2016/10/31 : 815 +/etc/skel : 2016/11/23 : 4096 +/etc/smbldap-tools : 2016/07/13 : 4096 +/etc/ssh : 2016/10/24 : 4096 +/etc/ssl : 2016/10/24 : 4096 +/etc/sudoers : 2016/10/31 : 3213 +/etc/sudoers.d : 2016/03/25 : 4096 +/etc/sysconfig : 2016/08/25 : 4096 +/etc/sysctl.d : 2016/06/18 : 4096 +/etc/systemd : 2016/10/24 : 4096 +/etc/tmpfiles.d : 2016/06/18 : 4096 +/etc/udev : 2016/10/24 : 4096 +/etc/.updated : 2016/10/24 : 163 +/etc/vconsole.conf : 2016/07/05 : 10 +/etc/wgetrc : 2016/06/19 : 5026 +/etc/X11 : 2016/06/18 : 4096 +/etc/xdg : 2016/10/31 : 4096 +/etc/xinetd.d : 2016/11/23 : 4096 +/etc/yaourtrc : 2016/11/09 : 1443 +/etc/gdb : 2017/01/25 : 4096 +/etc/localtime : 2017/07/06 : 25 +/etc/vimrc : 2017/09/11 : 912 +/etc/whois.conf : 2017/03/15 : 382 +/etc : 2018/08/30 : 4096 +/etc/ld.so.cache : 2018/08/30 : 83501 +/etc/resolv.conf : 2018/07/18 : 49 +/etc/resolv.conf.bak : 2018/07/18 : 80 +/etc/shadow : 2018/07/17 : 843 diff --git a/SCR.1.2/TP07/find-output-2.txt b/SCR.1.2/TP07/find-output-2.txt new file mode 100644 index 0000000..d11f0c8 --- /dev/null +++ b/SCR.1.2/TP07/find-output-2.txt @@ -0,0 +1,160 @@ +/etc/shadow : 2018/07/17 : 843 +/etc/resolv.conf.bak : 2018/07/18 : 80 +/etc/resolv.conf : 2018/07/18 : 49 +/etc/ld.so.cache : 2018/08/30 : 83501 +/etc : 2018/08/30 : 4096 +/etc/whois.conf : 2017/03/15 : 382 +/etc/vimrc : 2017/09/11 : 912 +/etc/localtime : 2017/07/06 : 25 +/etc/gdb : 2017/01/25 : 4096 +/etc/yaourtrc : 2016/11/09 : 1443 +/etc/xinetd.d : 2016/11/23 : 4096 +/etc/xdg : 2016/10/31 : 4096 +/etc/X11 : 2016/06/18 : 4096 +/etc/wgetrc : 2016/06/19 : 5026 +/etc/vconsole.conf : 2016/07/05 : 10 +/etc/.updated : 2016/10/24 : 163 +/etc/udev : 2016/10/24 : 4096 +/etc/tmpfiles.d : 2016/06/18 : 4096 +/etc/systemd : 2016/10/24 : 4096 +/etc/sysctl.d : 2016/06/18 : 4096 +/etc/sysconfig : 2016/08/25 : 4096 +/etc/sudoers.d : 2016/03/25 : 4096 +/etc/sudoers : 2016/10/31 : 3213 +/etc/ssl : 2016/10/24 : 4096 +/etc/ssh : 2016/10/24 : 4096 +/etc/smbldap-tools : 2016/07/13 : 4096 +/etc/skel : 2016/11/23 : 4096 +/etc/shadow- : 2016/10/31 : 815 +/etc/services : 2016/11/10 : 294578 +/etc/security : 2016/10/31 : 4096 +/etc/sasl2 : 2016/11/15 : 4096 +/etc/samba : 2016/11/15 : 4096 +/etc/rsyncd.conf : 2016/11/20 : 172 +/etc/rpc : 2016/08/06 : 1634 +/etc/resolvconf.conf : 2016/05/19 : 254 +/etc/request-key.d : 2016/10/24 : 4096 +/etc/raddb.default : 2016/11/15 : 4096 +/etc/raddb : 2016/05/11 : 4096 +/etc/.pwd.lock : 2016/07/05 : 0 +/etc/pulse : 2016/06/25 : 4096 +/etc/protocols : 2016/11/10 : 3145 +/etc/profile.d : 2016/11/09 : 4096 +/etc/passwd : 2016/10/31 : 1317 +/etc/passwd- : 2016/10/31 : 1277 +/etc/pam_ldap.conf : 2016/07/15 : 311 +/etc/pam.d.ori : 2016/07/13 : 4096 +/etc/pam.d.old : 2016/07/13 : 4096 +/etc/pam.d : 2016/11/15 : 4096 +/etc/pacman.d : 2016/11/23 : 4096 +/etc/pacman.conf : 2016/05/18 : 2898 +/etc/os-release : 2016/07/05 : 21 +/etc/openldap : 2016/11/04 : 4096 +/etc/odbcinst.ini : 2016/11/06 : 0 +/etc/odbc.ini : 2016/11/06 : 0 +/etc/ntp.conf.ori : 2016/06/04 : 706 +/etc/ntp.conf : 2016/07/15 : 1605 +/etc/nsswitch.conf : 2016/07/13 : 238 +/etc/nss_ldap.conf.ori : 2016/07/13 : 9472 +/etc/nss_ldap.conf : 2016/07/15 : 321 +/etc/nscd.conf : 2016/08/06 : 2387 +/etc/nfsmount.conf : 2016/08/25 : 3605 +/etc/netctl : 2016/07/11 : 4096 +/etc/nanorc : 2016/10/29 : 8779 +/etc/mtab : 2016/07/05 : 19 +/etc/modules-load.d : 2016/06/18 : 4096 +/etc/mkinitcpio.d : 2016/11/23 : 4096 +/etc/mkinitcpio.conf : 2016/09/09 : 2490 +/etc/mke2fs.conf : 2016/09/05 : 945 +/etc/mdadm.conf : 2016/02/02 : 2349 +/etc/man_db.conf : 2016/08/26 : 5134 +/etc/makepkg.conf : 2016/05/18 : 5897 +/etc/mail.rc : 2016/10/20 : 6298 +/etc/machine-id : 2016/07/05 : 33 +/etc/lvm : 2016/11/15 : 4096 +/etc/logrotate.d : 2016/11/15 : 4096 +/etc/logrotate.conf : 2016/08/21 : 686 +/etc/login.defs : 2016/10/29 : 5583 +/etc/locale.gen.pacnew : 2016/08/06 : 9614 +/etc/locale.gen : 2016/07/05 : 9530 +/etc/locale.conf : 2016/07/05 : 17 +/etc/libvirt : 2016/11/15 : 4096 +/etc/libsmbios : 2016/05/20 : 4096 +/etc/libnl : 2016/08/22 : 4096 +/etc/ld.so.conf.d : 2016/08/22 : 4096 +/etc/krb5.conf : 2016/03/07 : 369 +/etc/kernel : 2016/06/18 : 4096 +/etc/java-8-openjdk : 2016/10/23 : 4096 +/etc/iptables : 2016/03/14 : 4096 +/etc/iproute2 : 2016/10/24 : 4096 +/etc/inputrc : 2016/11/06 : 714 +/etc/initcpio : 2016/01/20 : 4096 +/etc/ImageMagick-6 : 2016/11/23 : 4096 +/etc/ifplugd : 2016/06/13 : 4096 +/etc/idmapd.conf : 2016/07/13 : 171 +/etc/hosts : 2016/07/13 : 182 +/etc/hostname.ori : 2016/07/05 : 4 +/etc/hostname : 2016/07/13 : 9 +/etc/gtk-3.0 : 2016/11/23 : 4096 +/etc/gssproxy : 2016/11/09 : 4096 +/etc/gss : 2016/06/18 : 4096 +/etc/gshadow : 2016/10/31 : 712 +/etc/gshadow- : 2016/10/31 : 701 +/etc/group : 2016/10/31 : 856 +/etc/group- : 2016/10/31 : 842 +/etc/gai.conf : 2016/08/06 : 2584 +/etc/fuse.conf : 2016/06/22 : 216 +/etc/fstab.ori : 2016/07/13 : 209 +/etc/fstab : 2016/07/13 : 277 +/etc/fonts : 2016/08/06 : 4096 +/etc/exports : 2016/07/13 : 224 +/etc/ethertypes : 2016/03/14 : 1362 +/etc/environment : 2016/06/09 : 97 +/etc/drirc : 2016/11/14 : 4479 +/etc/dhcpcd.conf : 2016/08/15 : 1191 +/etc/default : 2016/11/09 : 4096 +/etc/dbus-1 : 2016/10/24 : 4096 +/etc/cron.weekly : 2016/06/30 : 4096 +/etc/cron.monthly : 2016/06/30 : 4096 +/etc/cron.hourly : 2016/09/19 : 4096 +/etc/cron.deny : 2016/06/30 : 74 +/etc/cron.daily : 2016/06/30 : 4096 +/etc/cron.d : 2016/09/19 : 4096 +/etc/conf.d : 2016/11/15 : 4096 +/etc/ceph : 2016/10/09 : 4096 +/etc/ca-certificates : 2016/05/07 : 4096 +/etc/brltty.conf : 2016/07/28 : 23543 +/etc/brlapi.key : 2016/10/31 : 33 +/etc/binfmt.d : 2016/06/18 : 4096 +/etc/bash.bashrc : 2016/11/14 : 576 +/etc/bash.bash_logout : 2016/11/14 : 28 +/etc/avahi : 2016/03/06 : 4096 +/etc/anacrontab : 2016/06/30 : 541 +/etc/vde2 : 2015/09/19 : 4096 +/etc/vde : 2015/09/19 : 4096 +/etc/trusted-key.key : 2015/04/21 : 376 +/etc/shells : 2015/09/30 : 52 +/etc/securetty : 2015/09/30 : 86 +/etc/profile : 2015/09/30 : 573 +/etc/polkit-1 : 2015/10/25 : 4096 +/etc/pkcs11 : 2015/12/18 : 4096 +/etc/ODBCDataSources : 2015/09/02 : 4096 +/etc/nsswitch.conf.ori : 2015/09/30 : 234 +/etc/netconfig : 2015/11/06 : 767 +/etc/motd : 2015/09/30 : 0 +/etc/modprobe.d : 2015/11/18 : 4096 +/etc/ld.so.conf : 2015/09/30 : 71 +/etc/issue : 2015/09/30 : 20 +/etc/hosts.ori : 2015/09/30 : 195 +/etc/host.conf : 2015/09/30 : 63 +/etc/exports.ori : 2015/11/06 : 439 +/etc/exports.d : 2015/11/06 : 4096 +/etc/depmod.d : 2015/11/18 : 4096 +/etc/crypttab : 2015/09/30 : 930 +/etc/arch-release : 2015/09/30 : 0 +/etc/updatedb.conf : 2014/12/14 : 558 +/etc/request-key.conf : 2014/03/01 : 1814 +/etc/pam_ldap.conf.ori : 2014/07/01 : 8678 +/etc/nsswitch.ldap : 2014/07/03 : 1300 +/etc/pcmcia : 2013/05/13 : 4096 +/etc/gssapi_mech.conf : 2013/10/21 : 918 diff --git a/SCR.1.2/TP07/find-output.txt b/SCR.1.2/TP07/find-output.txt new file mode 100644 index 0000000..8511217 --- /dev/null +++ b/SCR.1.2/TP07/find-output.txt @@ -0,0 +1,160 @@ +/etc : 2018/08/30 : 4096 +/etc/ssl : 2016/10/24 : 4096 +/etc/machine-id : 2016/07/05 : 33 +/etc/security : 2016/10/31 : 4096 +/etc/resolvconf.conf : 2016/05/19 : 254 +/etc/netctl : 2016/07/11 : 4096 +/etc/localtime : 2017/07/06 : 25 +/etc/pkcs11 : 2015/12/18 : 4096 +/etc/ld.so.cache : 2018/08/30 : 83501 +/etc/pam.d.ori : 2016/07/13 : 4096 +/etc/arch-release : 2015/09/30 : 0 +/etc/protocols : 2016/11/10 : 3145 +/etc/fstab.ori : 2016/07/13 : 209 +/etc/logrotate.conf : 2016/08/21 : 686 +/etc/yaourtrc : 2016/11/09 : 1443 +/etc/sudoers.d : 2016/03/25 : 4096 +/etc/cron.daily : 2016/06/30 : 4096 +/etc/avahi : 2016/03/06 : 4096 +/etc/java-8-openjdk : 2016/10/23 : 4096 +/etc/rsyncd.conf : 2016/11/20 : 172 +/etc/ld.so.conf : 2015/09/30 : 71 +/etc/udev : 2016/10/24 : 4096 +/etc/shadow : 2018/07/17 : 843 +/etc/samba : 2016/11/15 : 4096 +/etc/exports.ori : 2015/11/06 : 439 +/etc/hosts.ori : 2015/09/30 : 195 +/etc/environment : 2016/06/09 : 97 +/etc/sudoers : 2016/10/31 : 3213 +/etc/ODBCDataSources : 2015/09/02 : 4096 +/etc/vde : 2015/09/19 : 4096 +/etc/crypttab : 2015/09/30 : 930 +/etc/binfmt.d : 2016/06/18 : 4096 +/etc/securetty : 2015/09/30 : 86 +/etc/group- : 2016/10/31 : 842 +/etc/mail.rc : 2016/10/20 : 6298 +/etc/rpc : 2016/08/06 : 1634 +/etc/depmod.d : 2015/11/18 : 4096 +/etc/X11 : 2016/06/18 : 4096 +/etc/shells : 2015/09/30 : 52 +/etc/sysctl.d : 2016/06/18 : 4096 +/etc/updatedb.conf : 2014/12/14 : 558 +/etc/xinetd.d : 2016/11/23 : 4096 +/etc/nss_ldap.conf.ori : 2016/07/13 : 9472 +/etc/fuse.conf : 2016/06/22 : 216 +/etc/libnl : 2016/08/22 : 4096 +/etc/mkinitcpio.conf : 2016/09/09 : 2490 +/etc/pacman.conf : 2016/05/18 : 2898 +/etc/sysconfig : 2016/08/25 : 4096 +/etc/passwd : 2016/10/31 : 1317 +/etc/resolv.conf : 2018/07/18 : 49 +/etc/bash.bashrc : 2016/11/14 : 576 +/etc/mtab : 2016/07/05 : 19 +/etc/fonts : 2016/08/06 : 4096 +/etc/gdb : 2017/01/25 : 4096 +/etc/modprobe.d : 2015/11/18 : 4096 +/etc/odbcinst.ini : 2016/11/06 : 0 +/etc/group : 2016/10/31 : 856 +/etc/cron.weekly : 2016/06/30 : 4096 +/etc/netconfig : 2015/11/06 : 767 +/etc/man_db.conf : 2016/08/26 : 5134 +/etc/bash.bash_logout : 2016/11/14 : 28 +/etc/pcmcia : 2013/05/13 : 4096 +/etc/gss : 2016/06/18 : 4096 +/etc/profile : 2015/09/30 : 573 +/etc/krb5.conf : 2016/03/07 : 369 +/etc/conf.d : 2016/11/15 : 4096 +/etc/initcpio : 2016/01/20 : 4096 +/etc/odbc.ini : 2016/11/06 : 0 +/etc/nsswitch.ldap : 2014/07/03 : 1300 +/etc/gshadow : 2016/10/31 : 712 +/etc/nanorc : 2016/10/29 : 8779 +/etc/pacman.d : 2016/11/23 : 4096 +/etc/iproute2 : 2016/10/24 : 4096 +/etc/logrotate.d : 2016/11/15 : 4096 +/etc/systemd : 2016/10/24 : 4096 +/etc/ethertypes : 2016/03/14 : 1362 +/etc/nsswitch.conf.ori : 2015/09/30 : 234 +/etc/hostname.ori : 2016/07/05 : 4 +/etc/mke2fs.conf : 2016/09/05 : 945 +/etc/brlapi.key : 2016/10/31 : 33 +/etc/.pwd.lock : 2016/07/05 : 0 +/etc/dhcpcd.conf : 2016/08/15 : 1191 +/etc/pulse : 2016/06/25 : 4096 +/etc/hostname : 2016/07/13 : 9 +/etc/ImageMagick-6 : 2016/11/23 : 4096 +/etc/ntp.conf.ori : 2016/06/04 : 706 +/etc/resolv.conf.bak : 2018/07/18 : 80 +/etc/passwd- : 2016/10/31 : 1277 +/etc/openldap : 2016/11/04 : 4096 +/etc/vimrc : 2017/09/11 : 912 +/etc/makepkg.conf : 2016/05/18 : 5897 +/etc/libsmbios : 2016/05/20 : 4096 +/etc/drirc : 2016/11/14 : 4479 +/etc/shadow- : 2016/10/31 : 815 +/etc/pam_ldap.conf.ori : 2014/07/01 : 8678 +/etc/smbldap-tools : 2016/07/13 : 4096 +/etc/gtk-3.0 : 2016/11/23 : 4096 +/etc/ld.so.conf.d : 2016/08/22 : 4096 +/etc/gssapi_mech.conf : 2013/10/21 : 918 +/etc/locale.gen : 2016/07/05 : 9530 +/etc/fstab : 2016/07/13 : 277 +/etc/lvm : 2016/11/15 : 4096 +/etc/kernel : 2016/06/18 : 4096 +/etc/motd : 2015/09/30 : 0 +/etc/ceph : 2016/10/09 : 4096 +/etc/gshadow- : 2016/10/31 : 701 +/etc/wgetrc : 2016/06/19 : 5026 +/etc/ssh : 2016/10/24 : 4096 +/etc/skel : 2016/11/23 : 4096 +/etc/profile.d : 2016/11/09 : 4096 +/etc/pam.d : 2016/11/15 : 4096 +/etc/idmapd.conf : 2016/07/13 : 171 +/etc/ifplugd : 2016/06/13 : 4096 +/etc/dbus-1 : 2016/10/24 : 4096 +/etc/services : 2016/11/10 : 294578 +/etc/login.defs : 2016/10/29 : 5583 +/etc/raddb.default : 2016/11/15 : 4096 +/etc/nsswitch.conf : 2016/07/13 : 238 +/etc/gai.conf : 2016/08/06 : 2584 +/etc/modules-load.d : 2016/06/18 : 4096 +/etc/exports : 2016/07/13 : 224 +/etc/exports.d : 2015/11/06 : 4096 +/etc/ca-certificates : 2016/05/07 : 4096 +/etc/locale.gen.pacnew : 2016/08/06 : 9614 +/etc/raddb : 2016/05/11 : 4096 +/etc/mkinitcpio.d : 2016/11/23 : 4096 +/etc/polkit-1 : 2015/10/25 : 4096 +/etc/libvirt : 2016/11/15 : 4096 +/etc/brltty.conf : 2016/07/28 : 23543 +/etc/vconsole.conf : 2016/07/05 : 10 +/etc/anacrontab : 2016/06/30 : 541 +/etc/request-key.d : 2016/10/24 : 4096 +/etc/pam_ldap.conf : 2016/07/15 : 311 +/etc/cron.d : 2016/09/19 : 4096 +/etc/os-release : 2016/07/05 : 21 +/etc/sasl2 : 2016/11/15 : 4096 +/etc/pam.d.old : 2016/07/13 : 4096 +/etc/host.conf : 2015/09/30 : 63 +/etc/request-key.conf : 2014/03/01 : 1814 +/etc/hosts : 2016/07/13 : 182 +/etc/mdadm.conf : 2016/02/02 : 2349 +/etc/trusted-key.key : 2015/04/21 : 376 +/etc/default : 2016/11/09 : 4096 +/etc/.updated : 2016/10/24 : 163 +/etc/nss_ldap.conf : 2016/07/15 : 321 +/etc/locale.conf : 2016/07/05 : 17 +/etc/gssproxy : 2016/11/09 : 4096 +/etc/cron.deny : 2016/06/30 : 74 +/etc/cron.monthly : 2016/06/30 : 4096 +/etc/cron.hourly : 2016/09/19 : 4096 +/etc/nscd.conf : 2016/08/06 : 2387 +/etc/ntp.conf : 2016/07/15 : 1605 +/etc/inputrc : 2016/11/06 : 714 +/etc/xdg : 2016/10/31 : 4096 +/etc/tmpfiles.d : 2016/06/18 : 4096 +/etc/issue : 2015/09/30 : 20 +/etc/nfsmount.conf : 2016/08/25 : 3605 +/etc/vde2 : 2015/09/19 : 4096 +/etc/whois.conf : 2017/03/15 : 382 +/etc/iptables : 2016/03/14 : 4096 diff --git a/SCR.1.2/TP07/ls-output-2.txt b/SCR.1.2/TP07/ls-output-2.txt new file mode 100644 index 0000000..f315140 --- /dev/null +++ b/SCR.1.2/TP07/ls-output-2.txt @@ -0,0 +1,158 @@ +-rw-r--r-- 1 root root 0 30 sept. 2015 arch-release +-rw-r--r-- 1 root root 0 30 sept. 2015 motd +-rw-r--r-- 1 root root 0 6 nov. 2016 odbc.ini +-rw-r--r-- 1 root root 0 6 nov. 2016 odbcinst.ini +total 1048 +-rw-r--r-- 1 root root 4 5 juil. 2016 hostname.ori +-rw-r--r-- 1 root root 9 13 juil. 2016 hostname +-rw-r--r-- 1 root root 10 5 juil. 2016 vconsole.conf +-rw-r--r-- 1 root root 17 5 juil. 2016 locale.conf +lrwxrwxrwx 1 root root 19 5 juil. 2016 mtab -> ../proc/self/mounts +-rw-r--r-- 1 root root 20 30 sept. 2015 issue +lrwxrwxrwx 1 root root 21 5 juil. 2016 os-release -> ../usr/lib/os-release +lrwxrwxrwx 1 root root 25 6 juil. 2017 localtime -> ../usr/share/zoneinfo/UTC +-rw-r--r-- 1 root root 28 14 nov. 2016 bash.bash_logout +-r--r--r-- 1 root root 33 5 juil. 2016 machine-id +-rw-r----- 1 root brlapi 33 31 oct. 2016 brlapi.key +-rw-r--r-- 1 root root 49 18 juil. 13:11 resolv.conf +-rw-r--r-- 1 root root 52 30 sept. 2015 shells +-rw-r--r-- 1 root root 63 30 sept. 2015 host.conf +-rw-r--r-- 1 root root 71 30 sept. 2015 ld.so.conf +-rw-r--r-- 1 root root 74 30 juin 2016 cron.deny +-rw-r--r-- 1 root root 80 18 juil. 13:11 resolv.conf.bak +-rw-r--r-- 1 root root 86 30 sept. 2015 securetty +-rw-r--r-- 1 root root 97 9 juin 2016 environment +-rw-r--r-- 1 root root 171 13 juil. 2016 idmapd.conf +-rw-r--r-- 1 root root 172 20 nov. 2016 rsyncd.conf +-rw-r--r-- 1 root root 182 13 juil. 2016 hosts +-rw-r--r-- 1 root root 195 30 sept. 2015 hosts.ori +-rw-r--r-- 1 root root 209 13 juil. 2016 fstab.ori +-rw-r--r-- 1 root root 216 22 juin 2016 fuse.conf +-rw-r--r-- 1 root root 224 13 juil. 2016 exports +-rw-r--r-- 1 root root 234 30 sept. 2015 nsswitch.conf.ori +-rw-r--r-- 1 root root 238 13 juil. 2016 nsswitch.conf +-rw-r--r-- 1 root root 254 19 mai 2016 resolvconf.conf +-rw-r--r-- 1 root root 277 13 juil. 2016 fstab +-rw-r--r-- 1 root root 311 15 juil. 2016 pam_ldap.conf +-rw-r--r-- 1 root root 321 15 juil. 2016 nss_ldap.conf +-rw-r--r-- 1 root root 369 7 mars 2016 krb5.conf +-rw-r--r-- 1 root root 376 21 avril 2015 trusted-key.key +-rw-r--r-- 1 root root 382 15 mars 2017 whois.conf +-rw-r--r-- 1 root root 439 6 nov. 2015 exports.ori +-rw-r--r-- 1 root root 541 30 juin 2016 anacrontab +-rw-r--r-- 1 root root 558 14 déc. 2014 updatedb.conf +-rw-r--r-- 1 root root 573 30 sept. 2015 profile +-rw-r--r-- 1 root root 576 14 nov. 2016 bash.bashrc +-rw-r--r-- 1 root root 686 21 août 2016 logrotate.conf +-rw------- 1 root root 701 31 oct. 2016 gshadow- +-rw-r--r-- 1 root root 706 4 juin 2016 ntp.conf.ori +-rw------- 1 root root 712 31 oct. 2016 gshadow +-rw-r--r-- 1 root root 714 6 nov. 2016 inputrc +-rw-r--r-- 1 root root 767 6 nov. 2015 netconfig +-rw------- 1 root root 815 31 oct. 2016 shadow- +-rw-r--r-- 1 root root 842 31 oct. 2016 group- +-rw------- 1 root root 843 17 juil. 12:32 shadow +-rw-r--r-- 1 root root 856 31 oct. 2016 group +-rw-r--r-- 1 root root 912 11 sept. 2017 vimrc +-rw-r--r-- 1 root root 918 21 oct. 2013 gssapi_mech.conf +-rw------- 1 root root 930 30 sept. 2015 crypttab +-rw-r--r-- 1 root root 945 5 sept. 2016 mke2fs.conf +-rw-r--r-- 1 root root 1191 15 août 2016 dhcpcd.conf +-rw-r--r-- 1 root root 1277 31 oct. 2016 passwd- +-rw-r--r-- 1 root root 1300 3 juil. 2014 nsswitch.ldap +-rw-r--r-- 1 root root 1317 31 oct. 2016 passwd +-rw-r--r-- 1 root root 1362 14 mars 2016 ethertypes +-rw-r--r-- 1 root root 1443 9 nov. 2016 yaourtrc +-rw-r--r-- 1 root root 1605 15 juil. 2016 ntp.conf +-rw-r--r-- 1 root root 1634 6 août 2016 rpc +-rw-r--r-- 1 root root 1814 1 mars 2014 request-key.conf +-rw-r--r-- 1 root root 2349 2 févr. 2016 mdadm.conf +-rw-r--r-- 1 root root 2387 6 août 2016 nscd.conf +-rw-r--r-- 1 root root 2490 9 sept. 2016 mkinitcpio.conf +-rw-r--r-- 1 root root 2584 6 août 2016 gai.conf +-rw-r--r-- 1 root root 2898 18 mai 2016 pacman.conf +-rw-r--r-- 1 root root 3145 10 nov. 2016 protocols +-r--r----- 1 root root 3213 31 oct. 2016 sudoers +-rw-r--r-- 1 root root 3605 25 août 2016 nfsmount.conf +drwxr-x--- 2 root root 4096 25 mars 2016 sudoers.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 +drwxr-xr-x 2 root root 4096 13 juil. 2016 smbldap-tools +drwxr-xr-x 2 root root 4096 13 juin 2016 ifplugd +drwxr-xr-x 2 root root 4096 13 mai 2013 pcmcia +drwxr-xr-x 2 root root 4096 14 mars 2016 iptables +drwxr-xr-x 2 root root 4096 15 nov. 2016 conf.d +drwxr-xr-x 2 root root 4096 15 nov. 2016 logrotate.d +drwxr-xr-x 2 root root 4096 15 nov. 2016 pam.d +drwxr-xr-x 2 root root 4096 15 nov. 2016 sasl2 +drwxr-xr-x 2 root root 4096 18 déc. 2015 pkcs11 +drwxr-xr-x 2 root root 4096 18 juin 2016 binfmt.d +drwxr-xr-x 2 root root 4096 18 juin 2016 modules-load.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 nov. 2015 depmod.d +drwxr-xr-x 2 root root 4096 18 nov. 2015 modprobe.d +drwxr-xr-x 2 root root 4096 19 sept. 2015 vde +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 20 mai 2016 libsmbios +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 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 mkinitcpio.d +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 24 oct. 2016 iproute2 +drwxr-xr-x 2 root root 4096 24 oct. 2016 request-key.d +drwxr-xr-x 2 root root 4096 24 oct. 2016 ssh +drwxr-xr-x 2 root root 4096 25 août 2016 sysconfig +drwxr-xr-x 2 root root 4096 25 janv. 2017 gdb +drwxr-xr-x 2 root root 4096 25 juin 2016 pulse +drwxr-xr-x 2 root root 4096 2 sept. 2015 ODBCDataSources +drwxr-xr-x 2 root root 4096 30 juin 2016 cron.daily +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 6 nov. 2015 exports.d +drwxr-xr-x 2 root root 4096 9 nov. 2016 default +drwxr-xr-x 2 root root 4096 9 nov. 2016 gssproxy +drwxr-xr-x 2 root root 4096 9 nov. 2016 profile.d +drwxr-xr-x 2 root root 4096 9 oct. 2016 ceph +drwxr-xr-x 3 root root 4096 15 nov. 2016 samba +drwxr-xr-x 3 root root 4096 18 juin 2016 gss +drwxr-xr-x 3 root root 4096 18 juin 2016 kernel +drwxr-xr-x 3 root root 4096 18 juin 2016 X11 +drwxr-xr-x 3 root root 4096 19 sept. 2015 vde2 +drwxr-xr-x 3 root root 4096 23 nov. 2016 pacman.d +drwxr-xr-x 3 root root 4096 24 oct. 2016 dbus-1 +drwxr-xr-x 3 root root 4096 25 oct. 2015 polkit-1 +drwxr-xr-x 3 root root 4096 31 oct. 2016 security +drwxr-xr-x 3 root root 4096 6 mars 2016 avahi +drwxr-xr-x 4 root root 4096 15 nov. 2016 libvirt +drwxr-xr-x 4 root root 4096 20 janv. 2016 initcpio +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 6 août 2016 fonts +drwxr-xr-x 4 root root 4096 7 mai 2016 ca-certificates +drwxr-xr-x 5 root root 4096 11 juil. 2016 netctl +drwxr-xr-x 5 root root 4096 15 nov. 2016 lvm +drwxr-xr-x 5 root root 4096 24 oct. 2016 ssl +drwxr-xr-x 5 root root 4096 24 oct. 2016 systemd +drwxr-xr-x 6 ldap ldap 4096 4 nov. 2016 openldap +drwxr-xr-x 6 root root 4096 23 oct. 2016 java-8-openjdk +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 4479 14 nov. 2016 drirc +-rw-r--r-- 1 root root 5026 19 juin 2016 wgetrc +-rw-r--r-- 1 root root 5134 26 août 2016 man_db.conf +-rw-r--r-- 1 root root 5583 29 oct. 2016 login.defs +-rw-r--r-- 1 root root 5897 18 mai 2016 makepkg.conf +-r--r--r-- 1 root root 6298 20 oct. 2016 mail.rc +-rw-r--r-- 1 root root 8678 1 juil. 2014 pam_ldap.conf.ori +-rw-r--r-- 1 root root 8779 29 oct. 2016 nanorc +-rw-r--r-- 1 root root 9472 13 juil. 2016 nss_ldap.conf.ori +-rw-r--r-- 1 root root 9530 5 juil. 2016 locale.gen +-rw-r--r-- 1 root root 9614 6 août 2016 locale.gen.pacnew +-rw-r--r-- 1 root root 23543 28 juil. 2016 brltty.conf +-rw-r--r-- 1 root root 83501 30 août 10:07 ld.so.cache +-rw-r--r-- 1 root root 294578 10 nov. 2016 services diff --git a/SCR.1.2/TP07/ls-output-3.txt b/SCR.1.2/TP07/ls-output-3.txt new file mode 100644 index 0000000..24246f3 --- /dev/null +++ b/SCR.1.2/TP07/ls-output-3.txt @@ -0,0 +1,158 @@ +-rw-r--r-- 1 root root 294578 10 nov. 2016 services +-rw-r--r-- 1 root root 83501 30 août 10:07 ld.so.cache +-rw-r--r-- 1 root root 23543 28 juil. 2016 brltty.conf +-rw-r--r-- 1 root root 9614 6 août 2016 locale.gen.pacnew +-rw-r--r-- 1 root root 9530 5 juil. 2016 locale.gen +-rw-r--r-- 1 root root 9472 13 juil. 2016 nss_ldap.conf.ori +-rw-r--r-- 1 root root 8779 29 oct. 2016 nanorc +-rw-r--r-- 1 root root 8678 1 juil. 2014 pam_ldap.conf.ori +-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 5583 29 oct. 2016 login.defs +-rw-r--r-- 1 root root 5134 26 août 2016 man_db.conf +-rw-r--r-- 1 root root 5026 19 juin 2016 wgetrc +-rw-r--r-- 1 root root 4479 14 nov. 2016 drirc +drwxr-xr-x 9 root root 4096 15 nov. 2016 raddb.default +drwxr-xr-x 9 radiusd radiusd 4096 11 mai 2016 raddb +drwxr-xr-x 6 root root 4096 23 oct. 2016 java-8-openjdk +drwxr-xr-x 6 ldap ldap 4096 4 nov. 2016 openldap +drwxr-xr-x 5 root root 4096 24 oct. 2016 systemd +drwxr-xr-x 5 root root 4096 24 oct. 2016 ssl +drwxr-xr-x 5 root root 4096 15 nov. 2016 lvm +drwxr-xr-x 5 root root 4096 11 juil. 2016 netctl +drwxr-xr-x 4 root root 4096 7 mai 2016 ca-certificates +drwxr-xr-x 4 root root 4096 6 août 2016 fonts +drwxr-xr-x 4 root root 4096 31 oct. 2016 xdg +drwxr-xr-x 4 root root 4096 24 oct. 2016 udev +drwxr-xr-x 4 root root 4096 20 janv. 2016 initcpio +drwxr-xr-x 4 root root 4096 15 nov. 2016 libvirt +drwxr-xr-x 3 root root 4096 6 mars 2016 avahi +drwxr-xr-x 3 root root 4096 31 oct. 2016 security +drwxr-xr-x 3 root root 4096 25 oct. 2015 polkit-1 +drwxr-xr-x 3 root root 4096 24 oct. 2016 dbus-1 +drwxr-xr-x 3 root root 4096 23 nov. 2016 pacman.d +drwxr-xr-x 3 root root 4096 19 sept. 2015 vde2 +drwxr-xr-x 3 root root 4096 18 juin 2016 X11 +drwxr-xr-x 3 root root 4096 18 juin 2016 kernel +drwxr-xr-x 3 root root 4096 18 juin 2016 gss +drwxr-xr-x 3 root root 4096 15 nov. 2016 samba +drwxr-xr-x 2 root root 4096 9 oct. 2016 ceph +drwxr-xr-x 2 root root 4096 9 nov. 2016 profile.d +drwxr-xr-x 2 root root 4096 9 nov. 2016 gssproxy +drwxr-xr-x 2 root root 4096 9 nov. 2016 default +drwxr-xr-x 2 root root 4096 6 nov. 2015 exports.d +drwxr-xr-x 2 root root 4096 30 juin 2016 cron.weekly +drwxr-xr-x 2 root root 4096 30 juin 2016 cron.monthly +drwxr-xr-x 2 root root 4096 30 juin 2016 cron.daily +drwxr-xr-x 2 root root 4096 2 sept. 2015 ODBCDataSources +drwxr-xr-x 2 root root 4096 25 juin 2016 pulse +drwxr-xr-x 2 root root 4096 25 janv. 2017 gdb +drwxr-xr-x 2 root root 4096 25 août 2016 sysconfig +drwxr-xr-x 2 root root 4096 24 oct. 2016 ssh +drwxr-xr-x 2 root root 4096 24 oct. 2016 request-key.d +drwxr-xr-x 2 root root 4096 24 oct. 2016 iproute2 +drwxr-xr-x 2 root root 4096 23 nov. 2016 xinetd.d +drwxr-xr-x 2 root root 4096 23 nov. 2016 skel +drwxr-xr-x 2 root root 4096 23 nov. 2016 mkinitcpio.d +drwxr-xr-x 2 root root 4096 23 nov. 2016 ImageMagick-6 +drwxr-xr-x 2 root root 4096 23 nov. 2016 gtk-3.0 +drwxr-xr-x 2 root root 4096 22 août 2016 libnl +drwxr-xr-x 2 root root 4096 22 août 2016 ld.so.conf.d +drwxr-xr-x 2 root root 4096 20 mai 2016 libsmbios +drwxr-xr-x 2 root root 4096 19 sept. 2016 cron.hourly +drwxr-xr-x 2 root root 4096 19 sept. 2016 cron.d +drwxr-xr-x 2 root root 4096 19 sept. 2015 vde +drwxr-xr-x 2 root root 4096 18 nov. 2015 modprobe.d +drwxr-xr-x 2 root root 4096 18 nov. 2015 depmod.d +drwxr-xr-x 2 root root 4096 18 juin 2016 tmpfiles.d +drwxr-xr-x 2 root root 4096 18 juin 2016 sysctl.d +drwxr-xr-x 2 root root 4096 18 juin 2016 modules-load.d +drwxr-xr-x 2 root root 4096 18 juin 2016 binfmt.d +drwxr-xr-x 2 root root 4096 18 déc. 2015 pkcs11 +drwxr-xr-x 2 root root 4096 15 nov. 2016 sasl2 +drwxr-xr-x 2 root root 4096 15 nov. 2016 pam.d +drwxr-xr-x 2 root root 4096 15 nov. 2016 logrotate.d +drwxr-xr-x 2 root root 4096 15 nov. 2016 conf.d +drwxr-xr-x 2 root root 4096 14 mars 2016 iptables +drwxr-xr-x 2 root root 4096 13 mai 2013 pcmcia +drwxr-xr-x 2 root root 4096 13 juin 2016 ifplugd +drwxr-xr-x 2 root root 4096 13 juil. 2016 smbldap-tools +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.old +drwxr-x--- 2 root root 4096 25 mars 2016 sudoers.d +-rw-r--r-- 1 root root 3605 25 août 2016 nfsmount.conf +-r--r----- 1 root root 3213 31 oct. 2016 sudoers +-rw-r--r-- 1 root root 3145 10 nov. 2016 protocols +-rw-r--r-- 1 root root 2898 18 mai 2016 pacman.conf +-rw-r--r-- 1 root root 2584 6 août 2016 gai.conf +-rw-r--r-- 1 root root 2490 9 sept. 2016 mkinitcpio.conf +-rw-r--r-- 1 root root 2387 6 août 2016 nscd.conf +-rw-r--r-- 1 root root 2349 2 févr. 2016 mdadm.conf +-rw-r--r-- 1 root root 1814 1 mars 2014 request-key.conf +-rw-r--r-- 1 root root 1634 6 août 2016 rpc +-rw-r--r-- 1 root root 1605 15 juil. 2016 ntp.conf +-rw-r--r-- 1 root root 1443 9 nov. 2016 yaourtrc +-rw-r--r-- 1 root root 1362 14 mars 2016 ethertypes +-rw-r--r-- 1 root root 1317 31 oct. 2016 passwd +-rw-r--r-- 1 root root 1300 3 juil. 2014 nsswitch.ldap +-rw-r--r-- 1 root root 1277 31 oct. 2016 passwd- +-rw-r--r-- 1 root root 1191 15 août 2016 dhcpcd.conf +-rw-r--r-- 1 root root 945 5 sept. 2016 mke2fs.conf +-rw------- 1 root root 930 30 sept. 2015 crypttab +-rw-r--r-- 1 root root 918 21 oct. 2013 gssapi_mech.conf +-rw-r--r-- 1 root root 912 11 sept. 2017 vimrc +-rw-r--r-- 1 root root 856 31 oct. 2016 group +-rw------- 1 root root 843 17 juil. 12:32 shadow +-rw-r--r-- 1 root root 842 31 oct. 2016 group- +-rw------- 1 root root 815 31 oct. 2016 shadow- +-rw-r--r-- 1 root root 767 6 nov. 2015 netconfig +-rw-r--r-- 1 root root 714 6 nov. 2016 inputrc +-rw------- 1 root root 712 31 oct. 2016 gshadow +-rw-r--r-- 1 root root 706 4 juin 2016 ntp.conf.ori +-rw------- 1 root root 701 31 oct. 2016 gshadow- +-rw-r--r-- 1 root root 686 21 août 2016 logrotate.conf +-rw-r--r-- 1 root root 576 14 nov. 2016 bash.bashrc +-rw-r--r-- 1 root root 573 30 sept. 2015 profile +-rw-r--r-- 1 root root 558 14 déc. 2014 updatedb.conf +-rw-r--r-- 1 root root 541 30 juin 2016 anacrontab +-rw-r--r-- 1 root root 439 6 nov. 2015 exports.ori +-rw-r--r-- 1 root root 382 15 mars 2017 whois.conf +-rw-r--r-- 1 root root 376 21 avril 2015 trusted-key.key +-rw-r--r-- 1 root root 369 7 mars 2016 krb5.conf +-rw-r--r-- 1 root root 321 15 juil. 2016 nss_ldap.conf +-rw-r--r-- 1 root root 311 15 juil. 2016 pam_ldap.conf +-rw-r--r-- 1 root root 277 13 juil. 2016 fstab +-rw-r--r-- 1 root root 254 19 mai 2016 resolvconf.conf +-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 224 13 juil. 2016 exports +-rw-r--r-- 1 root root 216 22 juin 2016 fuse.conf +-rw-r--r-- 1 root root 209 13 juil. 2016 fstab.ori +-rw-r--r-- 1 root root 195 30 sept. 2015 hosts.ori +-rw-r--r-- 1 root root 182 13 juil. 2016 hosts +-rw-r--r-- 1 root root 172 20 nov. 2016 rsyncd.conf +-rw-r--r-- 1 root root 171 13 juil. 2016 idmapd.conf +-rw-r--r-- 1 root root 97 9 juin 2016 environment +-rw-r--r-- 1 root root 86 30 sept. 2015 securetty +-rw-r--r-- 1 root root 80 18 juil. 13:11 resolv.conf.bak +-rw-r--r-- 1 root root 74 30 juin 2016 cron.deny +-rw-r--r-- 1 root root 71 30 sept. 2015 ld.so.conf +-rw-r--r-- 1 root root 63 30 sept. 2015 host.conf +-rw-r--r-- 1 root root 52 30 sept. 2015 shells +-rw-r--r-- 1 root root 49 18 juil. 13:11 resolv.conf +-rw-r----- 1 root brlapi 33 31 oct. 2016 brlapi.key +-r--r--r-- 1 root root 33 5 juil. 2016 machine-id +-rw-r--r-- 1 root root 28 14 nov. 2016 bash.bash_logout +lrwxrwxrwx 1 root root 25 6 juil. 2017 localtime -> ../usr/share/zoneinfo/UTC +lrwxrwxrwx 1 root root 21 5 juil. 2016 os-release -> ../usr/lib/os-release +-rw-r--r-- 1 root root 20 30 sept. 2015 issue +lrwxrwxrwx 1 root root 19 5 juil. 2016 mtab -> ../proc/self/mounts +-rw-r--r-- 1 root root 17 5 juil. 2016 locale.conf +-rw-r--r-- 1 root root 10 5 juil. 2016 vconsole.conf +-rw-r--r-- 1 root root 9 13 juil. 2016 hostname +-rw-r--r-- 1 root root 4 5 juil. 2016 hostname.ori +total 1048 +-rw-r--r-- 1 root root 0 6 nov. 2016 odbcinst.ini +-rw-r--r-- 1 root root 0 6 nov. 2016 odbc.ini +-rw-r--r-- 1 root root 0 30 sept. 2015 motd +-rw-r--r-- 1 root root 0 30 sept. 2015 arch-release diff --git a/SCR.1.2/TP07/ls-output.txt b/SCR.1.2/TP07/ls-output.txt new file mode 100644 index 0000000..db693ba --- /dev/null +++ b/SCR.1.2/TP07/ls-output.txt @@ -0,0 +1,158 @@ +total 1048 +-rw-r--r-- 1 root root 541 30 juin 2016 anacrontab +-rw-r--r-- 1 root root 0 30 sept. 2015 arch-release +drwxr-xr-x 3 root root 4096 6 mars 2016 avahi +-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 +drwxr-xr-x 2 root root 4096 18 juin 2016 binfmt.d +-rw-r----- 1 root brlapi 33 31 oct. 2016 brlapi.key +-rw-r--r-- 1 root root 23543 28 juil. 2016 brltty.conf +drwxr-xr-x 4 root root 4096 7 mai 2016 ca-certificates +drwxr-xr-x 2 root root 4096 9 oct. 2016 ceph +drwxr-xr-x 2 root root 4096 15 nov. 2016 conf.d +drwxr-xr-x 2 root root 4096 19 sept. 2016 cron.d +drwxr-xr-x 2 root root 4096 30 juin 2016 cron.daily +-rw-r--r-- 1 root root 74 30 juin 2016 cron.deny +drwxr-xr-x 2 root root 4096 19 sept. 2016 cron.hourly +drwxr-xr-x 2 root root 4096 30 juin 2016 cron.monthly +drwxr-xr-x 2 root root 4096 30 juin 2016 cron.weekly +-rw------- 1 root root 930 30 sept. 2015 crypttab +drwxr-xr-x 3 root root 4096 24 oct. 2016 dbus-1 +drwxr-xr-x 2 root root 4096 9 nov. 2016 default +drwxr-xr-x 2 root root 4096 18 nov. 2015 depmod.d +-rw-r--r-- 1 root root 1191 15 août 2016 dhcpcd.conf +-rw-r--r-- 1 root root 4479 14 nov. 2016 drirc +-rw-r--r-- 1 root root 97 9 juin 2016 environment +-rw-r--r-- 1 root root 1362 14 mars 2016 ethertypes +-rw-r--r-- 1 root root 224 13 juil. 2016 exports +drwxr-xr-x 2 root root 4096 6 nov. 2015 exports.d +-rw-r--r-- 1 root root 439 6 nov. 2015 exports.ori +drwxr-xr-x 4 root root 4096 6 août 2016 fonts +-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 216 22 juin 2016 fuse.conf +-rw-r--r-- 1 root root 2584 6 août 2016 gai.conf +drwxr-xr-x 2 root root 4096 25 janv. 2017 gdb +-rw-r--r-- 1 root root 856 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 701 31 oct. 2016 gshadow- +drwxr-xr-x 3 root root 4096 18 juin 2016 gss +-rw-r--r-- 1 root root 918 21 oct. 2013 gssapi_mech.conf +drwxr-xr-x 2 root root 4096 9 nov. 2016 gssproxy +drwxr-xr-x 2 root root 4096 23 nov. 2016 gtk-3.0 +-rw-r--r-- 1 root root 63 30 sept. 2015 host.conf +-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 182 13 juil. 2016 hosts +-rw-r--r-- 1 root root 195 30 sept. 2015 hosts.ori +-rw-r--r-- 1 root root 171 13 juil. 2016 idmapd.conf +drwxr-xr-x 2 root root 4096 13 juin 2016 ifplugd +drwxr-xr-x 2 root root 4096 23 nov. 2016 ImageMagick-6 +drwxr-xr-x 4 root root 4096 20 janv. 2016 initcpio +-rw-r--r-- 1 root root 714 6 nov. 2016 inputrc +drwxr-xr-x 2 root root 4096 24 oct. 2016 iproute2 +drwxr-xr-x 2 root root 4096 14 mars 2016 iptables +-rw-r--r-- 1 root root 20 30 sept. 2015 issue +drwxr-xr-x 6 root root 4096 23 oct. 2016 java-8-openjdk +drwxr-xr-x 3 root root 4096 18 juin 2016 kernel +-rw-r--r-- 1 root root 369 7 mars 2016 krb5.conf +-rw-r--r-- 1 root root 83501 30 août 10:07 ld.so.cache +-rw-r--r-- 1 root root 71 30 sept. 2015 ld.so.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 libnl +drwxr-xr-x 2 root root 4096 20 mai 2016 libsmbios +drwxr-xr-x 4 root root 4096 15 nov. 2016 libvirt +-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 9614 6 août 2016 locale.gen.pacnew +lrwxrwxrwx 1 root root 25 6 juil. 2017 localtime -> ../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/SCR.1.2/TP07/tp07.txt b/SCR.1.2/TP07/tp07.txt new file mode 100644 index 0000000..277dda6 --- /dev/null +++ b/SCR.1.2/TP07/tp07.txt @@ -0,0 +1,19 @@ +expr length stock_market +affiche: 12 + +expr substr stock_market 1 5 +stock + +expr substr stock_market 7 12 +market + +expr index stock_market "_" +6 +parce que "_" est a la 6eme position + +expr index stock_market "_c" +4 +parce que "c" est a la 4eme position +(il regarde le premier chractere qui a une correspondance avec l'un des charactere de la chaine en EXPRESSION ) + + diff --git a/SCR.1.2/TP08/bin2dot_with_for.sh b/SCR.1.2/TP08/bin2dot_with_for.sh new file mode 100755 index 0000000..5b3c308 --- /dev/null +++ b/SCR.1.2/TP08/bin2dot_with_for.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +input=$1 +current=0 +for addr in $(cat $1) ; do + w=$(expr substr $addr 1 8) + x=$(expr substr $addr 9 8) + y=$(expr substr $addr 17 8) + z=$(expr substr $addr 25 8) + echo "$((2#$w)).$((2#$x)).$((2#$y)).$((2#$z))" >> $2 +done +exit \ No newline at end of file diff --git a/SCR.1.2/TP08/filename b/SCR.1.2/TP08/filename new file mode 100644 index 0000000..d031ed0 --- /dev/null +++ b/SCR.1.2/TP08/filename @@ -0,0 +1,2 @@ +2.2.2.2 +2.2.2.2 diff --git a/SCR.1.2/TP08/ipv4.dat b/SCR.1.2/TP08/ipv4.dat new file mode 100644 index 0000000..c765b63 --- /dev/null +++ b/SCR.1.2/TP08/ipv4.dat @@ -0,0 +1,3 @@ +10110010111000101000011101110010 +11100101110001010101100101010010 +00110010111001101000010001110010 \ No newline at end of file diff --git a/SCR.1.2/TP08/mult_mat.sh b/SCR.1.2/TP08/mult_mat.sh new file mode 100755 index 0000000..53380cd --- /dev/null +++ b/SCR.1.2/TP08/mult_mat.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +for (( i=$1 ; i<=$2 ; i++ )) + do + for (( j=$1 ; j<=$2 ; j++ )) + do + echo -n $(($i*$j))" " + done + echo +done + + +exit \ No newline at end of file diff --git a/SCR.1.2/TP08/my_seq.sh b/SCR.1.2/TP08/my_seq.sh new file mode 100755 index 0000000..49a8ec8 --- /dev/null +++ b/SCR.1.2/TP08/my_seq.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +if [[ $# -lt 1 ]] +then + echo "Usage: $0 : " + exit +fi +if [[ $1 -lt 0 ]] +then + echo "Argument must be positive" + exit +fi + +for((i=1;i<=$1;i++)) +do + echo $i +done +exit \ No newline at end of file diff --git a/SCR.1.2/TP08/output.txt b/SCR.1.2/TP08/output.txt new file mode 100644 index 0000000..b1d26ab --- /dev/null +++ b/SCR.1.2/TP08/output.txt @@ -0,0 +1,3 @@ +178.226.135.114 +229.197.89.82 +50.230.132.114 diff --git a/SCR.1.2/TP09/TREE/lib/auth/transm.d b/SCR.1.2/TP09/TREE/lib/auth/transm.d new file mode 100644 index 0000000..e69de29 diff --git a/SCR.1.2/TP09/TREE/lib/kernel/install.d/50-depmod.install b/SCR.1.2/TP09/TREE/lib/kernel/install.d/50-depmod.install new file mode 100755 index 0000000..68c24be --- /dev/null +++ b/SCR.1.2/TP09/TREE/lib/kernel/install.d/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/SCR.1.2/TP09/TREE/lib/kernel/install.d/50-mkinitcpio.install b/SCR.1.2/TP09/TREE/lib/kernel/install.d/50-mkinitcpio.install new file mode 100755 index 0000000..c8f51ba --- /dev/null +++ b/SCR.1.2/TP09/TREE/lib/kernel/install.d/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/SCR.1.2/TP09/TREE/lib/kernel/install.d/90-loaderentry.install b/SCR.1.2/TP09/TREE/lib/kernel/install.d/90-loaderentry.install new file mode 100755 index 0000000..c17b8a9 --- /dev/null +++ b/SCR.1.2/TP09/TREE/lib/kernel/install.d/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/SCR.1.2/TP09/TREE/lib/krb5/plugins/inout.dev b/SCR.1.2/TP09/TREE/lib/krb5/plugins/inout.dev new file mode 100644 index 0000000..0e36aef --- /dev/null +++ b/SCR.1.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/SCR.1.2/TP09/TREE/lib/krb5/plugins/kdb/db2.so b/SCR.1.2/TP09/TREE/lib/krb5/plugins/kdb/db2.so new file mode 100644 index 0000000..2ff0f07 Binary files /dev/null and b/SCR.1.2/TP09/TREE/lib/krb5/plugins/kdb/db2.so differ diff --git a/SCR.1.2/TP09/TREE/lib/krb5/plugins/kdb/kldap.so b/SCR.1.2/TP09/TREE/lib/krb5/plugins/kdb/kldap.so new file mode 100644 index 0000000..b9561fa Binary files /dev/null and b/SCR.1.2/TP09/TREE/lib/krb5/plugins/kdb/kldap.so differ diff --git a/SCR.1.2/TP09/TREE/lib/krb5/plugins/play.in b/SCR.1.2/TP09/TREE/lib/krb5/plugins/play.in new file mode 100644 index 0000000..06d7405 Binary files /dev/null and b/SCR.1.2/TP09/TREE/lib/krb5/plugins/play.in differ diff --git a/SCR.1.2/TP09/TREE/lib/krb5/plugins/preauth/otp.so b/SCR.1.2/TP09/TREE/lib/krb5/plugins/preauth/otp.so new file mode 100644 index 0000000..2362086 Binary files /dev/null and b/SCR.1.2/TP09/TREE/lib/krb5/plugins/preauth/otp.so differ diff --git a/SCR.1.2/TP09/TREE/lib/krb5/plugins/preauth/pkinit.so b/SCR.1.2/TP09/TREE/lib/krb5/plugins/preauth/pkinit.so new file mode 100644 index 0000000..48b9b60 Binary files /dev/null and b/SCR.1.2/TP09/TREE/lib/krb5/plugins/preauth/pkinit.so differ diff --git a/SCR.1.2/TP09/TREE/lib/krb5/synch/atom.install b/SCR.1.2/TP09/TREE/lib/krb5/synch/atom.install new file mode 100644 index 0000000..a793689 --- /dev/null +++ b/SCR.1.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/SCR.1.2/TP09/TREE/lib/krb5/synch/settings.sh b/SCR.1.2/TP09/TREE/lib/krb5/synch/settings.sh new file mode 100644 index 0000000..ada62ea --- /dev/null +++ b/SCR.1.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/SCR.1.2/TP09/arch_for_find.tar.gz b/SCR.1.2/TP09/arch_for_find.tar.gz new file mode 100644 index 0000000..65a41e0 Binary files /dev/null and b/SCR.1.2/TP09/arch_for_find.tar.gz differ diff --git a/tp04-reponse.txt b/tp04-reponse.txt new file mode 100644 index 0000000..f038933 --- /dev/null +++ b/tp04-reponse.txt @@ -0,0 +1,30 @@ +localectl status +localectl list-locales +loadkeys + +set-keymap azerty + +sda +1 seule +-p + + +inet ip +inet6 ipv6 +link/ether adress mac + + +ip adress help +ip address {add|change|replace} IFADDR dev IFNAME [ LIFETIME ] + [ CONFFLAG-LIST ] + ip address del IFADDR dev IFNAME [mngtmpaddr] + ip address {save|flush} [ dev IFNAME ] [ scope SCOPE-ID ] + [ to PREFIX ] [ FLAG-LIST ] [ label LABEL ] [up] + ip address [ show [ dev IFNAME ] [ scope SCOPE-ID ] [ master DEVICE ] + [ nomaster ] + [ type TYPE ] [ to PREFIX ] [ FLAG-LIST ] + [ label LABEL ] [up] [ vrf NAME ] ] + +la meme que le contneu du fichier + +-U \ No newline at end of file diff --git a/tp05-reponse.txt b/tp05-reponse.txt new file mode 100644 index 0000000..09fca0d --- /dev/null +++ b/tp05-reponse.txt @@ -0,0 +1,13 @@ +1) man -k motclé +2) etc/hostname +3) uname -a +4) lscpu +5) 5068.96 +6) Intel +7) Little Endian +8) lspci -vvv +9) lsmod +10) Red Hat, Inc. Virtio network device + Kernel driver in use: virtio-pci +11) 3gb (free) +12) \ No newline at end of file