Vous êtes sur la page 1sur 3

Exercice n°2:

1)└──╼ $mkdir envinfo1


2)└──╼ $mkdir envinfo1/td3 envinfo1/td4 envinfo1/td5
3)└──╼ $cd envinfo1
4)└──╼ $mkdir td6 td7 td8
5) La différence est que la première commande crée des dossiers ou fichiers à partir du fichier
utilisateur et la deuxième commande crée des fichiers à partir du dossier ou fichier spécifié.

6)└──╼ $mkdir -p eval/qcm1 eval/qcm2


7) Deux arguments

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]

le chemain relatif : ┌─[ghost@parrot]─[~/envinfo1/eval/qcm2]


└──╼ $ls -al ~/envinfo1/

le chemain absolu : ┌─[ghost@parrot]─[~/envinfo1/eval/qcm2]


└──╼ $ls -al /home/ghost/envinfo1/

visualiser l’arborescence: ┌─[ghost@parrot]─[~/envinfo1/eval/qcm2]


└──╼ $tree ../../

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/

Vous aimerez peut-être aussi