linux base d'administration

Upload: algazeli

Post on 30-May-2018

292 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/14/2019 Linux Base d'Administration

    1/640

    L i n u x

    B a s e d ' a d m i n i s t r a t i o n p o u r l e s u p e r u t i l i s a t e u r E x p o s .

    A d a p t a t i o n d e R u t e U s e r ' s T u t o r i e l a n d E x p o s i t i o n

    d e P a u l S h e e r .

    T h i e r r y L e p o i n t .

    I n s t i t u t S u p r i e u r d ' E l e c t r o n i q u e e t d u N u m r i q u e

    4 1 , b o u l e v a r d V a u b a n , 5 9 0 4 6 L i l l e C e d e x ( F r a n c e ) .

    8 j u i l l e t 2 0 0 6

  • 8/14/2019 Linux Base d'Administration

    2/640

    1

    D r o i t s e t d e v o i r s d ' u t i l i s a t i o n .

    C e t t e d o c u m e n t a t i o n e s t m i s e d i s p o s i t i o n s o u s u n c o n t r a t C r e a t i v e C o m -

    m o n s P a t e r n i t - P a s d ' U t i l i s a t i o n C o m m e r c i a l e - P a r t a g e d e s C o n d i t i o n s I n i -

    t i a l e s l ' I d e n t i q u e 2 . 5 ( b y - n c - s a ) .

    V o u s t e s l i b r e s :

    d e r e p r o d u i r e , d i s t r i b u e r e t c o m m u n i q u e r c e t t e c r a t i o n a u p u b l i c ,

    d e m o d i e r c e t t e c r a t i o n

    s e l o n l e s c o n d i t i o n s s u i v a n t e s :

    P a t e r n i t ( b y ) : v o u s d e v e z c i t e r l e n o m d e l ' a u t e u r o r i g i n a l .

    P a s d ' U t i l i s a t i o n C o m m e r c i a l e ( n c ) : v o u s n ' a v e z p a s l e d r o i t d ' u t i l i s e r

    c e t t e c r a t i o n d e s n s c o m m e r c i a l e s .

    P a r t a g e d e s C o n d i t i o n s I n i t i a l e s l ' I d e n t i q u e ( s a ) : s i v o u s m o d i e z , t r a n s -

    f o r m e z o u a d a p t e z c e t t e c r a t i o n , v o u s n ' a v e z l e d r o i t d e d i s t r i b u e r l a c r a -

    t i o n q u i e n r s u l t e q u e s o u s u n c o n t r a t i d e n t i q u e c e l u i - c i .

    A c h a q u e r u t i l i s a t i o n o u d i s t r i b u t i o n , v o u s d e v e z f a i r e a p p a r a t r e c l a i r e m e n t

    a u x a u t r e s l e s c o n d i t i o n s c o n t r a c t u e l l e s d e m i s e d i s p o s i t i o n d e c e t t e c r a t i o n .

    C h a c u n e d e c e s c o n d i t i o n s p e u t t r e l e v e s i v o u s o b t e n e z l ' a u t o r i s a t i o n d u t i t u -

    l a i r e d e s d r o i t s . C e q u i p r c d e n ' a e c t e e n r i e n v o s d r o i t s e n t a n t q u ' u t i l i s a t e u r

    ( e x c e p t i o n s a u d r o i t d ' a u t e u r : c o p i e s r s e r v e s l ' u s a g e p r i v d u c o p i s t e , c o u r t e s

    c i t a t i o n s , p a r o d i e . . . )

    P o u r u n e d e s c r i p t i o n l g a l e p l u s d t a i l l e , v e u i l l e z c o n s u l t e z l e C o d e J u r i -

    d i q u e d a n s l a v e r s i o n i n t g r a l e d u c o n t r a t l ' a d r e s s e h t t p : / / c r e a t i v e c o m m o n s . o r g -

    / l i c e n s e s / b y - n c - s a / 2 . 5 / l e g a l c o d e a i n s i q u e l e s a v e r t i s s e m e n t s l ' a d r e s s e h t t p : / / -

    c r e a t i v e c o m m o n s . o r g / l i c e n s e s / d i s c l a i m e r - p o p u p ? l a n g = f r .

  • 8/14/2019 Linux Base d'Administration

    3/640

    2

    S o m m a i r e .

    1 G N U / L i n u x e t l e s l o g i c i e l s l i b r e s 3 1

    2 I n t r o d u c t i o n 3 5

    3 L e s b a s e s 3 8

    4 M a t r i e l P C 4 7

    5 L e s c o m m a n d e s d e b a s e 5 8

    6 L e s e x p r e s s i o n s r g u l i r e s 8 1

    7 M o d i c a t i o n s d e c h i e r s t e x t e s 8 5

    8 L e s s c r i p t s d u s h e l l 9 2

    9 F l u x e t s e d c o m m e d i t e u r d e u x 1 0 3

    1 0 P r o c e s s u s e t v a r i a b l e s d ' e n v i r o n n e m e n t 1 1 1

    1 1 C o u r r i e l 1 2 5

    1 2 C o m p t e s d ' u t i l i s a t e u r s e t d r o i t s 1 2 9

    1 3 U t i l i s a t i o n s d e s s e r v i c e s i n t e r n e t 1 3 7

    1 4 R e s s o u r c e s L i n u x 1 4 2

    1 5 D r o i t s e t l e s t r o i s t y p e s d e t e m p s 1 4 7

    1 6 L i e n s s y m b o l i q u e s e t p h y s i q u e s 1 5 1

    1 7 D o c u m e n t a t i o n p r - i n s t a l l e 1 5 4

    1 8 S u r v o l d e l a s t r u c t u r e d e s r p e r t o i r e s U n i x 1 6 0

    1 9 L e s p r i p h r i q u e s d ' U n i x 1 6 6

    2 0 P a r t i t i o n s , s y s t m e s d e c h i e r s , f o r m a t a g e e t m o n t a g e 1 9 7

    2 1 S c r i p t s d e s h e l l a v a n c s 2 1 3

    2 2 S e r v i c e s d u s y s t m e e t l p d 2 3 5

    2 3 E l m e n t s d e p r o g r a m m a t i o n C 2 4 8

    2 4 B i b l i o t h q u e s p a r t a g e s 2 7 6

    2 5 P a q u e t s s o u r c e s e t b i n a i r e s 2 8 0

    2 6 I n t r o d u c t i o n I P 2 9 0

    2 7 T C P e t U D P 3 0 6

    2 8 D N S e t r s o l u t i o n d e n o m s 3 1 7

    2 9 S y s t m e d e c h i e r s e n r s e a u N F S 3 2 8

    3 0 L e s s e r v i c e s e x c u t s s o u s i n e t d 3 3 3

    3 1 e x i m e t s e n d m a i l 3 4 0

    3 2 D m a r r a g e , l i l o e t i n i t r d 3 5 7

    3 3 i n i t , ? g e t t y e t n i v e a u x d ' e x c u t i o n U n i x 3 6 5

    3 4 E n v o i d e t l c o p i e s 3 7 3

    3 5 u u c p e t u u x 3 7 7

    3 6 L e s y s t m e d e c h i e r s L i n u x 3 8 7

    3 7 h t t p d : s e r v e u r w e b A p a c h e 4 3 1

    3 8 c r o n t d e t a t d 4 5 2

    3 9 S e r v e u r P o s t g r e s S Q L 4 5 6

    4 0 s m b d l e p r o j e t N T S a m b a 4 6 7

    4 1 n a m e d s e r v e u r d e n o m s d e d o m a i n e 4 8 0

    4 2 P r o t o c o l P o i n t - - P o i n t R s e a u D i a l u p 4 9 6

    4 3 S o u r c e s d u n o y a u L i n u x , m o d u l e s e t s u p p o r t m a t r i e l 5 1 5

    4 4 L e s y s t m e X - W i n d o w 5 3 7

    4 5 U n i x e t l a s c u r i t 5 6 6

    A P r o g r a m m e d e c o u r s 5 8 0

    B C e r t i c a t i o n L P I R f r e n c e s c r o i s e s 5 8 5

  • 8/14/2019 Linux Base d'Administration

    4/640

  • 8/14/2019 Linux Base d'Administration

    5/640

    4

    P r f a c e d e l ' d i t i o n o r i g i n a l e .

    L o r s q u ' e n 1 9 9 4 j ' a i c o m m e n c t r a v a i l l e r a v e c G N U / L i n u x , j e v e n a i s d i -

    r e c t e m e n t d u m o n d e D O S . B i e n q u ' U n i x m e f t p e u f a m i l i e r , l e s l i v r e s t r a i t a n t

    d e L i n u x s u p p o s a i e n t q u e t o u t e p e r s o n n e u t i l i s a n t c e s y s t m e d ' e x p l o i t a t i o n

    a v a i t m i g r d e s s y s t m e s V o u B S D d o n t j e n ' a v a i s j a m a i s e n t e n d u p a r l e r . C ' e s t

    u n e e n t r e p r i s e d l i c a t e q u e d e c r e r , p o u r c e r t a i n s d e p a r t a g e r , l a m t h o d e d o n t

    v o u s a i m e r i e z d i s p o s e r . J e n e s u i s p a s c o n v a i n c u q u e , m m e l ' h e u r e a c t u e l l e ,

    u n t e x t e u n i c a t e u r e x i s t e c t d u p r s e n t o u v r a g e . Q u o i q u ' i l e n s o i t , j e v o u s

    p r o p o s e c e l u i d a n s u n t a t q u e j e j u g e m a l h e u r e u s e m e n t i n c o m p l e t .

    J ' e s p r e q u e l e l e c t e u r a u r a u n t e x t e u n i q u e p o u r l e g u i d e r p a r m i t o u t e s l e s

    f a c e t t e s d u s y s t m e G N U / L i n u x .

    P a u l S h e e r .

  • 8/14/2019 Linux Base d'Administration

    6/640

    5

    P r f a c e d e l a t r a d u c t i o n f r a n a i s e .

    B i e n d e s i n t r o d u c t i o n s a u s y s t m e G N U / L i n u x e x i s t e n t . D e p u i s m e s p r e -

    m i e r s p a s a v e c L i n u x ( o c t o b r e 2 0 0 1 ) e t c o m m e p o u r b e a u c o u p d ' u t i l i s a t e u r s , l e

    l i v r e d e P a u l S h e e r ( q u i p e u t t r e c o n s u l t s u r h t t p : / / w w w . i c o n . c o . z a / ~ p s h e e r / -

    b o o k / ) m ' a d o n n l ' o c c a s i o n d ' a v o i r u n t e x t e r e g r o u p a n t d e n o m b r e u x a s p e c t s

    s o u v e n t d i s s m i n s d a n s p l u s i e u r s o u v r a g e s . S o n b u t e s t d ' a i d e r m a t r i s e r l e

    s y s t m e G N U / L i n u x a u p o i n t d e p a s s e r u n e h a b i l i t a t i o n L i n u x . I l v i e n t p o i n t

    p o u r c o m p l t e r u n a u t r e l i v r e q u i n e q u i t t e p a s m o n b u r e a u : L e s y s t m e L i n u x

    d e M a t t W e l s h , M a t t h i a s K a l l e D a l h e i m e r e t L a r K a u m a n p u b l i c h e z O ' R e i l l y

    ( h t t p : / / w w w . o r e i l l y . f r / ) . J ' e s p r e d e t o u t c o e u r q u e l a t r a d u c t i o n f r a n a i s e d e

    R u t e U s e r ' s T u t o r i a l a n d E x p o s i t i o n a p p o r t e r a u n e p o r t e d ' e n t r e s u p p l m e n -

    t a i r e d a n s l e m o n d e d e G N U / L i n u x . T o u t l e c t e u r q u i s o u h a i t e a b o r d e r d e s

    a s p e c t s p l u s t h o r i q u e s e t t e c h n i q u e s d ' a d m i n i s t r a t i o n , d e r s e a u x , d e s c u r i t ,

    e t c . a u r a u n e b a s e e x t r m e m e n t s o l i d e p o u r p o u r s u i v r e .

    L a p r s e n t e t r a d u c t i o n p e u t t r e g r a n d e m e n t a m l i o r e . A u s s i , s e r a i - j e r e -

    c o n n a i s s a n t t o u t e p e r s o n n e m e s i g n a l a n t d e s e r r e u r s o u m e t r a n s m e t t a n t d e s

    c o n s e i l s ( t h i e r r y . l e p o i n t @ t i s c a l i . b e ) .

    T h i e r r y L e p o i n t

    E l o u g e s , l e 1 5 j u i l l e t 2 0 0 4

  • 8/14/2019 Linux Base d'Administration

    7/640

    6

    R e m e r c i e m e n t s

    M e s r e m e r c i e m e n t s v o n t A b r a h a m v a n d e r M e r w e , r a p p o r t e u r , e t J a n e

    B o n n e l l , m o n d i t e u r . J e t i e n s a u s s i r e m e r c i e r J o n a t h a n M a l t z , J a r r o d C i n -

    m a n e t A l a n T r e d g o l d p o u r m ' a v o i r i n t r o d u i t d a n s l e m o n d e G N U / L i n u x d s

    1 9 9 4 . M a r e c o n n a i s s a n c e v a a u s s i a u x d v e l o p p e u r s d e l a F r e e S o f t w a r e F o u n d a -

    t i o n q u i d v e l o p p r e n t L

    A

    T

    E

    X , T

    E

    X , G h o s t S c r i p t , G h o s t V i e w , A u t o t r a c e , X F i g ,

    X V , G i m p , l a p o l i c e d e c a r a c t r e s P a l a t i n o , l e s d i r e n t s s t y l e s d ' e x t e n s i o n

    d e L

    A

    T

    E

    X , D V I P S , D V I P D F M , I m a g e M a g i c k , X D V I , X P D F , e t L

    A

    T

    E

    X 2 H T M L ,

    s a n s l e s q u e l s c e d o c u m e n t e t t t r s d i c i l e m e n t r a l i s a b l e . P o u r e n n o m m e r

    q u e l q u e s - u n s : J o h n B r a d l e y , D a v i d C a r l i s l e , E r i c C o o p e r , J o h n C r i s t y , P e t e r

    D e u t s c h , N i k o s D r a k o s , M a r k E i c h i n , B r i a n F o x , C a r s t e i n H e i n z , S p e n c e r K i m -

    b a l l , P a u l K i n g , D o n a l d K n u t h , P e t e r M a t t i s , F r a n k M i t t e l b a c h , R o s s M o o r e ,

    D e r e k B . N o o n b u r g , J o h a n n e s P l a s s , S e b a s t i a n R a h t z , C h e t R a m e y , T o m a s R o -

    k i c k i , B o b S c h e i e r , R a i n e r S h o e p f , B r i a n S m i t h , S u p o j S u t a n t h a v i b u l , H e r b

    S w a n , T i m T h e i s e n , P a u l V o j t a , M a r t i n W e b e r , M a r c k W i c k s , M a s a t a k e Y a -

    m a t o , K e n Y a p , H e r m a n Z a p f .

    M e r c i C h r i s t o p h e r R . H e r t e l p o u r a v o i r c o n t r i b u l ' i n t r o d u c t i o n d e S a m b a .

    M e s r e m e r c i e m e n t s l e s p l u s v i f s a u p r o j e t G N U d e l a F r e e S o f t w a r e F o u n -

    d a t i o n , a u x d v e l o p p e u r s i n n o m b r a b l e s d e l a F r e e S o f t w a r e , e t a u x n o m b r e u x

    l e c t e u r s q u i o n t d o n n u n r e t o u r p r c i e u x s u r l e s i t e w e b : h t t p : / / w w w . i c o n . c o . -

    z a / ~ p s h e e r / b o o k .

    P a u l S h e e r

  • 8/14/2019 Linux Base d'Administration

    8/640

    7

    R e m e r c i e m e n t s d e l a t r a d u c t i o n f r a n a i s e

    L e t r a d u c t e u r s e j o i n t l ' a u t e u r p o u r l ' i m m e n s e g r a t i t u d e q u ' i l a d r e s s e l a

    c o m m u n a u t d u L i b r e . I l a d j o i n t s e s p r o f o n d s r e m e r c i e m e n t s l ' q u i p e d e L

    Y

    X

    e t d e L

    A

    T

    E

    X . I l e x p r i m e s a p l u s p r o f o n d e g r a t i t u d e A n d r e w S z e r i ( U n i v e r s i t

    d e B e r k e l e y , C A , U S A ) e t J e a n - M a r c L v q u e ( U n i v e r s i t d e S a v o i e , F r a n c e )

    p o u r l ' a v o i r i n t r o d u i t d a n s l e m o n d e d e G N U / L i n u x , S t p h a n e W i r t e l ( a n -

    c i e n L i n u x - M o n s ) p o u r s e s n o m b r e u x c o n s e i l s , a i n s i q u ' a u x m e m b r e s d u f o r u m

    U n i x t e c h . b e ( h t t p : / / w w w . u n i x t e c h . b e ) p o u r l e u r a i d e e t l e s e x c e l l e n t e s d i s c u s -

    s i o n s .

    J e t i e n s a u s s i e x p r i m e r m a s i n c r e r e c o n n a i s s a n c e a u x r e l e c t e u r s : E s t e b a n

    D u g u e p e r o u x e t , e n p a r t i c u l i e r , E r i c G e r b i e r .

    P a r a i l l e u r s , r e m e r c i e r a - t - o n j a m a i s a s s e z L i n u s T o r v a l d s , R i c h a r d S t a l l m a n ,

    l e u r s c o l l a b o r a t e u r s e t t o u s c e u x q u i c o n t r i b u e n t a u d v e l o p p e m e n t d e s l o g i c i e l s

    l i b r e s e t d e G N U / L i n u x , e n p a r t i c u l i e r ?

    T h i e r r y L e p o i n t

  • 8/14/2019 Linux Base d'Administration

    9/640

    T a b l e d e s m a t i r e s

    1 G N U L i n u x e t l e s l o g i c i e l s l i b r e s * . 3 1

    1 . 1 H i s t o r i q u e : U n i x , M i n i x e t L i n u x . . . . . . . . . . . . . . . . . 3 1

    1 . 2 L e s l o g i c i e l s l i b r e s e t l a l i c e n c e p u b l i q u e g n r a l e G P L . . . . . . . 3 4

    2 I n t r o d u c t i o n 3 5

    2 . 1 Q u e l l e e s t l a m a t i r e t r a i t e d a n s c e l i v r e ? . . . . . . . . . . . . . 3 5

    2 . 2 C o m m e n t u t i l i s e r c e c o u r s ? . . . . . . . . . . . . . . . . . . . . . 3 5

    2 . 3 Q u e f a u t - i l p o u r d b u t e r ? . . . . . . . . . . . . . . . . . . . . . . 3 5

    2 . 4 U n l i v r e , u n c o u r s . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 6

    2 . 5 L a d o c u m e n t a t i o n q u e j e n e c o m p r e n d s p a s . . . . . . . . . . . . . 3 6

    2 . 6 L ' I n s t i t u t d e s P r o f e s s i o n n e l s d e L i n u x ( L P I ) e t l e s c o n d i t i o n s

    p o u r d e v e n i r u n i n g n i e u r c e r t i R e d - H a t ( R H C E ) . . . . . . . 3 6

    2 . 7 P a s R e d H a t m a i s d e t y p e R e d H a t . . . . . . . . . . . . . . . . 3 7

    2 . 8 M i s e s - - j o u r e t e r r a t a . . . . . . . . . . . . . . . . . . . . . . . . . 3 7

    3 L e s b a s e s 3 8

    3 . 1 B a s e s b i n a i r e , o c t a l e , d c i m a l e e t h e x a d c i m a l e . . . . . . . . . . . 3 8

    3 . 2 F i c h i e r s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 0

    3 . 3 C o m m a n d e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2

    3 . 4 C o n n e x i o n e t c h a n g e m e n t d e m o t d e p a s s e . . . . . . . . . . . . . 4 2

    3 . 5 A c h e r d e s c h i e r s . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3

    3 . 6 T o u c h e s d ' d i t i o n d e l a l i g n e d e c o m m a n d e . . . . . . . . . . . . . 4 3

    3 . 7 T o u c h e s s p c i a l e s d e l a c o n s o l e . . . . . . . . . . . . . . . . . . . . 4 5

    3 . 8 C r a t i o n d e c h i e r s . . . . . . . . . . . . . . . . . . . . . . . . . . 4 5

    3 . 9 C a r a c t r e s p e r m i s p o u r l e s n o m s d e c h i e r s . . . . . . . . . . . . . 4 5

    3 . 1 0 R p e r t o i r e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 5

    4 M a t r i e l P C . 4 7

    4 . 1 C a r t e - m r e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 7

    4 . 2 I D E m a t r e e t e s c l a v e . . . . . . . . . . . . . . . . . . . . . . . . . 5 1

    4 . 3 C M O S . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2

    4 . 4 P r i p h r i q u e s s r i e . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2

    4 . 5 M o d e m s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 6

    5 L e s c o m m a n d e s d e b a s e . 5 8

    5 . 1 L a c o m m a n d e l s , c h i e r s c a c h s , o p t i o n s d e s c o m m a n d e s . . . . . 5 8

    5 . 2 M e s s a g e s d ' e r r e u r s . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 9

    8

  • 8/14/2019 Linux Base d'Administration

    10/640

    T A B L E D E S M A T I R E S 9

    5 . 3 C a r a c t r e s d e r e m p l a c e m e n t , n o m s , e x t e n s i o n s e t m o t i f s d ' e n g l o -

    b e m e n t s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2

    5 . 3 . 1 N o m s d e c h i e r s . . . . . . . . . . . . . . . . . . . . . . . . 6 2

    5 . 3 . 2 M o t i f s d ' e n g l o b e m e n t . . . . . . . . . . . . . . . . . . . . . 6 5

    5 . 4 S y n t a x e l a c o m m a n d e c o p y . . . . . . . . . . . . . . . . . . . . . 6 5

    5 . 5 M a n i p u l a t i o n d e r p e r t o i r e s . . . . . . . . . . . . . . . . . . . . . . 6 6

    5 . 6 C h e m i n s a b s o l u s e t r e l a t i f s . . . . . . . . . . . . . . . . . . . . . . 6 7

    5 . 7 L e s p a g e s d u m a n u e l . . . . . . . . . . . . . . . . . . . . . . . . . . 6 8

    5 . 8 L e s p a g e s d ' i n f o . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 9

    5 . 9 C o m m a n d e s f o n d a m e n t a l e s . . . . . . . . . . . . . . . . . . . . . . 6 9

    5 . 1 0 L e g e s t i o n n a i r e d e c h i e r s m c

    . . . . . . . . . . . . . . . . . . . . . 7 3

    5 . 1 1 C o m m a n d e s m u l t i m e d i a . . . . . . . . . . . . . . . . . . . . . . . . 7 3

    5 . 1 2 C o m m a n d e s d e t e r m i n a i s o n . . . . . . . . . . . . . . . . . . . . . . 7 4

    5 . 1 3 F i c h i e r s c o m p r e s s s . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4

    5 . 1 4 R e c h e r c h e d e c h i e r s . . . . . . . . . . . . . . . . . . . . . . . . . . 7 5

    5 . 1 5 R e c h e r c h e d a n s

    l e s c h i e r s . . . . . . . . . . . . . . . . . . . . . . 7 6

    5 . 1 6 C o p i e v e r s d e s d i s q u e t t e s f o r m a t e s M S - D O S e t W i n d o w s . . . . . 7 7

    5 . 1 7 A r c h i v a g e s e t s a u v e g a r d e s . . . . . . . . . . . . . . . . . . . . . . . 7 7

    5 . 1 8 L e P A T H

    o l e s c o m m a n d e s s o n t r e c h e r c h e s . . . . . . . . . . . . . 7 9

    5 . 1 9 L ' o p t i o n - . - . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 0

    6 L e s e x p r e s s i o n s r a t i o n n e l l e s . 8 1

    6 . 1 V u e d ' e n s e m b l e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1

    6 . 2 L a c o m m a n d e f g r e p . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3

    6 . 3 N o t a t i o n \ { \ } d e s e x p r e s s i o n s r a t i o n n e l l e s . . . . . . . . . . . . . 8 3

    6 . 4 E x p r e s s i o n s r a t i o n n e l l e s t e n d u e s + ? \ < \ > ( ) | n o t a t i o n

    a v e c e g r e p . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3

    6 . 5 S o u s - e x p r e s s i o n s d ' e x p r e s s i o n s r a t i o n n e l l e s . . . . . . . . . . . . . 8 4

    7 M o d i c a t i o n s d e c h i e r s t e x t e . 8 5

    7 . 1 v i . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 5

    7 . 2 M i s e e n v i d e n c e s y n t a x i q u e . . . . . . . . . . . . . . . . . . . . . 8 9

    7 . 3 E d i t e u r s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 9

    7 . 3 . 1 C o o l e d i t . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 0

    7 . 3 . 2 v i e t v i m . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 0

    7 . 3 . 3 E m a c s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 0

    7 . 3 . 4 A u t r e s d i t e u r s . . . . . . . . . . . . . . . . . . . . . . . . . 9 1

    8 L e s s c r i p t s d u s h e l l . 9 2

    8 . 1 I n t r o d u c t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2

    8 . 2 B o u c l e s : i n s t r u c t i o n s w h i l e e t u n t i l . . . . . . . . . . . . . . . . 9 3

    8 . 3 B o u c l e s : l ' i n s t r u c t i o n f o r . . . . . . . . . . . . . . . . . . . . . . . 9 4

    8 . 4 A r r t d e b o u c l e s e t r e l a n c e . . . . . . . . . . . . . . . . . . . . . . 9 6

    8 . 5 B o u c l e s s u r d e s m o t i f s d ' e n g l o b e m e n t . . . . . . . . . . . . . . . . 9 6

    8 . 6 L ' i n s t r u c t i o n c a s e . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 7

    8 . 7 U s a g e d e s f o n c t i o n s : l e m o t - c l f u n c t i o n . . . . . . . . . . . . . . 9 8

    8 . 8 U t i l i s e r p r o p r e m e n t l e s a r g u m e n t s d e l a l i g n e d e c o m m a n d e s : l e

    m o t - c l s h i f t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 9

    8 . 9 L e s a r g u m e n t s e n l i g n e d e c o m m a n d e : $ @ e t $ 0 . . . . . . . . . . 1 0 0

    8 . 1 0 N o t a t i o n a v e c g u i l l e m e t s ' s i m p l e s d r o i t s ' . . . . . . . . . . . . . . 1 0 1

  • 8/14/2019 Linux Base d'Administration

    11/640

    T A B L E D E S M A T I R E S 1 0

    8 . 1 1 N o t a t i o n a v e c g u i l l e m e n t s d o u b l e s . . . . . . . . . . . . . . . . . 1 0 1

    8 . 1 2 S u b s t i t u t i o n a v e c g u i l l e m e t s i n v e r s s . . . . . . . . . . . . . . . 1 0 1

    9 F l u x e t s e d c o m m e d i t e u r d e u x . 1 0 3

    9 . 1 I n t r o d u c t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 0 3

    9 . 2 T u t o r i e l . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 0 3

    9 . 3 T u b e s e t o p r a t e u r | . . . . . . . . . . . . . . . . . . . . . . . . 1 0 4

    9 . 4 E x e m p l e d ' u n t u b e c o m p l e x e . . . . . . . . . . . . . . . . . . . . . 1 0 5

    9 . 5 R e d i r e c t i o n s a v e c > & . . . . . . . . . . . . . . . . . . . . . . . . . . 1 0 5

    9 . 6 U t i l i s a t i o n d e s e d p o u r d i t e r l e s u x . . . . . . . . . . . . . . . . 1 0 6

    9 . 7 S o u s - e x p r e s s i o n s d ' e x p r e s s i o n s r a t i o n n e l l e s . . . . . . . . . . . . . 1 0 7

    9 . 8 I n s e r t i o n e t e a c e m e n t d e l i g n e s . . . . . . . . . . . . . . . . . . . 1 0 9

    1 0 P r o c e s s u s e t v a r i a b l e s d ' e n v i r o n n e m e n t . 1 1 1

    1 0 . 1 I n t r o d u c t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 1

    1 0 . 2 p s l i s t e d e p r o c e s s u s e n c o u r s . . . . . . . . . . . . . . . . . . . . 1 1 2

    1 0 . 3 C o n t r l e d e s t c h e s . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 2

    1 0 . 4 C r a t i o n d e p r o c e s s u s e n a r r i r e - p l a n . . . . . . . . . . . . . . . . 1 1 2

    1 0 . 5 T u e r u n p r o c e s s u s a v e c k i l l . E n v o y e r d e s s i g n a u x . . . . . . . . . 1 1 4

    1 0 . 6 L i s t e d e s s i g n a u x c o u r a n t s . . . . . . . . . . . . . . . . . . . . . . 1 1 5

    1 0 . 7 N i c e e t r e n i c e : p r o g r a m m e r l e s p r i o r i t s . . . . . . . . . . . . . . 1 1 6

    1 0 . 8 C o n s o m m a t i o n m m o i r e e t C P U : t o p . . . . . . . . . . . . . . . . 1 1 7

    1 0 . 9 E n v i r o n n e m e n t d e s p r o c e s s u s . . . . . . . . . . . . . . . . . . . . . 1 2 0

    1 1 C o u r r i e l 1 2 5

    1 1 . 1 R e c e v o i r e t e n v o y e r d u c o u r r i e l . . . . . . . . . . . . . . . . . . . . 1 2 7

    1 1 . 2 P r o t o c o l e S M T P - E n v o y e r l e c o u r r i e l a u p o r t 2 5 . . . . . . . . . . 1 2 7

    1 2 C o m p t e s d ' u t i l i s a t e u r s e t d r o i t s . 1 2 9

    1 2 . 1 D r o i t s a s s o c i s a u x c h i e r s . . . . . . . . . . . . . . . . . . . . . . 1 2 9

    1 2 . 2 L e c h i e r d e s m o t s d e p a s s e : / e t c / p a s s w d . . . . . . . . . . . . . 1 3 0

    1 2 . 3 L e c h i e r / e t c / s h a d o w . . . . . . . . . . . . . . . . . . . . . . . . 1 3 1

    1 2 . 4 L a c o m m a n d e g r o u p s e t / e t c / g r o u p . . . . . . . . . . . . . . . . 1 3 2

    1 2 . 5 C r a t i o n m a n u e l l e d ' u n c o m p t e d ' u t i l i s a t e u r . . . . . . . . . . . . 1 3 3

    1 2 . 6 M t h o d e a u t o m a t i q u e : u s e r a d d e t g r o u p a d d . . . . . . . . . . . . 1 3 3

    1 2 . 7 C o n n e x i o n u t i l i s a t e u r . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 4

    1 2 . 7 . 1 L a c o m m a n d e l o g i n . . . . . . . . . . . . . . . . . . . . . 1 3 4

    1 2 . 7 . 2 s e t u s e r , l a c o m m a n d e s u . . . . . . . . . . . . . . . . . . . 1 3 4

    1 2 . 7 . 3 L e s c o m m a n d e s w h o , w , u s e r s p o u r d t e r m i n e r q u i e s t

    c o n n e c t . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 5

    1 2 . 7 . 4 C o m m a n d e i d

    e t l ' U I D e e c t i f

    . . . . . . . . . . . . . . . . 1 3 6

    1 2 . 7 . 5 L i m i t e s a t t r i b u e s a u x u t i l i s a t e u r s . . . . . . . . . . . . . . 1 3 6

    1 3 U t i l i s a t i o n d e s s e r v i c e s I n t e r n e t . 1 3 7

    1 3 . 1 s s h , p a s t e l n e t n i r l o g i n . . . . . . . . . . . . . . . . . . . . . . 1 3 7

    1 3 . 2 r c p

    e t s c p .

    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 8

    1 3 . 3 r s h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 8

    1 3 . 4 F T P . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 9

    1 3 . 5 f i n g e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 4 0

    1 3 . 6 E n v o y e r d e s c h i e r s v i a l e c o u r r i e l . . . . . . . . . . . . . . . . . . 1 4 0

  • 8/14/2019 Linux Base d'Administration

    12/640

  • 8/14/2019 Linux Base d'Administration

    13/640

    T A B L E D E S M A T I R E S 1 2

    1 8 S u r v o l d e l a s t r u c t u r e d e s r p e r t o i r e s U N I X . 1 6 0

    1 8 . 1 P a q u e t s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 6 0

    1 8 . 2 S u p e r s t r u c t u r e d e s r p e r t o i r e s U N I X

    . . . . . . . . . . . . . . . . 1 6 0

    1 8 . 3 L I N U X s u r u n e s e u l e d i s q u e t t e . . . . . . . . . . . . . . . . . . . 1 6 4

    1 9 L e s p r i p h r i q u e s d ' U N I X . 1 6 6

    1 9 . 1 F i c h i e r s d e p r i p h r i q u e s . . . . . . . . . . . . . . . . . . . . . . . 1 6 6

    1 9 . 2 F i c h i e r s b l o c s e t c a r a c t r e s . . . . . . . . . . . . . . . . . . . . . . 1 6 7

    1 9 . 3 N o m b r e s m i n e u r s e t m a j e u r s d e c h i e r s . . . . . . . . . . . . . . . 1 6 8

    1 9 . 4 N o m s u s u e l s d e s p r i p h r i q u e s . . . . . . . . . . . . . . . . . . . . 1 6 8

    1 9 . 5 d d , t a r e t a s t u c e s a v e c l e s c h i e r s b l o c s . . . . . . . . . . . . . . . 1 7 2

    1 9 . 5 . 1 C r a t i o n d ' u n e d i s q u e t t e d e d m a r r a g e p a r t i r d e s i m a g e s

    d e d m a r r a g e . . . . . . . . . . . . . . . . . . . . . . . . . . 1 7 2

    1 9 . 5 . 2 E a c e m e n t d e s d i s q u e s . . . . . . . . . . . . . . . . . . . . 1 7 2

    1 9 . 5 . 3 I d e n t i c a t i o n d e s d o n n e s s u r l e s d i s q u e s . . . . . . . . . . 1 7 3

    1 9 . 5 . 4 D u p l i q u e r u n d i s q u e . . . . . . . . . . . . . . . . . . . . . . 1 7 3

    1 9 . 5 . 5 S a u v e g a r d e s s u r d i s q u e t t e s . . . . . . . . . . . . . . . . . . 1 7 4

    1 9 . 5 . 6 S a u v e g a r d e s s u r b a n d e s . . . . . . . . . . . . . . . . . . . . 1 7 4

    1 9 . 5 . 7 C a c h e r l e r s u l t a t d ' u n p r o g r a m m e , c r e r d e s b l o c s d e z r o s . 1 7 4

    1 9 . 6 C r e r u n c h i e r / d e v / . . . a v e c m k n o d e t

    / d e v / M A K E D E V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 7 5

    1 9 . 7 d e v f s * . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 7 6

    1 9 . 7 . 1 F o n c t i o n n e m e n t g n r a l d e d e v f s . . . . . . . . . . . . . . 1 7 6

    1 9 . 7 . 2 A t t r i b u t i o n e t m o d i c a t i o n s d e s d r o i t s s u r l e s c h i e r s d e

    d e v f s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 7 9

    1 9 . 7 . 3 M o d i c a t i o n s d e s d r o i t s a v e c P A M . . . . . . . . . . . . . . 1 8 0

    1 9 . 8 u d e v * . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 8 2

    1 9 . 8 . 1 A v a n t a g e s d ' u d e v . . . . . . . . . . . . . . . . . . . . . . . 1 8 2

    1 9 . 8 . 2 I n s t a l l a t i o n d ' u d e v

    . . . . . . . . . . . . . . . . . . . . . . . 1 8 3

    1 9 . 8 . 3 F i c h i e r s p r i n c i p a u x . . . . . . . . . . . . . . . . . . . . . . 1 8 5

    1 9 . 8 . 4 M c a n i s m e d ' u d e v . . . . . . . . . . . . . . . . . . . . . . . 1 8 6

    1 9 . 8 . 4 . 1 D t e c t i o n e t a t t r i b u t i o n d e n o m . . . . . . . . . . 1 8 6

    1 9 . 8 . 4 . 2 D - B U S e t H A L . . . . . . . . . . . . . . . . . . . 1 8 7

    1 9 . 8 . 4 . 3 P r i p h r i q u e s m o n t a b l e s / e t c / f s t a b . . . . . . . 1 8 7

    1 9 . 8 . 5 I n s t a l l a t i o n d e s s e r v i c e s D - B U S e t H A L . . . . . . . . . . . 1 8 8

    1 9 . 8 . 6 R g l e s d ' u d e v . . . . . . . . . . . . . . . . . . . . . . . . . 1 8 8

    1 9 . 8 . 6 . 1 L e s b a s e s . . . . . . . . . . . . . . . . . . . . . . . 1 8 9

    1 9 . 8 . 6 . 2 U s a g e d e s o p r a t e u r s d a n s N A M E e t S Y M L I N K . 1 9 0

    1 9 . 8 . 6 . 3 U s a g e d e s m o t i f s d e t y p e s h e l l d a n s l e s c l e f s . . . 1 9 0

    1 9 . 8 . 6 . 4 I d e n t i e r l e s p r i p h r i q u e s . . . . . . . . . . . . . 1 9 1

    1 9 . 8 . 6 . 5 I d e n t i e r l e s p r i p h r i q u e s g r c e a u x c l e f s d e b a s e . 1 9 1

    1 9 . 8 . 6 . 6 I d e n t i e r l e s p r i p h r i q u e s g r c e a u x c h i e r s d e

    / s y s u d e v i n f o . . . . . . . . . . . . . . . . . . . 1 9 1

    1 9 . 8 . 6 . 7 E x e m p l e 1 : r g l e p o u r u n e i m p r i m a n t e U S B . . . 1 9 3

    1 9 . 8 . 6 . 8 E x e m p l e 2 : r g l e p o u r u n a p p a r e i l p h o t o n u m -

    r i q u e U S B . . . . . . . . . . . . . . . . . . . . . . 1 9 4

    1 9 . 8 . 6 . 9 S u p p l m e n t p o u r l e s p r i p h r i q u e s d e m a s s e U S B . 1 9 5

    1 9 . 8 . 6 . 1 0 E x e m p l e 3 : r g l e d e c o n v e n a n c e p o u r l e c t e u r C D . 1 9 5

    1 9 . 8 . 6 . 1 1 E x e m p l e 4 : r g l e d ' a t t r i b u t i o n d e n o m s d ' u n e

    i n t e r f a c e r s e a u . . . . . . . . . . . . . . . . . . . 1 9 6

  • 8/14/2019 Linux Base d'Administration

    14/640

    T A B L E D E S M A T I R E S 1 3

    1 9 . 8 . 6 . 1 2 R g l e s b a s e s s u r l e p a r a m t r e S Y M L I N K . . . . 1 9 6

    2 0 P a r t i t i o n s , s y s t m e s d e c h i e r s , f o r m a t a g e e t m o n t a g e . 1 9 7

    2 0 . 1 S t r u c t u r e p h y s i q u e d e s d i s q u e s . . . . . . . . . . . . . . . . . . . . 1 9 7

    2 0 . 1 . 1 C y l i n d r e s , t t e s e t s e c t e u r s . . . . . . . . . . . . . . . . . . 1 9 7

    2 0 . 1 . 2 A d r e s s a g e d e b l o c s d e g r a n d e t a i l l e ( m o d e L B A ) . . . . . 1 9 8

    2 0 . 1 . 3 P a r t i t i o n s t e n d u e s . . . . . . . . . . . . . . . . . . . . . . 1 9 8

    2 0 . 2 P a r t i t i o n n e m e n t d ' u n n o u v e a u d i s q u e . . . . . . . . . . . . . . . . 1 9 8

    2 0 . 3 F o r m a t e r l e s p r i p h r i q u e s . . . . . . . . . . . . . . . . . . . . . . 2 0 3

    2 0 . 3 . 1 S y s t m e s d e c h i e r s . . . . . . . . . . . . . . . . . . . . . . 2 0 3

    2 0 . 3 . 2 m k e 2 f s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 0 4

    2 0 . 3 . 3 F o r m a t a g e d e d i s q u e t t e s e t p r i p h r i q u e s a m o v i b l e s . . . . 2 0 5

    2 0 . 3 . 4 F o r m a t a g e d e d i s q u e t t e s M S - D O S . . . . . . . . . . . . . . 2 0 5

    2 0 . 3 . 5 m k s w a p , s w a p o n e t s w a p o f f . . . . . . . . . . . . . . . . . . 2 0 6

    2 0 . 4 O p r a t i o n s d e m o n t a g e . . . . . . . . . . . . . . . . . . . . . . . . 2 0 6

    2 0 . 4 . 1 M o n t a g e d e C D - R O M s . . . . . . . . . . . . . . . . . . . . 2 0 7

    2 0 . 4 . 2 M o n t a g e d e d i s q u e t t e s . . . . . . . . . . . . . . . . . . . . . 2 0 7

    2 0 . 4 . 3 M o n t a g e d e p a r t i t i o n s W i n d o w s e t N T . . . . . . . . . . . 2 0 8

    2 0 . 5 R p a r a t i o n d e s s y s t m e s d e c h i e r s : f d i s k . . . . . . . . . . . . 2 0 8

    2 0 . 6 E r r e u r s d u s y s t m e d e c h i e r s a u d m a r r a g e . . . . . . . . . . . . 2 0 9

    2 0 . 7 M o n t a g e a u t o m a t i q u e : f s t a b . . . . . . . . . . . . . . . . . . . . 2 0 9

    2 0 . 8 M o n t a g e m a n u e l d e / p r o c . . . . . . . . . . . . . . . . . . . . . . 2 1 1

    2 0 . 9 R A M e t p r i p h r i q u e l o o p b a c k . . . . . . . . . . . . . . . . . . . 2 1 1

    2 0 . 9 . 1 F o r m a t e r u n e d i s q u e t t e l ' i n t r i e u r d ' u n c h i e r . . . . . . 2 1 1

    2 0 . 9 . 2 F i c h i e r s C D - R O M . . . . . . . . . . . . . . . . . . . . . . . 2 1 2

    2 0 . 1 0 R e m o n t a g e d u m o d e l e c t u r e - s e u l e a u m o d e l e c t u r e - c r i t u r e . . 2 1 2

    2 0 . 1 1 s y n c s u r u n d i s q u e . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1 2

    2 1 S c r i p t s d e s h e l l a v a n c s . 2 1 3

    2 1 . 1 L i s t e d e c o m m a n d e s . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1 3

    2 1 . 2 P a r a m t r e s s p c i a u x : $ ? , $ * , . . . . . . . . . . . . . . . . . . . . . 2 1 4

    2 1 . 3 D v e l o p p e m e n t s . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1 5

    2 1 . 4 C o m m a n d e s i n t e r n e s . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1 7

    2 1 . 5 C a p t u r e d e s i g n a u x l a c o m m a n d e t r a p

    . . . . . . . . . . . . . . 2 1 8

    2 1 . 6 R g l a g e s i n t e r n e s ; l a c o m m a n d e s e t . . . . . . . . . . . . . . . . . 2 1 9

    2 1 . 7 S c r i p t s u t i l e s e t c o m m a n d e s . . . . . . . . . . . . . . . . . . . . . . 2 2 0

    2 1 . 7 . 1 c h r o o t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 0

    2 1 . 7 . 2 i f c o n d i t i o n n e l s . . . . . . . . . . . . . . . . . . . . . . . . 2 2 1

    2 1 . 7 . 3 p a t c h e t d i f f . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 1

    2 1 . 7 . 4 T e s t d e c o n n e c t i v i t i n t e r n e t . . . . . . . . . . . . . . . . . 2 2 2

    2 1 . 7 . 5 g r e p r c u r s i f ( r e c h e r c h e ) . . . . . . . . . . . . . . . . . . . 2 2 3

    2 1 . 7 . 6 R e c h e r c h e e t r e m p l a c e m e n t r c u r s i f s . . . . . . . . . . . . 2 2 3

    2 1 . 7 . 7 c u t e t a w k m a n i p u l a t i o n d e s c h a m p s d e c h i e r s - t e x t e s . 2 2 4

    2 1 . 7 . 8 C a l c u l s a v e c b c . . . . . . . . . . . . . . . . . . . . . . . . 2 2 5

    2 1 . 7 . 9 C o n v e r s i o n d e s f o r m a t s d e g r a p h i q u e s s u r d e n o m b r e u x

    c h i e r s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 5

    2 1 . 7 . 1 0 E c r a s e m e n t e n t o u t e s c u r i t d e c h i e r s . . . . . . . . . . 2 2 6

    2 1 . 7 . 1 1 P r o c e s s u s p e r s i s t a n t e n t c h e d e f o n d . . . . . . . . . . . . 2 2 6

    2 1 . 7 . 1 2 T r a i t e m e n t d e l a l i s t e d e p r o c e s s u s . . . . . . . . . . . . . 2 2 7

    2 1 . 8 I n i t i a l i s a t i o n d u s h e l l . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 9

  • 8/14/2019 Linux Base d'Administration

    15/640

    T A B L E D E S M A T I R E S 1 4

    2 1 . 8 . 1 P e r s o n n a l i s a t i o n d e P A T H e t L D _ L I B R A R Y _ P A T H . . . . . . . 2 3 0

    2 1 . 9 V e r r o u i l l a g e d e c h i e r s . . . . . . . . . . . . . . . . . . . . . . . . 2 3 0

    2 1 . 9 . 1 V e r r o u i l l e r u n c h i e r d e l a b o t e m e s s a g e s . . . . . . . . 2 3 1

    2 1 . 9 . 2 V e r r o u i l l e r s u r N F S . . . . . . . . . . . . . . . . . . . . . . 2 3 3

    2 1 . 9 . 3 V e r r o u i l l a g e d e c h i e r s o u d e r p e r t o i r e s . . . . . . . . . . 2 3 3

    2 1 . 9 . 4 V e r r o u i l l a g e l ' i n t r i e u r d e p r o g r a m m e s e n C . . . . . . . 2 3 4

    2 2 S e r v i c e s d u s y s t m e e t l p d .

    2 3 5

    2 2 . 1 U t i l i s a t i o n d e l p r . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 5

    2 2 . 2 C h a r g e m e n t e t i n s t a l l a t i o n . . . . . . . . . . . . . . . . . . . . . . 2 3 6

    2 2 . 3 L P R n g e t l p r - 0 . n n . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 7

    2 2 . 4 E l m e n t s d e p a q u e t . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 7

    2 2 . 4 . 1 F i c h i e r s d e d o c u m e n t a t i o n . . . . . . . . . . . . . . . . . . 2 3 7

    2 2 . 4 . 2 P a g e s d e w e b , l i s t e s d e d i u s i o n , p o i n t s d e c h a r g e m e n t . . 2 3 7

    2 2 . 4 . 3 P r o g r a m m e s u t i l i s a t e u r s . . . . . . . . . . . . . . . . . . . 2 3 8

    2 2 . 4 . 4 D m o n s e t p r o g r a m m e s a d m i n i s t r a t e u r s . . . . . . . . . . . 2 3 8

    2 2 . 4 . 5 F i c h i e r s d e c o n g u r a t i o n . . . . . . . . . . . . . . . . . . . 2 3 8

    2 2 . 4 . 6 F i c h i e r s d ' i n i t i a l i s a t i o n d e s e r v i c e s . . . . . . . . . . . . . . 2 3 8

    2 2 . 4 . 7 F i c h i e r s d e s p o u l e . . . . . . . . . . . . . . . . . . . . . . . 2 3 9

    2 2 . 4 . 8 F i c h i e r s d e j o u r n a l i s a t i o n ( l o g s ) . . . . . . . . . . . . . . . 2 4 0

    2 2 . 4 . 9 R o t a t i o n d e s j o u r n a u x . . . . . . . . . . . . . . . . . . . . . 2 4 0

    2 2 . 4 . 1 0 V a r i a b l e s d ' e n v i r o n n e m e n t . . . . . . . . . . . . . . . . . . 2 4 0

    2 2 . 5 L e c h i e r p r i n t c a p e n d t a i l . . . . . . . . . . . . . . . . . . . . . 2 4 1

    2 2 . 6 P o s t S c r i p t e t l t r e d ' i m p r e s s i o n . . . . . . . . . . . . . . . . . . 2 4 2

    2 2 . 7 C o n t r l e d ' a c c s . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 4

    2 2 . 8 P r o b l m e s d ' i m p r e s s i o n . . . . . . . . . . . . . . . . . . . . . . . . 2 4 4

    2 2 . 9 P r o g r a m m e s u t i l e s . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 6

    2 2 . 9 . 1 p r i n t t o o l . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 6

    2 2 . 9 . 2 a p s f i l t e r .

    . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 6

    2 2 . 9 . 3 m p a g e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 6

    2 2 . 9 . 4 p s u t i l s . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 6

    2 2 . 1 0 I m p r i m e r s u r a u t r e c h o s e q u ' u n e i m p r i m a n t e . . . . . . . . . . . . 2 4 6

    2 3 E l m e n t s d e p r o g r a m m a t i o n C . 2 4 8

    2 3 . 1 L e s b a s e s d u C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 9

    2 3 . 1 . 1 L e p l u s s i m p l e d e s p r o g r a m m e s . . . . . . . . . . . . . . . 2 4 9

    2 3 . 1 . 2 V a r i a b l e s e t t y p e s . . . . . . . . . . . . . . . . . . . . . . . 2 5 0

    2 3 . 1 . 3 F o n c t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 5 1

    2 3 . 1 . 4 L e s d c l a r a t i o n s f o r , w h i l e , i f e t s w i t c h . . . . . . . . . 2 5 2

    2 3 . 1 . 5 C h a n e s , v e c t e u r s e t a l l o c a t i o n m m o i r e . . . . . . . . . . 2 5 4

    2 3 . 1 . 6 O p r a t i o n s s u r l e s c h a n e s . . . . . . . . . . . . . . . . . . 2 5 7

    2 3 . 1 . 7 O p r a t i o n s s u r l e s c h i e r s . . . . . . . . . . . . . . . . . . 2 5 8

    2 3 . 1 . 8 L i r e d e s a r g u m e n t s e n l i g n e d e c o m m a n d e d a n s l e s p r o -

    g r a m m e s e n C . . . . . . . . . . . . . . . . . . . . . . . . . 2 6 0

    2 3 . 1 . 9 U n e x e m p l e p l u s c o m p l e x e . . . . . . . . . . . . . . . . . . 2 6 0

    2 3 . 1 . 1 0 # i n c l u d e e t l e s p r o t o t y p e s . . . . . . . . . . . . . . . . . . 2 6 2

    2 3 . 1 . 1 1 L e s c o m m e n t a i r e s . . . . . . . . . . . . . . . . . . . . . . . 2 6 3

    2 3 . 1 . 1 2 # d e f i n e e t # i d l e s m a c r o s e n C . . . . . . . . . . . . . . 2 6 4

    2 3 . 2 D b o g a g e a v e c g d b e t s t r a c e . . . . . . . . . . . . . . . . . . . . . 2 6 5

    2 3 . 2 . 1 g d b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6 5

  • 8/14/2019 Linux Base d'Administration

    16/640

    T A B L E D E S M A T I R E S 1 5

    2 3 . 2 . 2 E x a m i n e r l e s c h i e r s c o r e . . . . . . . . . . . . . . . . . . 2 6 9

    2 3 . 2 . 3 s t r a c e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6 9

    2 3 . 3 B i b l i o t h q u e s d u C . . . . . . . . . . . . . . . . . . . . . . . . . . 2 7 0

    2 3 . 4 L e s p r o j e t s e n C M a k e f i l e s . . . . . . . . . . . . . . . . . . . . 2 7 3

    2 3 . 4 . 1 C o m p l t e r n o t r e e x e m p l e p a r u n M a k e f i l e . . . . . . . . . 2 7 3

    2 3 . 4 . 2 C o m b i n e r l e t o u t . . . . . . . . . . . . . . . . . . . . . . . 2 7 4

    2 4 B i b l i o t h q u e s p a r t a g e s . 2 7 6

    2 4 . 1 C r a t i o n d e c h i e r s D L L . s o . . . . . . . . . . . . . . . . . . . . . . 2 7 6

    2 4 . 2 V e r s i o n s d e D L L . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 7 7

    2 4 . 3 I n s t a l l a t i o n d e c h i e r s D L L . s o . . . . . . . . . . . . . . . . . . . . 2 7 8

    2 5 P a q u e t s s o u r c e s e t b i n a i r e s . 2 8 0

    2 5 . 1 C o n s t r u c t i o n d e p a q u e t s s o u r c e s G N U . . . . . . . . . . . . . . . . 2 8 0

    2 5 . 2 P a q u e t s b i n a i r e s R e d H a t e t D e b i a n . . . . . . . . . . . . . . . . . 2 8 3

    2 5 . 2 . 1 V e r s i o n d e s p a q u e t s . . . . . . . . . . . . . . . . . . . . . . 2 8 3

    2 5 . 2 . 2 I n s t a l l a t i o n , m i s e - - j o u r , s u p p r e s s i o n . . . . . . . . . . . . 2 8 3

    2 5 . 2 . 3 D p e n d a n c e s . . . . . . . . . . . . . . . . . . . . . . . . . . 2 8 4

    2 5 . 2 . 4 E x a m e n d e p a q u e t s . . . . . . . . . . . . . . . . . . . . . . 2 8 5

    2 5 . 2 . 5 L i s t e e t e x a m e n d e c h i e r s . . . . . . . . . . . . . . . . . . 2 8 6

    2 5 . 2 . 6 V r i c a t i o n d e s p a q u e t s . . . . . . . . . . . . . . . . . . . . 2 8 6

    2 5 . 2 . 7 E x a m e n s s p c i a u x . . . . . . . . . . . . . . . . . . . . . . . 2 8 7

    2 5 . 2 . 8 d p k g / a p t e t r p m . . . . . . . . . . . . . . . . . . . . . . . . 2 8 8

    2 5 . 3 p a q u e t s s o u r c e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 8 8

    2 6 I n t r o d u c t i o n I P . 2 9 0

    2 6 . 1 C o m m u n i c a t i o n i n t e r n e t . . . . . . . . . . . . . . . . . . . . . . . 2 9 0

    2 6 . 2 A d r e s s e s I P s p c i a l e s . . . . . . . . . . . . . . . . . . . . . . . . . 2 9 2

    2 6 . 3 M a s q u e s d e r s e a u e t a d r e s s e s . . . . . . . . . . . . . . . . . . . . 2 9 2

    2 6 . 4 O r d i n a t e u r s s u r r s e a u L A N . . . . . . . . . . . . . . . . . . . . . 2 9 3

    2 6 . 5 C o n g u r a t i o n d ' i n t e r f a c e s . . . . . . . . . . . . . . . . . . . . . . 2 9 3

    2 6 . 6 C o n g u r a t i o n d u r o u t a g e . . . . . . . . . . . . . . . . . . . . . . . 2 9 4

    2 6 . 7 C o n g u r a t i o n d e s c r i p t s d e d m a r r a g e . . . . . . . . . . . . . . . 2 9 6

    2 6 . 7 . 1 S c r i p t s r s e a u d e R e d H a t . . . . . . . . . . . . . . . . . . . 2 9 6

    2 6 . 7 . 2 S c r i p t s r s e a u d e D e b i a n . . . . . . . . . . . . . . . . . . . 2 9 7

    2 6 . 8 R o u t a g e c o m p l e x e E x e m p l e s a u t s m u l t i p l e s . . . . . . . . . 2 9 9

    2 6 . 9 A l i a s i n g d ' i n t e r f a c e s - M u l t i p l e s I P s s u r u n e s e u l e c a r t e p h y s i q u e . 3 0 2

    2 6 . 1 0 U t i l i t a i r e s d e d i a g n o s t i c . . . . . . . . . . . . . . . . . . . . . . . 3 0 3

    2 6 . 1 0 . 1 p i n g . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 0 3

    2 6 . 1 0 . 2 t r a c e r o u t e . . . . . . . . . . . . . . . . . . . . . . . . . . 3 0 4

    2 6 . 1 0 . 3 t c p d u m p . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 0 5

    2 7 T C P e t U D P . 3 0 6

    2 7 . 1 L ' e n - t t e T C P . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 0 7

    2 7 . 2 U n e x e m p l e d e s e s s i o n T C P . . . . . . . . . . . . . . . . . . . . . . 3 0 8

    2 7 . 3 P r o t o c o l e d a t a g r a m m e u t i l i s a t e u r ( U D P ) . . . . . . . . . . . . . . 3 1 1

    2 7 . 4 L e c h i e r / e t c / s e r v i c e s . . . . . . . . . . . . . . . . . . . . . . . 3 1 2

    2 7 . 5 C r y p t a g e e t r e d i r e c t i o n T C P . . . . . . . . . . . . . . . . . . . . . 3 1 3

  • 8/14/2019 Linux Base d'Administration

    17/640

    T A B L E D E S M A T I R E S 1 6

    2 8 D N S e t r s o l u t i o n d e n o m s . 3 1 7

    2 8 . 1 D o m a i n e s d e h a u t - n i v e a u ( T L D s ) . . . . . . . . . . . . . . . . . . 3 1 7

    2 8 . 2 R s o l u t i o n d e n o m s D N S v e r s d e s a d r e s s e s I P . . . . . . . . . . . . 3 1 8

    2 8 . 2 . 1 L ' i n f r a s t r u c t u r e D N S d ' i n t e r n e t . . . . . . . . . . . . . . . 3 1 8

    2 8 . 2 . 2 L e p r o c e s s u s d e r s o l u t i o n d e n o m s . . . . . . . . . . . . . 3 1 9

    2 8 . 3 C o n g u r a t i o n d e v o t r e m a c h i n e l o c a l e . . . . . . . . . . . . . . . . 3 2 0

    2 8 . 4 R e q u t e s i n v e r s e s . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2 3

    2 8 . 5 A u t o r i t a i r e s u r u n d o m a i n e . . . . . . . . . . . . . . . . . . . . . . 3 2 3

    2 8 . 6 L e s c o m m a n d e s h o s t , p i n g e t w h o i s . . . . . . . . . . . . . . . . . 3 2 4

    2 8 . 7 L a c o m m a n d e n s l o o k u p . . . . . . . . . . . . . . . . . . . . . . . . 3 2 5

    2 8 . 7 . 1 L e s e n r e g i s t r e m e n t s N S

    , M X

    , P T R

    , A

    e t C N A M E

    . . . . . . . . . 3 2 5

    2 8 . 8 L a c o m m a n d e d i g . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2 7

    2 9 S y s t m e d e c h i e r s e n r s e a u N F S . 3 2 8

    2 9 . 1 L o g i c i e l s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2 8

    2 9 . 2 E x e m p l e d e c o n g u r a t i o n . . . . . . . . . . . . . . . . . . . . . . . 3 2 9

    2 9 . 3 D r o i t s d ' a c c s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 1

    2 9 . 4 S e c u r i t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 1

    2 9 . 5 N o y a u N F S . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 2

    3 0 L e s s e r v i c e s e x c u t s s o u s i n e t d . 3 3 3

    3 0 . 1 L e p a q u e t i n e t d . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 3

    3 0 . 2 I n v o q u e r d e s s e r v i c e s a v e c / e t c / i n e t d . c o n f . . . . . . . . . . . . 3 3 3

    3 0 . 2 . 1 I n v o q u e r u n s e r v i c e a u t o n o m e ( s t a n d a l o n e ) . . . . . . . . . 3 3 4

    3 0 . 2 . 2 I n v o q u e r u n s e r v i c e i n e t d . . . . . . . . . . . . . . . . . . 3 3 4

    3 0 . 2 . 3 I n v o q u e r u n s e r v i c e T C P w r a p p e r d ' i n e t d

    . . . . . . . . 3 3 4

    3 0 . 2 . 4 L e s c o n v e n t i o n s d e d i s t r i b u t i o n . . . . . . . . . . . . . . . . 3 3 5

    3 0 . 3 E x p l i c a t i o n s d e s e r v i c e s d i v e r s . . . . . . . . . . . . . . . . . . . . 3 3 6

    3 0 . 4 L ' a l t e r n a t i v e x i n e t d . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 7

    3 0 . 5 F i c h i e r s d e c o n g u r a t i o n . . . . . . . . . . . . . . . . . . . . . . . 3 3 7

    3 0 . 5 . 1 L i m i t a t i o n s d ' a c c s . . . . . . . . . . . . . . . . . . . . . . 3 3 8

    3 0 . 6 S c u r i t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 9

    3 1 e x i m e t s e n d m a i l . 3 4 0

    3 1 . 1 I n t r o d u c t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 4 0

    3 1 . 1 . 1 F o n c t i o n n e m e n t d u c o u r r i e l . . . . . . . . . . . . . . . . . . 3 4 0

    3 1 . 1 . 2 C o n g u r a t i o n d ' u n s e r v e u r P O P / I M A P . . . . . . . . . . . 3 4 2

    3 1 . 1 . 3 P o u r q u o i e x i m ? . . . . . . . . . . . . . . . . . . . . . . . 3 4 2

    3 1 . 2 C o n t e n u d u p a q u e t e x i m . . . . . . . . . . . . . . . . . . . . . . . 3 4 2

    3 1 . 3 F i c h i e r d e c o n g u r a t i o n d ' e x i m . . . . . . . . . . . . . . . . . . . . 3 4 3

    3 1 . 3 . 1 R g l a g e s g l o b a u x . . . . . . . . . . . . . . . . . . . . . . . 3 4 4

    3 1 . 3 . 2 T r a n s p o r t s . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 4 6

    3 1 . 3 . 3 R e d i r e c t e u r s . . . . . . . . . . . . . . . . . . . . . . . . . . 3 4 6

    3 1 . 3 . 4 R o u t e u r s . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 4 6

    3 1 . 4 U n v r i t a b l e s e r v e u r d e c o u r r i e l . . . . . . . . . . . . . . . . . . . 3 4 7

    3 1 . 5 C o m m a n d e s d e s h e l l p o u r l ' a d m i n i s t r a t i o n d ' e x i m . . . . . . . . . 3 4 9

    3 1 . 6 L a l e d ' a t t e n t e . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5 0

    3 1 . 7 / e t c / a l i a s e s p o u r l e s a d r e s s e s q u i v a l e n t e s . . . . . . . . . . . . 3 5 1

    3 1 . 8 L i s t e d e b l o c a g e e n t e m p s r e l c o m b a t t r e l e s p a m . . . . . . . 3 5 2

    3 1 . 8 . 1 Q u ' e s t - c e q u e l e s p a m ? . . . . . . . . . . . . . . . . . . . 3 5 2

  • 8/14/2019 Linux Base d'Administration

    18/640

    T A B L E D E S M A T I R E S 1 7

    3 1 . 8 . 2 P r v e n t i o n l m e n t a i r e c o n t r e l e s p a m . . . . . . . . . . . . 3 5 3

    3 1 . 8 . 3 L i s t e d e b l o c a g e e n t e m p s r e l . . . . . . . . . . . . . . . . 3 5 4

    3 1 . 8 . 4 A d m i n i s t r a t e u r d e c o u r r i e l e t r e s p o n s a b i l i t s d e s u t i l i s a -

    t e u r s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5 5

    3 1 . 9 S e n d m a i l . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5 5

    3 2 D m a r r a g e , l i l o e t i n i t r d . 3 5 7

    3 2 . 1 U t i l i s a t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5 7

    3 2 . 2 T h o r i e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5 8

    3 2 . 2 . 1 S q u e n c e d e d m a r r a g e d u n o y a u . . . . . . . . . . . . . . 3 5 8

    3 2 . 2 . 2 M a s t e r b o o t r e c o r d ( M B R ) . . . . . . . . . . . . . . . . . . 3 5 8

    3 2 . 2 . 3 P a r t i t i o n s d e d m a r r a g e . . . . . . . . . . . . . . . . . . . . 3 5 8

    3 2 . 2 . 4 L i m i t a t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5 9

    3 2 . 3 l i l o . c o n f e t l a c o m m a n d e l i l o . . . . . . . . . . . . . . . . . . . 3 5 9

    3 2 . 4 C r a t i o n d e d i s q u e t t e s d e d m a r r a g e . . . . . . . . . . . . . . . . . 3 6 1

    3 2 . 5 C o m p l i c a t i o n s a v e c S C S I e t i n i t r d

    . . . . . . . . . . . . . . . . . 3 6 1

    3 2 . 6 C r a t i o n d ' u n e i m a g e i n i t r d . . . . . . . . . . . . . . . . . . . . . 3 6 2

    3 2 . 7 M o d i e r l i l o . c o n f p o u r i n i t r d . . . . . . . . . . . . . . . . . . . 3 6 4

    3 2 . 8 U t i l i s a t i o n d e m k i n i t r d . . . . . . . . . . . . . . . . . . . . . . . . 3 6 4

    3 3 i n i t , ? g e t t y e t n i v e a u x d ' e x c u t i o n U N I X . 3 6 5

    3 3 . 1 i n i t , l e p r e m i e r p r o c e s s u s . . . . . . . . . . . . . . . . . . . . . . 3 6 5

    3 3 . 2 / e t c / i n i t t a b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 6 6

    3 3 . 2 . 1 C o n g u r a t i o n m i n i m a l e . . . . . . . . . . . . . . . . . . . . 3 6 6

    3 3 . 2 . 2 R e l e c t u r e d ' i n i t t a b . . . . . . . . . . . . . . . . . . . . . . 3 6 7

    3 3 . 2 . 3 L ' e r r e u r r e s p a w n i n g t o o f a s t . . . . . . . . . . . . . . . . 3 6 8

    3 3 . 3 N i v e a u x d ' e x c u t i o n u t i l e s . . . . . . . . . . . . . . . . . . . . . . 3 6 8

    3 3 . 4 I n f o r m a t i o n p r o p o s d e g e t t y . . . . . . . . . . . . . . . . . . . . 3 6 8

    3 3 . 5 S o m m a i r e d u d m a r r a g e . . . . . . . . . . . . . . . . . . . . . . . . 3 6 9

    3 3 . 6 T l c o p i e s e n t r a n t e s e t c o n n e x i o n s m o d e m s . . . . . . . . . . . . . 3 6 9

    3 3 . 6 . 1 m g e t t y e t t e r m i n a u x c a r a c t r e . . . . . . . . . . . . . . . 3 6 9

    3 3 . 6 . 2 F i c h i e r s d e j o u r n a l i s a t i o n d e m g e t t y . . . . . . . . . . . . . 3 7 0

    3 3 . 6 . 3 m g e t t y a v e c l e s m o d e m s . . . . . . . . . . . . . . . . . . . 3 7 0

    3 3 . 6 . 4 m g e t t y

    r e c e v a n t d e s t l c o p i e s . . . . . . . . . . . . . . . . 3 7 0

    3 4 E n v o i d e t l c o p i e s . 3 7 3

    3 4 . 1 D e l ' i m p r i m a n t e a u t l c o p i e u r . . . . . . . . . . . . . . . . . . . . 3 7 3

    3 4 . 2 B i n a i r e d ' i n t e r f a c e s e t g i d . . . . . . . . . . . . . . . . . . . . . . . 3 7 5

    3 5 u u c p e t u u x . 3 7 7

    3 5 . 1 O p r e r e n l i g n e d e c o m m a n d e s . . . . . . . . . . . . . . . . . . . . 3 7 7

    3 5 . 2 C o n g u r a t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 7 8

    3 5 . 3 C o m m u n i c a t i o n p a r m o d e m . . . . . . . . . . . . . . . . . . . . . . 3 8 1

    3 5 . 4 F i c h i e r s d e v e r r o u i l l a g e d e t t y / U U C P . . . . . . . . . . . . . . . . 3 8 2

    3 5 . 5 D b o g u e r u u c p . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 8 2

    3 5 . 6 U t i l i s a t i o n d ' u u x a v e c e x i m . . . . . . . . . . . . . . . . . . . . . . 3 8 3

    3 5 . 7 P r o g r a m m a t i o n d e s a p p e l s s o r t a n t s . . . . . . . . . . . . . . . . . 3 8 5

  • 8/14/2019 Linux Base d'Administration

    19/640

    T A B L E D E S M A T I R E S 1 8

    3 6 L e s y s t m e d e c h i e r s L I N U X . 3 8 7

    3 6 . 1 I n t r o d u c t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 8 9

    3 6 . 1 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 8 9

    3 6 . 1 . 2 C o n v e n t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . 3 8 9

    3 6 . 2 L e s y s t m e d e c h i e r s . . . . . . . . . . . . . . . . . . . . . . . . . 3 8 9

    3 6 . 3 L e s y s t m e d e c h i e r s r a c i n e . . . . . . . . . . . . . . . . . . . . . 3 9 1

    3 6 . 3 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 9 1

    3 6 . 3 . 2 C o n d i t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 9 2

    3 6 . 3 . 3 O p t i o n s s p c i q u e s . . . . . . . . . . . . . . . . . . . . . . 3 9 2

    3 6 . 3 . 4 / b i n : r p e r t o i r e d e s c o m m a n d e s b i n a i r e s e s s e n t i e l l e s

    l ' u t i l i s a t e u r ( u s a g e p o u r t o u s l e s u t i l i s a t e u r s ) . . . . . . . . 3 9 2

    3 6 . 3 . 4 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 3 9 2

    3 6 . 3 . 4 . 2 C o n d i t i o n s . . . . . . . . . . . . . . . . . . . . . . 3 9 3

    3 6 . 3 . 4 . 3 O p t i o n s s p c i q u e s . . . . . . . . . . . . . . . . . 3 9 5

    3 6 . 3 . 5 / b o o t : r p e r t o i r e d e s c h i e r s s t a t i q u e s d u c h a r g e u r d e

    d m a r r a g e . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 9 5

    3 6 . 3 . 5 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 3 9 5

    3 6 . 3 . 5 . 2 O p t i o n s s p c i q u e s . . . . . . . . . . . . . . . . . 3 9 6

    3 6 . 3 . 6 / d e v : r p e r t o i r e d e s c h i e r s d e p r i p h r i q u e s . . . . . . . 3 9 6

    3 6 . 3 . 6 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 3 9 6

    3 6 . 3 . 6 . 2 O p t i o n s s p c i q u e s . . . . . . . . . . . . . . . . . 3 9 6

    3 6 . 3 . 7 / e t c : r p e r t o i r e d e c o n g u r a t i o n d u s y s t m e u t i l i s . . . . 3 9 6

    3 6 . 3 . 7 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 3 9 6

    3 6 . 3 . 7 . 2 C o n d i t i o n s . . . . . . . . . . . . . . . . . . . . . . 3 9 6

    3 6 . 3 . 7 . 3 O p t i o n s s p c i q u e s . . . . . . . . . . . . . . . . . 3 9 6

    3 6 . 3 . 7 . 4 / e t c / o p t : c h i e r s d e c o n g u r a t i o n p o u r / o p t . . . 3 9 8

    3 6 . 3 . 7 . 5 / e t c / X 1 1 : c h i e r s d e c o n g u r a t i o n p o u r X - W i n d o w

    ( o p t i o n n e l ) . . . . . . . . . . . . . . . . . . . . . . 3 9 9

    3 6 . 3 . 7 . 6 / e t c / s g m l : c h i e r s d e c o n g u r a t i o n p o u r S G M L

    e t X M L ( o p t i o n n e l ) . . . . . . . . . . . . . . . . . 3 9 9

    3 6 . 3 . 8 / h o m e : r p e r t o i r e d e s u t i l i s a t e u r s ( o p t i o n n e l ) . . . . . . . 3 9 9

    3 6 . 3 . 8 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 3 9 9

    3 6 . 3 . 9 / l i b : b i b l i o t h q u e s p a r t a g e s e t m o d u l e s e s s e n t i e l s d u

    n o y a u . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 0 0

    3 6 . 3 . 9 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 0

    3 6 . 3 . 9 . 2 C o n d i t i o n s . . . . . . . . . . . . . . . . . . . . . . 4 0 0

    3 6 . 3 . 9 . 3 O p t i o n s s p c i q u e s . . . . . . . . . . . . . . . . . 4 0 0

    3 6 . 3 . 1 0 / l i b < q u a l > : b i b l i o t h q u e s p a r t a g e s e s s e n t i e l l e s a u f o r -

    m a t a l t e r n a t i f ( r p e r t o i r e o p t i o n n e l ) . . . . . . . . . . . . 4 0 1

    3 6 . 3 . 1 0 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 1

    3 6 . 3 . 1 0 . 2 C o n d i t i o n s . . . . . . . . . . . . . . . . . . . . . . 4 0 1

    3 6 . 3 . 1 1 / m n t : p o i n t s d e m o n t a g e d e s s y s t m e s d e c h i e r s m o n t s

    t e m p o r a i r e m e n t . . . . . . . . . . . . . . . . . . . . . . . . 4 0 1

    3 6 . 3 . 1 1 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 1

    3 6 . 3 . 1 2 / o p t : p a q u e t s l o g i c i e l s p o u r a p p l i c a t i o n s a d d i t i o n n e l l e s . . 4 0 1

    3 6 . 3 . 1 2 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 1

    3 6 . 3 . 1 2 . 2 C o n d i t i o n s . . . . . . . . . . . . . . . . . . . . . . 4 0 1

    3 6 . 3 . 1 3 / r o o t : r p e r t o i r e h o m e ( o p t i o n n e l ) d u s u p e r - u t i l i s a t e u r . 4 0 2

    3 6 . 3 . 1 3 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 2

    3 6 . 3 . 1 4 / s b i n : r p e r t o i r e d e s b i n a i r e s d u s y s t m e . . . . . . . . . 4 0 3

  • 8/14/2019 Linux Base d'Administration

    20/640

    T A B L E D E S M A T I R E S 1 9

    3 6 . 3 . 1 4 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 3

    3 6 . 3 . 1 4 . 2 C o n d i t i o n s . . . . . . . . . . . . . . . . . . . . . . 4 0 3

    3 6 . 3 . 1 4 . 3 O p t i o n s s p c i q u e s . . . . . . . . . . . . . . . . . 4 0 3

    3 6 . 3 . 1 5 / t m p : r p e r t o i r e d e c h i e r s t e m p o r a i r e s . . . . . . . . . . 4 0 4

    3 6 . 3 . 1 5 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 4

    3 6 . 4 L a h i r a r c h i e d e / u s r . . . . . . . . . . . . . . . . . . . . . . . . . 4 0 4

    3 6 . 4 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 0 4

    3 6 . 4 . 2 C o n d i t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 0 5

    3 6 . 4 . 3 O p t i o n s s p c i q u e s . . . . . . . . . . . . . . . . . . . . . . 4 0 5

    3 6 . 4 . 4 / u s r / X 1 1 R 6 : l e s y s t m e X - W i n d o w , v e r s i o n 1 1 , v a r i a n t e

    6 ( o p t i o n n e l ) . . . . . . . . . . . . . . . . . . . . . . . . . . 4 0 6

    3 6 . 4 . 4 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 6

    3 6 . 4 . 4 . 2 O p t i o n s s p c i a l e s . . . . . . . . . . . . . . . . . . 4 0 6

    3 6 . 4 . 5 / u s r / b i n : l a p l u p a r t d e s c o m m a n d e s d ' u t i l i s a t e u r s . . . . 4 0 6

    3 6 . 4 . 5 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 6

    3 6 . 4 . 5 . 2 O p t i o n s s p c i q u e s . . . . . . . . . . . . . . . . . 4 0 6

    3 6 . 4 . 6 / u s r / i n c l u d e : r p e r t o i r e s p o u r l e s c h i e r s i n c l u d e n o r -

    m a l i s s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 0 7

    3 6 . 4 . 6 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 7

    3 6 . 4 . 6 . 2 O p t i o n s s p c i a l e s . . . . . . . . . . . . . . . . . . 4 0 7

    3 6 . 4 . 7 / u s r / l i b : b i b l i o t h q u e s p o u r l a p r o g r a m m a t i o n e t l e s

    p a q u e t s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 0 7

    3 6 . 4 . 7 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 7

    3 6 . 4 . 7 . 2 O p t i o n s s p c i q u e s . . . . . . . . . . . . . . . . . 4 0 8

    3 6 . 4 . 8 / u s r / l i b < q u a l > : b i b l i o t h q u e s ( o p t i o n n e l l e s ) p o u r l e s

    f o r m a t s a l t e r n a t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 8

    3 6 . 4 . 8 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 8

    3 6 . 4 . 9 / u s r / l o c a l : h i r a r c h i e l o c a l e . . . . . . . . . . . . . . . . . 4 0 8

    3 6 . 4 . 9 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 8

    3 6 . 4 . 9 . 2 C o n d i t i o n s . . . . . . . . . . . . . . . . . . . . . . 4 0 9

    3 6 . 4 . 9 . 3 O p t i o n s s p c i a l e s . . . . . . . . . . . . . . . . . . 4 0 9

    3 6 . 4 . 1 0 / u s r / s b i n : b i n a i r e s n o n - e s s e n t i e l s d u s y s t m e s t a n d a r d . . 4 0 9

    3 6 . 4 . 1 0 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 9

    3 6 . 4 . 1 1 / u s r / s h a r e : d o n n e s i n d p e n d a n t e s d e l ' a r c h i t e c t u r e . . . 4 0 9

    3 6 . 4 . 1 1 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 0 9

    3 6 . 4 . 1 1 . 2 C o n d i t i o n s . . . . . . . . . . . . . . . . . . . . . . 4 1 0

    3 6 . 4 . 1 1 . 3 O p t i o n s s p c i a l e s . . . . . . . . . . . . . . . . . . 4 1 0

    3 6 . 4 . 1 1 . 4 / u s r / s h a r e / d i c t : d i c t i o n n a i r e ( o p t i o n n e l ) . . . . . 4 1 1

    3 6 . 4 . 1 1 . 5 / u s r / s h a r e / m a n : P a g e s d u m a n u e l . . . . . . . . 4 1 1

    3 6 . 4 . 1 1 . 6 / u s r / s h a r e / m i s c : d o n n e s d i v e r s e s i n d p e n d a n t e s

    d e l ' a r c h i t e c t u r e . . . . . . . . . . . . . . . . . . . 4 1 4

    3 6 . 4 . 1 1 . 7 / u s r / s h a r e / s g m l : d o n n e s S G M L e t X M L ( o p -

    t i o n n e l l e s ) . . . . . . . . . . . . . . . . . . . . . . 4 1 5

    3 6 . 4 . 1 2 / u s r / s r c : c o d e s s o u r c e s ( o p t i o n n e l ) . . . . . . . . . . . . . 4 1 6

    3 6 . 4 . 1 2 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 1 6

    3 6 . 5 L a h i r a r c h i e d e / v a r . . . . . . . . . . . . . . . . . . . . . . . . . 4 1 6

    3 6 . 5 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1 6

    3 6 . 5 . 2 C o n d i t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1 6

    3 6 . 5 . 3 O p t i o n s s p c i q u e s . . . . . . . . . . . . . . . . . . . . . . 4 1 7

  • 8/14/2019 Linux Base d'Administration

    21/640

    T A B L E D E S M A T I R E S 2 0

    3 6 . 5 . 4 / v a r / a c c o u n t : p r o c e s s u s d e c o m p t e s r e n d u s d e s j o u r n a u x

    ( o p t i o n n e l ) . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1 7

    3 6 . 5 . 4 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 1 7

    3 6 . 5 . 5 / v a r / c a c h e : d o n n e s d e c a c h e d e s a p p l i c a t i o n s . . . . . . 4 1 7

    3 6 . 5 . 5 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 1 7

    3 6 . 5 . 5 . 2 O p t i o n s s p c i a l e s . . . . . . . . . . . . . . . . . . 4 1 8

    3 6 . 5 . 5 . 3 / v a r / c a c h e / f o n t s : p o l i c e s p r o d u i t e s l o c a l e m e n t

    ( o p t i o n n e l ) . . . . . . . . . . . . . . . . . . . . . . 4 1 8

    3 6 . 5 . 5 . 4 / v a r / c a c h e / m a n : p a g e s d e m a n u e l f o r m a t e s l o -

    c a l e m e n t ( o p t i o n n e l ) . . . . . . . . . . . . . . . . 4 1 8

    3 6 . 5 . 6 / v a r / c r a s h : d p t s d e s p l a n t a g e s d u s y s t m e ( o p t i o n n e l ) . 4 1 9

    3 6 . 5 . 6 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 1 9

    3 6 . 5 . 7 / v a r / g a m e s : d o n n e s d e j e u x ( o p t i o n n e l ) . . . . . . . . . 4 1 9

    3 6 . 5 . 7 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 1 9

    3 6 . 5 . 8 / v a r / l i b : i n f o r m a t i o n d ' t a t . . . . . . . . . . . . . . . . . 4 2 0

    3 6 . 5 . 8 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 2 0

    3 6 . 5 . 8 . 2 C o n d i t i o n s . . . . . . . . . . . . . . . . . . . . . . 4 2 0

    3 6 . 5 . 8 . 3 O p t i o n s s p c i q u e s . . . . . . . . . . . . . . . . . 4 2 0

    3 6 . 5 . 8 . 4 / v a r / l i b / < e d i t o r > : t a t e t c h i e r s d e s a u v e -

    g a r d e d e l ' d i t e u r ( o p t i o n n e l ) . . . . . . . . . . . 4 2 1

    3 6 . 5 . 8 . 5 / v a r / l i b / h w c l o c k : r p e r t o i r e d ' t a t p o u r h w c l o c k

    ( o p t i o n n e l ) . . . . . . . . . . . . . . . . . . . . . . 4 2 1

    3 6 . 5 . 8 . 6 / v a r / l i b / m i s c : d o n n e s d i v e r s e s . . . . . . . . . . 4 2 1

    3 6 . 5 . 9 / v a r / l o c k : c h i e r s d e v e r r o u i l l a g e . . . . . . . . . . . . . . 4 2 2

    3 6 . 5 . 9 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 2 2

    3 6 . 5 . 1 0 / v a r / l o g : c h i e r s e t r p e r t o i r e s d e s j o u r n a u x . . . . . . . 4 2 2

    3 6 . 5 . 1 0 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 2 2

    3 6 . 5 . 1 0 . 2 O p t i o n s s p c i a l e s . . . . . . . . . . . . . . . . . . 4 2 2

    3 6 . 5 . 1 1 / v a r / m a i l : c h i e r s d e c o u r r i e l d ' u t i l i s a t e u r s . . . . . . . . 4 2 2

    3 6 . 5 . 1 1 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 2 2

    3 6 . 5 . 1 2 / v a r / o p t : d o n n e s p o u r / o p t . . . . . . . . . . . . . . . . 4 2 3

    3 6 . 5 . 1 2 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 2 3

    3 6 . 5 . 1 3 / v a r / r u n : d o n n e s d u t e m p s d e f o n c t i o n n e m e n t . . . . . . 4 2 3

    3 6 . 5 . 1 3 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 2 3

    3 6 . 5 . 1 3 . 2 C o n d i t i o n s . . . . . . . . . . . . . . . . . . . . . . 4 2 3

    3 6 . 5 . 1 4 / v a r / s p o o l : d o n n e s e n a t t e n t e . . . . . . . . . . . . . . . 4 2 4

    3 6 . 5 . 1 4 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 2 4

    3 6 . 5 . 1 4 . 2 O p t i o n s s p c i q u e s . . . . . . . . . . . . . . . . . 4 2 4

    3 6 . 5 . 1 4 . 3 / v a r / s p o o l / l p d : l e s d ' i m p r e s s i o n d u d m o n

    d ' i m p r i m a n t e s e n l i g n e ( o p t i o n n e l ) . . . . . . . . 4 2 4

    3 6 . 5 . 1 4 . 4 / v a r / s p o o l / r w h o : c h i e r s r h w o d ( o p t i o n n e l ) . . . 4 2 4

    3 6 . 5 . 1 5 / v a r / t m p : c h i e r s t e m p o r a i r e s p r s e r v s e n t r e l e s r e d -

    m a r r a g e s d u s y s t m e . . . . . . . . . . . . . . . . . . . . . 4 2 5

    3 6 . 5 . 1 5 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 2 5

    3 6 . 5 . 1 6 / v a r / y p : c h i e r s d e b a s e d e d o n n e s r e l a t i v e s a u S e r v i c e

    d ' I n f o r m a t i o n R s e a u ( N I S ) . . . . . . . . . . . . . . . . . 4 2 5

    3 6 . 5 . 1 6 . 1 O b j e c t i f s . . . . . . . . . . . . . . . . . . . . . . . 4 2 5

    3 6 . 6 A n n e x e s s p c i q u e s a u s y s t m e d ' e x p l o i t a t i o n . . . . . . . . . . . 4 2 5

    3 6 . 6 . 1 L i n u x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 5

    3 6 . 6 . 1 . 1 / : r p e r t o i r e r a c i n e . . . . . . . . . . . . . . . . . 4 2 5

  • 8/14/2019 Linux Base d'Administration

    22/640

    T A B L E D E S M A T I R E S 2 1

    3 6 . 6 . 1 . 2 / b i n : b i n a i r e s d e s c o m m a n d e s e s s e n t i e l l e s l ' u t i -

    l i s a t e u r ( p o u r t o u s l e s u t i l i s a t e u r s ) . . . . . . . . 4 2 5

    3 6 . 6 . 1 . 3 / d e v : p r i p h r i q u e s e t c h i e r s s p c i a u x . . . . . 4 2 6

    3 6 . 6 . 1 . 4 / e t c : c o n g u r a t i o n d u s y s t m e . . . . . . . . . . 4 2 6

    3 6 . 6 . 1 . 5 / p r o c : c h i e r v i r t u e l d ' i n f o r m a t i o n s u r l e s p r o -

    c e s s u s e t l e r s e a u . . . . . . . . . . . . . . . . . . 4 2 6

    3 6 . 6 . 1 . 6 / s b i n : b i n a i r e s e s s e n t i e l s a u s y s t m e . . . . . . . 4 2 6

    3 6 . 6 . 1 . 7 F i c h i e r s o p t i o n n e l s p o u r / s b i n : . . . . . . . . . . 4 2 6

    3 6 . 6 . 1 . 8 / u s r / i n c l u d e : c h i e r s d ' e n - t t e i n c l u s d a n s l e s

    p r o g r a m m e s e n C . . . . . . . . . . . . . . . . . . 4 2 7

    3 6 . 6 . 1 . 9 / u s r / s r c : c o d e s o u r c e . . . . . . . . . . . . . . . . 4 2 7

    3 6 . 6 . 1 . 1 0 / v a r / s p o o l / c r o n : c r o n e t t c h e s . . . . . . . . . . 4 2 8

    3 6 . 7 A n n e x e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 8

    3 6 . 7 . 1 L i s t e d e d i u s i o n d u S F N . . . . . . . . . . . . . . . . . . 4 2 8

    3 6 . 7 . 2 L ' o r i g i n e d u S F N . . . . . . . . . . . . . . . . . . . . . . . 4 2 8

    3 6 . 7 . 3 L i g n e s d e c o n d u i t e g n r a l e s . . . . . . . . . . . . . . . . . 4 2 8

    3 6 . 7 . 4 P e r s p e c t i v e s . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 9

    3 6 . 7 . 5 R e m e r c i e m e n t s . . . . . . . . . . . . . . . . . . . . . . . . 4 3 0

    3 6 . 7 . 6 C o n t r i b u t e u r s . . . . . . . . . . . . . . . . . . . . . . . . . 4 3 0

    3 7 h t t p d : s e r v e u r w e b A p a c h e . 4 3 1

    3 7 . 1 B a s e s p r o p o s d e s s e r v e u r s w e b . . . . . . . . . . . . . . . . . . . 4 3 1

    3 7 . 2 I n s t a l l a t i o n e t c o n g u r a t i o n d ' A p a c h e . . . . . . . . . . . . . . . . 4 3 5

    3 7 . 2 . 1 h t t p d . c o n f . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3 5

    3 7 . 2 . 2 D i r e c t i v e s c o m m u n e s . . . . . . . . . . . . . . . . . . . . . 4 3 6

    3 7 . 2 . 3 R p e r t o i r e s H T M L d ' u t i l i s a t e u r s . . . . . . . . . . . . . . 4 4 0

    3 7 . 2 . 4 C r a t i o n d e s y n o n y m e s . . . . . . . . . . . . . . . . . . . . 4 4 0

    3 7 . 2 . 5 I c n e s d e f a n t a i s i e . . . . . . . . . . . . . . . . . . . . . . 4 4 1

    3 7 . 2 . 6 E n c o d a g e e t n g o c i a t i o n s r e l a t i v e s l a l a n g u e . . . . . . . 4 4 1

    3 7 . 2 . 7 P o r t i o n s d e c o d e i n c l u s e s S S I . . . . . . . . . . . . . . . 4 4 2

    3 7 . 2 . 8 C G I - I n t e r f a c e p a s s e r e l l e c o m m u n e . . . . . . . . . . . . . 4 4 3

    3 7 . 2 . 9 F o r m u l a i r e s e t C G I . . . . . . . . . . . . . . . . . . . . . . 4 4 5

    3 7 . 2 . 1 0 s e t u i d d e s s c r i p t s C G I . . . . . . . . . . . . . . . . . . . . 4 4 8

    3 7 . 2 . 1 1 M o d u l e s A p a c h e e t P H P . . . . . . . . . . . . . . . . . . . 4 4 8

    3 7 . 2 . 1 2 H t e s v i r t u e l s . . . . . . . . . . . . . . . . . . . . . . . . . 4 5 0

    3 8 c r o n d e t a t d . 4 5 2

    3 8 . 1 L e c h i e r d e c o n g u r a t i o n / e t c / c r o n t a b . . . . . . . . . . . . . . 4 5 2

    3 8 . 2 L a c o m m a n d e a t . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 5 4

    3 8 . 3 L e s a u t r e s p a q u e t s c r o n . . . . . . . . . . . . . . . . . . . . . . . . 4 5 5

    3 9 S e r v e u r p o s t g r e s S Q L . 4 5 6

    3 9 . 1 L a n g a g e d e r e c h e r c h e s t r u c t u r ( S Q L ) . . . . . . . . . . . . . . . . 4 5 6

    3 9 . 2 p o s t g r e s

    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 5 6

    3 9 . 3 C o n t e n u d u p a q u e t p o s t g r e s . . . . . . . . . . . . . . . . . . . . . 4 5 7

    3 9 . 4 I n s t a l l a t i o n e t i n i t i a l i s a t i o n d e p o s t g r e s . . . . . . . . . . . . . . 4 5 8

    3 9 . 5 R e c h e r c h e s a v e c p s q l . . . . . . . . . . . . . . . . . . . . . . . . . 4 5 9

    3 9 . 6 I n t r o d u c t i o n S Q L . . . . . . . . . . . . . . . . . . . . . . . . . . 4 6 0

    3 9 . 6 . 1 C r a t i o n d e t a b l e s . . . . . . . . . . . . . . . . . . . . . . 4 6 1

    3 9 . 6 . 2 A c h e r u n e t a b l e . . . . . . . . . . . . . . . . . . . . . . . 4 6 1

  • 8/14/2019 Linux Base d'Administration

    23/640

    T A B L E D E S M A T I R E S 2 2

    3 9 . 6 . 3 A j o u t e r u n e c o l o n n e . . . . . . . . . . . . . . . . . . . . . 4 6 1

    3 9 . 6 . 4 S u p p r i m e r u n e c o l o n n e . . . . . . . . . . . . . . . . . . . . 4 6 1

    3 9 . 6 . 5 S u p p r i m e r u n e t a b l e . . . . . . . . . . . . . . . . . . . . . 4 6 3

    3 9 . 6 . 6 I n s e r t i o n d e l i g n e s , o b j e t r e l a t i o n n e l . . . . . . . . . . . . 4 6 3

    3 9 . 6 . 7 L o c a l i s a t i o n d e l i g n e s . . . . . . . . . . . . . . . . . . . . . 4 6 3

    3 9 . 6 . 8 A c h e r u n e c o l o n n e s l e c t i o n n e , e t l a c o l o n n e o i d . . . . 4 6 3

    3 9 . 6 . 9 C r e r d e s t a b l e s p a r t i r d ' a u t r e s t a b l e s . . . . . . . . . . 4 6 4

    3 9 . 6 . 1 0 S u p p r e s s i o n d e r a n g e s . . . . . . . . . . . . . . . . . . . . 4 6 4

    3 9 . 6 . 1 1 R e c h e r c h e s . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 6 4

    3 9 . 6 . 1 2 M i g r a t i o n p a r t i r d ' u n e a u t r e b a s e d e d o n n e s ; t r a n s f e r t

    e t r e s t a u r a t i o n d e t a b l e s s o u s f o r m e d e t e x t e . . . . . . . . 4 6 4

    3 9 . 6 . 1 3 T r a n s f e r t d ' u n e b a s e d e d o n n e s c o m p l t e . . . . . . . . . 4 6 5

    3 9 . 6 . 1 4 R e c h e r c h e s p l u s p o u s s e s . . . . . . . . . . . . . . . . . . . 4 6 5

    3 9 . 7 P r o j e t s r e l s d e b a s e d e d o n n e s . . . . . . . . . . . . . . . . . . . 4 6 6

    4 0 s m b d l e p r o j e t N T S a m b a . 4 6 7

    4 0 . 1 U n e i n t r o d u c t i o n p a r C h r i s t o p h e r R . H e r t e l . . . . . . . . . . . . 4 6 7

    4 0 . 1 . 1 H i s t o r i q u e v e r s i o n ( s u p p o s e ) n o n - e n n u y e u s e . . . . . . . 4 6 7

    4 0 . 1 . 2 P e n d a n t c e t e m p s , d e l ' a u t r e c t d e l a p l a n t e . . . . . . . . 4 6 8

    4 0 . 1 . 3 C e q u e f a i t S a m b a . . . . . . . . . . . . . . . . . . . . . . . 4 6 9

    4 0 . 1 . 4 A u t r e s c a s . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 7 0

    4 0 . 1 . 5 S y s t m e d e c h i e r s S M B p o u r L i n u x . . . . . . . . . . . . . . 4 7 0

    4 0 . 1 . 6 M i s e e n p l a c e e t g e s t i o n . . . . . . . . . . . . . . . . . . . . 4 7 1

    4 0 . 1 . 7 D e l a v e r s i o n 2 . 0 l a v e r s i o n 3 . 0 . . . . . . . . . . . . . . . 4 7 1

    4 0 . 1 . 7 . 1 S a m b a - 2 . 0 . . . . . . . . . . . . . . . . . . . . . . 4 7 1

    4 0 . 1 . 7 . 2 S a m b a - 2 . 2 . . . . . . . . . . . . . . . . . . . . . . . 4 7 2

    4 0 . 1 . 7 . 3 S a m b a - 3 . 0 . . . . . . . . . . . . . . . . . . . . . . . 4 7 4

    4 0 . 2 C o n g u r a t i o n d e S a m b a . . . . . . . . . . . . . . . . . . . . . . . . 4 7 4

    4 0 . 3 C o n g u r a t i o n d e W i n d o w s . . . . . . . . . . . . . . . . . . . . . . 4 7 6

    4 0 . 4 C o n g u r a t i o n d ' u n e i m p r i m a n t e W i n d o w s . . . . . . . . . . . . . . 4 7 7

    4 0 . 5 C o n g u r a t i o n d e s w a t . . . . . . . . . . . . . . . . . . . . . . . . . 4 7 7

    4 0 . 6 W i n d o w s N T a v e r t i s s e m e n t . . . . . . . . . . . . . . . . . . . . . 4 7 8

    4 1 n a m e d s e r v e u r d e n o m s d e d o m a i n e . 4 8 0

    4 1 . 1 D o c u m e n t a t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 8 1

    4 1 . 2 C o n g u r a t i o n d e b i n d . . . . . . . . . . . . . . . . . . . . . . . . . 4 8 1

    4 1 . 2 . 1 E x e m p l e d e c o n g u r a t i o n . . . . . . . . . . . . . . . . . . 4 8 1

    4 1 . 2 . 2 D m a r r a g e d u s e r v e u r d e n o m s . . . . . . . . . . . . . . . . 4 8 7

    4 1 . 2 . 3 C o n g u r a t i o n d t a i l l e . . . . . . . . . . . . . . . . . . . . 4 8 8

    4 1 . 2 . 3 . 1 n a m e d . c o n f . . . . . . . . . . . . . . . . . . . . 4 8 8

    4 1 . 2 . 3 . 2 E n r e g i s t r e m e n t S O A d e d o m a i n e s . . . . . . . . . 4 8 9

    4 1 . 2 . 3 . 3 N o m s d ' h t e s p o i n t s e t n o n - p o i n t s . . . . . . . 4 8 9

    4 1 . 2 . 3 . 4 N o m s d ' h t e s v i d e s . . . . . . . . . . . . . . . . . 4 8 9

    4 1 . 2 . 3 . 5 E n r e g i s t r e m e n t s N S , M X , P T R e t C N A M E . . . . . 4 9 0

    4 1 . 2 . 3 . 6 C o n g u r a t i o n d e s r e c h e r c h e s i n v e r s e s . . . . . . . 4 9 0

    4 1 . 3 P a r t a g e d e c h a r g e p a r r o t a t i o n . . . . . . . . . . . . . . . . . . . . 4 9 2

    4 1 . 4 C o n g u r e r b i n d

    p o u r d e s c o n n e x i o n s i n t e r m i t t e n t e s . . . . . . . . 4 9 2

    4 1 . 4 . 1 E x e m p l e d ' u n s e r v e u r d e n o m s a n t m m o i r e . . . . . . . . 4 9 3

    4 1 . 4 . 2 A d r e s s e s I P d y n a m i q u e s . . . . . . . . . . . . . . . . . . . 4 9 3

    4 1 . 5 S e r v e u r s D N S s e c o n d a i r e s o u e s c l a v e s . . . . . . . . . . . . . . . . 4 9 4

  • 8/14/2019 Linux Base d'Administration

    24/640

    T A B L E D E S M A T I R E S 2 3

    4 2 P r o t o c o l e P o i n t - - P o i n t - R s e a u d i a l u p . 4 9 6

    4 2 . 1 C o n n e x i o n d e b a s e . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 9 6

    4 2 . 1 . 1 S q u e n c e s i n t e r a c t i v e s d e v o t r e s c r i p t c h a t .

    . . . . . . . . 4 9 8

    4 2 . 1 . 2 C H A P e t P A P . . . . . . . . . . . . . . . . . . . . . . . . . 4 9 9

    4 2 . 1 . 3 E x c u t i o n d e p p p d . . . . . . . . . . . . . . . . . . . . . . . 4 9 9

    4 2 . 2 C o n n e x i o n l a d e m a n d e ; m a s c a r a d e

    d ' a d r e s s e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 0 1

    4 2 . 2 . 1 D ' i p f w a d m i p c h a i n s . . . . . . . . . . . . . . . . . . . . . 5 0 1

    4 2 . 2 . 1 . 1 M c a n i s m e d ' i p f w a d m . . . . . . . . . . . . . . . 5 0 1

    4 2 . 2 . 1 . 2 M c a n i s m e d ' i p c h a i n s . . . . . . . . . . . . . . . . 5 0 2

    4 2 . 2 . 2 N e t l t e r a v e c I p t a b l e s . . . . . . . . . . . . . . . . . . . . . 5 0 3

    4 2 . 2 . 2 . 1 O p t i o n d u n o y a u . . . . . . . . . . . . . . . . . . 5 0 3

    4 2 . 2 . 2 . 2 M c a n i s m e d ' i p t a b l e s . . . . . . . . . . . . . . . . 5 0 4

    4 2 . 2 . 2 . 3 T a b l e s . . . . . . . . . . . . . . . . . . . . . . . . 5 0 4

    4 2 . 2 . 2 . 4 S y n t a x e . . . . . . . . . . . . . . . . . . . . . . . 5 0 6

    4 2 . 2 . 2 . 5 A p p l i c a t i o n n o t r e p a r e - f e u . . . . . . . . . . . . 5 0 7

    4 2 . 3 R e v e n o n s p p p d . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1 1

    4 2 . 4 C o n n e x i o n s D N S . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1 1

    4 2 . 5 S e r v e u r d ' a p p e l s e n t r a n t s . . . . . . . . . . . . . . . . . . . . . . . 5 1 2

    4 2 . 6 U s a g e d e t c p d u m p . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1 3

    4 2 . 7 R N I S ( I S D N ) a u l i e u d e s m o d e m s . . . . . . . . . . . . . . . . . . 5 1 3

    4 3 S o u r c e s d u n o y a u L I N U X , m o d u l e s e t s u p p o r t m a t r i e l . 5 1 5

    4 3 . 1 C o m p o s i t i o n d u n o y a u . . . . . . . . . . . . . . . . . . . . . . . . 5 1 5

    4 3 . 2 N u m r o s d e v e r s i o n d u n o y a u . . . . . . . . . . . . . . . . . . . . 5 1 6

    4 3 . 3 M o d u l e s , i n s m o d e t c o m m a n d e s a s s o c i e s . . . . . . . . . . . . . 5 1 6

    4 3 . 4 I n t e r r u p t i o n s , p o r t s E / S e t c a n a u x D M A . . . . . . . . . . . . . . 5 1 8

    4 3 . 5 O p t i o n s d e s m o d u l e s e t c o n g u r a t i o n d e s p r i p h r i q u e s . . . . . . 5 1 9

    4 3 . 5 . 1 5 m a n i r e s d e p a s s e r d e s o p t i o n s u n m o d u l e . . . . . . . 5 1 9

    4 3 . 5 . 2 S o u r c e s d e d o c u m e n t a t i o n d e s m o d u l e s . . . . . . . . . . . 5 2 1

    4 3 . 6 C o n g u r a t i o n d e d i v e r s p r i p h r i q u e s . . . . . . . . . . . . . . . . 5 2 1

    4 3 . 6 . 1 S o n e t p n p d u m p . . . . . . . . . . . . . . . . . . . . . . . . 5 2 1

    4 3 . 6 . 2 P o r t p a r a l l l e . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 3

    4 3 . 6 . 3 N I C - E t h e r n e t , P C I e t l ' a n c i e n I S A . . . . . . . . . . . . 5 2 4

    4 3 . 6 . 4 I D d u v e n d e u r P C I e t I D d e p r i p h r i q u e . . . . . . . . . 5 2 5

    4 3 . 6 . 5 P C I e t s o n . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 6

    4 3 . 6 . 6 P i l o t e s d e c a r t e s s o n c o m m e r c i a u x . . . . . . . . . . . . .