This commit is contained in:
stiti
2023-12-09 17:51:11 +01:00
parent cd3bcfafbe
commit 4b25cf8981
60 changed files with 1554 additions and 0 deletions

0
TP01/AA/DIR1/DIR11/fi112 Normal file
View File

0
TP01/BB/DIR1/DIR11/fi112 Normal file
View File

97
TP01/Reponse Normal file
View File

@@ -0,0 +1,97 @@
I
whoami = ammara
id = 840(ammara) gid =622(students22) groups =622(students22), 513(domain users),100001(BUILTIN\users)
os = Linux salle223-10 5.15.62-1-lts #1 SMP Sun, 21 Aug 2022 18:43:48 +0000 x86_64 GNU/Linux
/export/home/an22/ammara
total 4
drwxr-xr-x 5 ammara students22 4096 Sep 6 13:48
. .Xauthority .config .gnupg .xsession-errors
.. .bash_history .dmrc .local .xsession-errors.old
.ICEauthority .cache .emacs.d .mozilla Desktop
drwx------ 9 ammara students22 4096 Sep 6 13:48 .
drwxr-xr-x 90 root students22 4096 Sep 5 09:51 ..
-rw------- 1 ammara students22 0 Sep 2 11:22 .ICEauthority
-rw------- 1 ammara students22 56 Sep 6 13:45 .Xauthority
-rw------- 1 ammara students22 1177 Sep 5 16:13 .bash_history
drwxr-xr-x 7 ammara students22 4096 Sep 2 11:27 .cache
drwxr-xr-x 8 ammara students22 4096 Sep 2 11:24 .config
-rw-r--r-- 1 ammara students22 23 Sep 5 15:04 .dmrc
drwx------ 3 ammara students22 4096 Sep 6 13:51 .emacs.d
drwx------ 3 ammara students22 4096 Sep 2 11:22 .gnupg
drwxr-xr-x 3 ammara students22 4096 Sep 2 11:22 .local
drwx------ 4 ammara students22 4096 Sep 2 11:25 .mozilla
-rw------- 1 ammara students22 3547 Sep 6 13:46 .xsession-errors
-rw------- 1 ammara students22 4318 Sep 5 15:10 .xsession-errors.old
drwxr-xr-x 5 ammara students22 4096 Sep 6 13:48 Desktop
"que contient /etc/"
ImageMagick-7 gdb logrotate.d profile.d
ODBCDataSources gimp lvm protocols
UPower group machine-id pulse
X11 group- mailcap rc_keymaps
acpi grub.d makepkg.conf rc_maps.cfg
alsa gshadow man_db.conf request-key.conf
anacrontab gshadow- mdadm.conf request-key.d
ant.conf gss mime.types resolv.conf
apparmor.d gssproxy mke2fs.conf resolv.conf.bak
arch-release gtk-2.0 mkinitcpio.conf resolvconf.conf
audit gtk-3.0 mkinitcpio.d rpc
avahi healthd.conf modprobe.d samba
bash.bash_logout host.conf modules-load.d sasl2
bash.bashrc hostname mplayer securetty
bash_completion.d hosts mtab security
bind.keys idmapd.conf named.conf sensors.d
bindresvport.blacklist ifplugd ndctl sensors3.conf
binfmt.d initcpio ndctl.conf.d services
ca-certificates inputrc netconfig shadow
cifs-utils iproute2 netctl shadow-
conf.d iptables nfs.conf shells
cron.d issue nfs.conf.pacnew skel
cron.daily jack nfsmount.conf ssh
cron.deny java-8-openjdk nginx ssl
cron.hourly java-openjdk nscd.conf sudo.conf
cron.monthly java11-openjdk nsswitch.conf sudo_logsrvd.conf
cron.weekly kernel ntp.conf sudoers
crypttab keyutils odbc.ini sudoers.d
cups krb5.conf odbcinst.ini sysctl.d
daxctl.conf.d krb5.keytab openldap systemd
dconf ld.so.cache openmpi tmpfiles.d
default ld.so.conf openpmix tpm2-tss
depmod.d ld.so.conf.d openvswitch trusted-key.key
dhcpcd.conf libaudit.conf os-release ts.conf
docker libblockdev pacman.conf udev
e2scrub.conf libinput pacman.d udisks2
environment libnl pam.d updatedb.conf
ethertypes libpaper.d pam_ldap.conf vconsole.conf
exports libreoffice papersize vdpau_wrapper.cfg
exports.d libva.conf passwd vimrc
findlib.conf libvirt passwd- wgetrc
fonts lightdm pinentry xattr.conf
fop.conf lirc pkcs11 xdg
fstab locale.conf polkit-1 xinetd.d
fuse.conf locale.gen postfix xml
gai.conf localtime printcap yaourtrc
gconf login.defs profile
/export/home/an22/ammara
/etc
mkdir -p Desktop/SCR/TP1/AA/DIR1/DIR11/
fin du 3 non fait, c'est la meme que le protocole en inverse
debut IV

85
TP01/reponses.txt Normal file
View File

@@ -0,0 +1,85 @@
Commande pour ouvrir le document réponses : emacs reponses.txt& -> '&' permet de ne pas bloquer le terminal
Réponses TP01 :
I.
Commande pour connaître la session courante :
whoami -> stiti
id -> uid=2134(stiti) gid=623(students23) groups=623(students23),513(domain users),100001(BUILTIN\users)
Commande pour connaître le système dexploitation :
uname -> Linux
Commande pour connaître le chemin jusquau dossier maison :
printenv HOME -> /export/home/an23/stiti
---------------------------------------------------------------
II.
Commande pour connaître le répertoire de travail :
pwd -> Exemple : /export/home/an23/stiti/SCR/TP01 (L'endroit ou je suis actuellement)
Commande pour se déplacer dans les dossiers :
cd -> Exemple : cd Desktop
---------------------------------------------------------------
III.
Commande pour créer des dossiers et fichiers vident:
mkdir -p permet de créer plusieurs dossiers -> Exemple 1 (mkdir) : mkdir -p dossier1 dossier2 dossier3 (quand je suis déjà dans le bon emplacement pour créer mon fichier) ///
touch permet de créer des fichiers Exemple 2 (mkdir) : mkdir -p export/.../dossier1 export/.../dossier2
Commande pour consulter le contenu d'un fichier:
ls -a permet de voir les fichiers cachés
-l permet de voir les permissions
-R permet de voir les fichiers de l'arborecence complète)
Commande pour copier le contenu d'un fichier:
cp
Commande pour déplacer et renommer un fichier:
mv
Commandes que j'ai effectués :
1. ls AA/DIR3 /////// Ls AA/DIR1/DIR11
2. cp -r AA/DIR3/fi31 AA/DIR2
3. cp -r AA/DIR3/fi31 AA/DIR1/Fi11
4. cp -r AA/DIR3/fi31 AA/DIR3/Fi31cp
5. mv AA/DIR3/fi31 AA/DIR1/DIR11 /////// ls AA/DIR1/DIR11
6. mv AA/DIR3/Fi31cp AA/DIR3/fi31
7. mv AA/DIR3/Fi31cp AA/DIR3/fi31
8. cp -r AA ~/SCR/TP1/BB
---------------------------------------------------------------
IV.
1. Je me place dans mon domicile, je tape fi21 :
-> Résultat obtenue : 'bash: fi21: command not found'
1. Consulter la valeur de la variable d'environnement PATH (démarche identique à ce qui a été fait, plus haut, avec la variable HOME)
-> Je tape 'printenv PATH' ||| Résultat obtenue : /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/opt/android-sdk/tools/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
2.En restant dans mon domicile, je tape ./fi21 :
-> Résultat obtenue : bash: ./fi21: No such file or directory
3. En restant dans mon domicile, je recommence en donnant le chemin complet vers fi21 :
-> ./TP01/AA/DIR2/fi21 ||| Résultat obtenue : bash: ./TP01/AA/DIR2/fi21: Is a directory
4. Je me place dans DIR2 et je tape fi21 :
-> Résultat obtenue : bash: fi21: command not found
5. Je reste dans DIR2 et je tape ./fi21 :
-> Résultat obtenue : bash: ./fi21: Is a directory
6. Jajoute la permission “x” au fichier fi21 et je tape ./fi21 :

74
TP01/reponses.txt~ Normal file
View File

@@ -0,0 +1,74 @@
Réponses TP01 :
I.
Commande pour connaître la session courante :
whoami -> stiti
id -> uid=2134(stiti) gid=623(students23) groups=623(students23),513(domain users),100001(BUILTIN\users)
Commande pour connaître le système dexploitation :
uname -> Linux
Commande pour connaître le chemin jusquau dossier maison :
printenv HOME -> /export/home/an23/stiti
---------------------------------------------------------------
II.
Commande pour connaître le répertoire de travail :
pwd -> Exemple : /export/home/an23/stiti/SCR/TP01 (L'endroit ou je suis actuellement)
Commande pour se déplacer dans les dossiers :
cd -> Exemple : cd Desktop
---------------------------------------------------------------
III.
Commande pour créer des dossiers et fichiers vident:
mkdir -p permet de créer plusieurs dossiers -> Exemple 1 (mkdir) : mkdir -p dossier1 dossier2 dossier3 (quand je suis déjà dans le bon emplacement pour créer mon fichier) ///
touch permet de créer des fichiers Exemple 2 (mkdir) : mkdir -p export/.../dossier1 export/.../dossier2
Commande pour consulter le contenu d'un fichier:
ls -a permet de voir les fichiers cachés
-l permet de voir les permissions
-R permet de voir les fichiers de l'arborecence complète)
Commande pour copier le contenu d'un fichier:
cp
Commande pour déplacer et renommer un fichier:
mv
Commandes que j'ai effectués :
1. Ls AA/DIR3 /////// Ls AA/DIR1/DIR11
2. cp -r AA/DIR3/fi31 AA/DIR2
3. cp -r AA/DIR3/fi31 AA/DIR1/Fi11
4. cp -r AA/DIR3/fi31 AA/DIR3/Fi31cp
5. mv AA/DIR3/fi31 AA/DIR1/DIR11 /////// ls AA/DIR1/DIR11
6. mv AA/DIR3/Fi31cp AA/DIR3/fi31
7. mv AA/DIR3/Fi31cp AA/DIR3/fi31
8. cp -r AA ~/SCR/TP1/BB
---------------------------------------------------------------
IV.
1. Je me place dans mon domicile, je tape fi21 :
-> Résultat obtenue : 'bash: fi21: command not found'
1. Consulter la valeur de la variable d'environnement PATH (démarche identique à ce qui a été fait, plus haut, avec la variable HOME)
-> Je tape 'printenv PATH' ||| Résultat obtenue : /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/opt/android-sdk/tools/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
2.
OUVRIR FICHIER TEXTE : emacs reponses.txt&