Linux Tome1
date post
22-Oct-2015Category
Documents
view
206download
15
Embed Size (px)
Transcript of Linux Tome1
Administration de systmes UNIXFormation ARS 2011 2012
Partie 1Thierry Besanon
Formation Permanentede lUniversit Pierre et Marie Curie
cT.Besanon (v14.0.1025) Administration UNIX ARS 2011 2012 Partie 1 1 / 918
Table des matires No de transparent
Chapitre 1 UNIX : gnralits, historique . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 UNIX, un systme dexploitation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Panorama de quelques UNIX du march . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Les diffrentes familles dUNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 Cas de LINUX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 Distributions LINUX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 UNIX la formation permanente . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 Annexe 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228 Annexe 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 Annexe 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
10 Annexe 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Chapitre 2 Dfinition du rle de ladministrateur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
1 Les principales missions de ladministrateur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272 Quelques rgles de bon sens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303 Connaissances de base dun administrateur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324 Annexe 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335 Annexe 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Chapitre 3 Premiers contacts avec UNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351 Utilisation du clavier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372 Votre compte UNIX : login, mot de passe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473 Principales rgles sur les mots de passe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 484 Changer son mot de passe UNIX : passwd, yppasswd . . . . . . . . . . . . . . . . . . . . . 495 Connexion sur un terminal texte UNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506 Connexion sur un terminal graphique UNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527 Les langages de commandes UNIX : les shells . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578 Formes gnrales des commandes UNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 639 Annexe 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Chapitre 4 Sources de documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 661 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 672 Documentation UNIX en ligne : man . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 683 RFC, Internet drafts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 814 FAQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 825 HOWTO Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 836 TLDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 847 Guides de transition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 858 Newsgroups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 869 Moteur de recherche Google . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
10 Documentations constructeur online . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8911 Documentations gnralistes online . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9012 Librairies parisiennes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9113 Magazines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9214 Formats des documentations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Chapitre 5 Editeurs de texte UNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1001 Panorama dditeurs de fichier texte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1012 Editeur de fichier texte : vi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1023 Editeur de fichier texte : vim . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1234 Editeur de fichier texte : view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1245 Fins de ligne . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Chapitre 6 Commandes de manipulation de base dobjets UNIX . . . . . . . . . . . . . . . . . . . . . . . 1291 Notions dobjets sous UNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1302 Inode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1343 Notions de fichier sous UNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
4 Notions de rpertoire sous UNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1365 Notions de chemins absolus et relatifs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1436 Positionnement dans larborescence : cd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1507 Position dans larborescence : pwd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1518 Liste des objets : ls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1529 (Windows : : Liste des objets : dir.exe) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
10 Cration de rpertoires : mkdir . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16911 (Windows : : cration de rpertoires : md.exe, mkdir.exe) . . . . . . . . . . . . . . . . . . . 17212 Dplacer et renommer des objets : mv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17313 (Windows : : dplacer des objets : move.exe) . . . . . . . . . . . . . . . . . . . . . . . . . . . 18014 (Windows : : renommer des objets : ren.exe, rename.exe) . . . . . . . . . . . . . . . . . . 18115 Duplication dun objet : cp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18216 (Windows : : Duplication dun objet : copy.exe) . . . . . . . . . . . . . . . . . . . . . . . . . . 18717 (Windows : : Duplication dun objet : xcopy.exe) . . . . . . . . . . . . . . . . . . . . . . . . . 18818 Destruction dun objet : rm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18919 (Windows : : Destruction dun objet : del.exe) . . . . . . . . . . . . . . . . . . . . . . . . . . . 19520 Suppression de rpertoires : rmdir . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19621 (Windows : : suppression dun rpertoire : rd.exe) . . . . . . . . . . . . . . . . . . . . . . . . . 19722 Liens sur objets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19823 Lien hard sur objets : ln . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20324 Lien symbolique sur objets : ln -s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21025 (Windows : : raccourci, shortcut) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21726 (Windows : : lien symbolique : junction) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Chapitre 7 Gestion de versions de fichiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2251 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2262 SCCS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2273 RCS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2284 CVS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2295 SUBVERSION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2356 GIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
Chapitre 8 Commandes de manipulation de base dobjets UNIX (suite) . . . . . . . . . . . . . . . . . . . 2371 Affichage du contenu dun fichier texte : cat . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2382 (Windows : : Affichage du contenu dun fichier texte : type.exe) . . . . . . . . . . . . . . . . . . 2393 Affichage du contenu dun fichier texte : tac . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2404 Affichage du contenu dun fichier texte : nl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2415 Affichage du contenu dun fichier texte : more . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2426 (Windows : : Affichage du contenu dun fichier texte : more.exe) . . . . . . . . . . . . . . . . . . 2447 Affichage du contenu dun fichier texte : less . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2458 Comptage de lignes dans un fichier : wc . . . . . . . . . . . . . . . . . . . . . .