Académique Documents
Professionnel Documents
Culture Documents
Exercice n°3:
1)└──╼ $cd eval/qcm1
2)└──╼ $cd , Dans le dossier de utilisateur.
3) non parce que je suis dans mon répertoire personnel et qcm1 dans un autre répertoire.
4) le chemin relatif : /envinfo1/eval/qcm1
le chemin absolu : /home/ghost/envinfo1/eval/qcm1
5) └──╼ $cd ~
└──╼ $pwd
le chemin absolu de mon répertoire personnel : /home/ghost.
6) le chemin absolu à partir de la racine : /home/ghost/envinfo1/eval/qcm1
le chemin absolu à partir de mon répertoire personnel : ghost/envinfo1/eval/qcm1
le chemin relatif : envinfo1/eval/qcm1
Exercice n°4:
1) └──╼ $touch controle1.txt controle2.txt controle3.txt
2) └──╼ $mkdir controls
3) └──╼ $mv controls examens
4) └──╼ $mv controle1.txt controle2.txt controle3.txt examens
5) └──╼ $cd examens
└──╼ $cp -v *.txt /home/ghost/envinfo1/eval/qcm1
6) └──╼ $cd /home/ghost/envinfo1/eval/qcm1
Exercice n°5:
5) ┌─[ghost@parrot]─[~/envinfo1/eval/qcm2]
└──╼ $rm controle?.txt
6)┌─[ghost@parrot]─[~/envinfo1/eval/qcm2]
└──╼ $mkdir .reponses.txt
7)┌─[ghost@parrot]─[~/envinfo1/eval/qcm2]
└──╼ $ls -a
8)┌─[ghost@parrot]─[~/envinfo1/eval/qcm2]
└──╼ $rmdir -f /home/ghost/envinfo1/eval/qcm1
Exercice n°6:
1) ┌─[ghost@parrot]─[~/envinfo1/eval]
└──╼ $touch qcm1.txt Qcm2.doc QCm3.txt QCM4.doc
2)┌─[ghost@parrot]─[~/envinfo1/eval]
└──╼ $ls -a Q*
3)┌─[ghost@parrot]─[~/envinfo1/eval]
└──╼ $ls -a ??M*
4)┌─[ghost@parrot]─[~/envinfo1/eval]
└──╼ $ls -a *.txt
5)┌─[ghost@parrot]─[~/envinfo1/eval]
└──╼ $rm [qQ]*
Exercice n°7:
1)┌─[ghost@parrot]─[~/envinfo1/eval]
└──╼ $cd qcm2
2)┌─[ghost@parrot]─[~/envinfo1/eval/qcm2]
└──╼ $ls ~/envinfo1/td[4-8]
3) ┌─[ghost@parrot]─[~/envinfo1/eval/qcm2
└──╼ $rmdir ~/envinfo1/td[4-8]
5) non, vous ne Pouvez pas récupérer les répertoire et fichiers que vous avez supprimés avec les
commandes précédentes.
6) ┌─[ghost@parrot]─[~]
└──╼ $rm -r envinfo1/