

Projet DVD-MIAGE 2010
Exercice 4 – Navigation dans l'arborescence (suite)
Solution :
B – D – E
Exercice 5 – Visualisation de fichiers
Solution :
ls *5
ls annee4*
ls annee4?
ls annee[!0-9]*
ls *ana*
ls [aA]*
Exercice 6 – Manipulation de fichiers
Solution :
1) cp (copy) fait une copie du premier fichier : un nouveau fichier est crée, son contenu est
identique a celui du fichier d'origine, mais leurs noms sont différents. toto et titi existent de
façon parallèle.
mv (move) renomme le fichier toto en titi . Après l'exécution de la commande, toto
n'existe plus et titi a le contenu de toto (avant le mv ).
2) cp *[41]? /tmp
Exercice 7 – Gestion des droits d'accès
Solution :
Commande 1 : chmod 751 essai_droit
chmod o-rw essai_droit
Commande 2 : chmod 521 essai_droit
chmod u-w,g-rx,g+w,o-r essai_droit
Commande 3 : chmod 214 essai_droit
chmod u-rx,g-r,o-x essai_droit
Commande 4 : chmod 150 essai_droit
chmod u-rw,o-rx essai_droit
Exercice 8 – Redirection et tubes
Solution :
ls -l /usr/bin > tmp | less tmp | rm tmp
Exercice 9 – La commande cat
Solution :
1) D
2) B
Systèmes d'exploitation A. Queudet