Corrigé 10.1 find

1.

Appuyez sur les touches [Ctrl]-[Alt]-[F3], puis :

localhost login: tux 
Password: <le mot de passe n'apparaît pas> 
[tux]$ 

2.

[tux]$ cd 
[tux]$ pwd 
/home/tux 
[tux]$ find . 
. 
./droits 
./.gnome2_private 
./monscript 
./.thumbnails 
./.thumbnails/normal 
./.thumbnails/normal/d4018c3831bb08001dfad1f175a8d667.png 
./.thumbnails/normal/c2f2e44685edd23e94cfacc920c5bffc.png 
... 

3.

[tux]$ find /bin /lib 
/bin 
/bin/rm 
/bin/touch 
/bin/csh 
/bin/env 
/bin/rview 
/bin/su 
... 
/lib 
/lib/libacl.so.1 
/lib/libasound.so.2 
/lib/libpam_misc.so.0 
/lib/libc-2.3.5.so 
/lib/libdevmapper.so 
... 

4.

Arborescence de répertoires du sous-répertoire chapitre5 :

[tux]$ find chapitre5 -type d 
chapitre5 
chapitre5/rep2 
chapitre5/docperso 
chapitre5/rep1 

Arborescence de fichiers ordinaires du sous-répertoire chapitre5 :

[tux]$ find chapitre5 -type f 
chapitre5/fic2 
chapitre5/docperso/fica 
chapitre5/docperso/ficc 
chapitre5/docperso/ficd 
chapitre5/docperso/ficb 
chapitre5/fic1 
chapitre5/rep1/secret 

5.

[tux]$ cd chapitre5 
[tux]$ pwd 
/home/tux/chapitre5 
[tux]$ find . -name 'fic*' 
./fic2 
./docperso/fica 
./docperso/ficc 
./docperso/ficd 
./docperso/ficb 
./fic1 

Note

Les apostrophes sont obligatoires pour que le shell laisse l’interprétation...

couv_TP4BLIN.png

Découvrez 

le livre :

Aussi inclus dans nos :

Précédent
Prérequis
Suivant
Corrigé 10.2 grep