Linux tools
UNIX - jeudi 19 octobre 2006
Un peu d ’histoire
• • • • • • AT&T ’s Bell Labs 1969-1971 : Première version d ’UNIX Interactive Systems Corporation 1977 : Première distribution commerciale Berkeley Software Distribution 1977 : Système BSD (C-shell, TCP/IP) 1978 : Version 7 (Bourne-shell) Sun Microsystems 1983 : Station de travail UNIX, System V (NFS) « Standard »:
– System V – BSD
• •
Versions majeurs d ’Unix : BSD, HP-UX, SunOS et Solaris, IRIX, Digital Unix et Ultrix, AIX, NeXTSTEP et OpenStep, SCO Unix, Linux Émulateur : mingwin, cygwin
UNIX - jeudi 19 octobre 2006
Spécificité
• OS écrit en langage C :
– API – applications portables – système ouvert (très peu de code en assembleur), X/OPEN Portability Guide (XPG) « standard »
• Multi-tache • Multi-utilisateur • Interface utilisateur, X-Windows • InterProcess Communication
UNIX - jeudi 19 octobre 2006
Architecture
• Système :
– Noyau ou Kernel – Shell, interpéteur de commande (Korn Shell, Bourne Shell, C Shell) – Serveur graphique Xwindows (X11R6)
• Utilisateur :
– – – – Librairies compilateurs (C, C++…) Outils de développement programmes utilisateur
• Stockage :
– Espace physique, disques – Espace logique, Système de Fichiers
• Communications, TCP/IP, Ethernet, TokenRing
UNIX - jeudi 19 octobre 2006
Premiers pas
• Lancer cygwin :
– Dans une invite de commande DOS – dans un terminal X11 : rxvt, xterm… – Répertoire de travail au lancement de cygwin : /home/ – shell, interpréteur de commande par défaut bash Bourne-againshell – fichiers .kekechose (dot files) ; .profile, .bashrc, .Xdefaults…
UNIX - jeudi 19 octobre 2006
Environnement sous bash
• Environnement de travail Fichiers d ’initialisation • Initialisation : Variables d ’environnement
– /etc/bash.bashrc, /etc/profile – /home/…/.bash_profile, /home/…/.bashrc
• Afficher la valeur d ’une variable :
$ echo $NOM_DE_VARIABLE
• Quel shell ?
$ ps
PID