Professional Documents
Culture Documents
Vincent Granet
PolytechNice-Sophia
Cours LP RT 2009/2010
Rfrences
Livres
Linux pour les nuls, Dee-Ann Leblanc, First Interactive, 2006.
Linux en pratique, Arnold Robbins, Campus Press, 2007.
Linux programmation systme et rseau , cours exemples et
exercices corrigs en C-C++, Jolle Delacroix, Dunod, 2007
Support de cours
http://elec.polytech.unice.fr/~vg/supports-de-cours/Unix-Reseau.pdf
Sites web
http://www.linux.org/
http://www.linux-france.org/
www.polytech.unice.fr/~vg
Exemples :
Linux, Windows (XP,Vista)
Mac OS (Leopard)
mais aussi,
Unix, Multics, VMS, GCOS,
www.polytech.unice.fr/~vg
Principales fonctions :
www.polytech.unice.fr/~vg
X Windows GUI
www.polytech.unice.fr/~vg
Historique
www.polytech.unice.fr/~vg
Historique
1991 Linux
Linus Torvalds
Avec laide de programmeurs du monde entier
1er version poste sur Internet en 1991
Ca marche !
www.polytech.unice.fr/~vg
O lobtenir ?
http://www.debian.org/index.fr.html
http://www.ubuntu-fr.org/
www.polytech.unice.fr/~vg
Points forts
Puissance
Libre et Gratuit
Licence GPL
Utilisation dun SE
www.polytech.unice.fr/~vg
Lutilisateur
La
connexion au systme
Les processus
Les fichiers
La documentation
www.polytech.unice.fr/~vg
Lutilisateur
Systme mono-utilisateur
Systme multi-utilisateurs
Mcanismes
de protection
Identification mot de passe
www.polytech.unice.fr/~vg
Connexion au systme
Adsl
Ethernet
Wifi
.
www.polytech.unice.fr/~vg
Les processus
www.polytech.unice.fr/~vg
Les fichiers
Organisation hirarchique
Espace utilisateur
Mcanismes de protection
Donnes
www.polytech.unice.fr/~vg
Les fichiers
Entre/sortie standard
Mmoire, priphriques
Communication inter-processus
Connexion rseau
www.polytech.unice.fr/~vg
La documentation
Utilisation de Linux
www.polytech.unice.fr/~vg
par le rseau :
Login
Identification :
www.polytech.unice.fr/~vg
Utilisateurs
Utilisateurs et Groupes
www.polytech.unice.fr/~vg
Utilisateurs et Groupes
Structure de Linux
www.polytech.unice.fr/~vg
Fichiers et SGF
www.polytech.unice.fr/~vg
Types de fichiers
Organisation des donnes dans les fichiers
Rgles de nommage
Accs aux donnes dans les fichiers
Attributs associs aux fichiers
Commandes de manipulation de fichiers
Fonctions systmes sur les fichiers
www.polytech.unice.fr/~vg
Fichiers ordinaires
Fichiers de donnes
Rpertoires/Dossiers
Hirarchie/Arborescence unique
sous-rpertoires
Caractres et Blocs
Processus
www.polytech.unice.fr/~vg
Accs squentiel
lseek()
www.polytech.unice.fr/~vg
www.polytech.unice.fr/~vg
Chemin daccs
notation absolue
notation relative
/usr/include/sys /home/elec3/dupont
prog.c, adm/messages
./lib ../../elec3
Nom spciaux
/
.
..
~
La racine
Le rpertoire courant
Le rpertoire pre
Le rpertoire utilisateur (home)
www.polytech.unice.fr/~vg
Systmes de fichiers
www.polytech.unice.fr/~vg
Systme de fichiers
La commande mount
www.polytech.unice.fr/~vg
Permissions
-rwxrwxrwx
Permissions pour les autres
Permissions pour le groupe
Permissions pour le propritaire
indicateur (d=rpertoire; l=lien sym)
Permissions
-rwxrwxr-x
-rw-rw-r--rw-rw-r-drwxrwxr-x
Permissions
1
1
1
7
vg
vg
vg
vg
vg
vg
vg
vg
5224
221
1514
1024
Sep
Sep
Sep
Sep
12
12
12
8
Groupe
Propritaire
www.polytech.unice.fr/~vg
03:22
03:59
03:59
14:52
hello
hello.c
hello.s
essai
Fichiers standard
www.polytech.unice.fr/~vg
www.polytech.unice.fr/~vg
Processus
www.polytech.unice.fr/~vg
Hirarchie de processus
Foreground avant-plan
Background arrire-plan
fg, bg
www.polytech.unice.fr/~vg
processus
Dmons
www.polytech.unice.fr/~vg
Commandes
ps
kill
nice, renice
nohup, at
www.polytech.unice.fr/~vg
Shell
www.polytech.unice.fr/~vg
Shell
www.polytech.unice.fr/~vg
www.polytech.unice.fr/~vg
Parenthseurs de commandes
www.polytech.unice.fr/~vg
Script shell
#!/bin/bash
for i in $(ls) do
echo $i
[[ -f $i && ! -r $i ]] && chmod u+r $i
done
www.polytech.unice.fr/~vg
Variables denvironnement
VAR=/home/eleves/elec3
export TERM=xterm
export SYSTEMNAME=$(uname n)
Utilisation
cd $VAR
echo $SYSTEMNAME
www.polytech.unice.fr/~vg
HOME
TERM
Rpertoire courant
PATH
PWD
PRINTER
www.polytech.unice.fr/~vg
Interface graphique
www.polytech.unice.fr/~vg
Interface Graphique
[machine-hte]:num-de-serveur.[num-cran]
DISPLAY=beryl.unice.fr:0
www.polytech.unice.fr/~vg
www.polytech.unice.fr/~vg
www.polytech.unice.fr/~vg
Nautilus
www.polytech.unice.fr/~vg
rseau
www.polytech.unice.fr/~vg
Protocoles rseaux
Decnet
AppleTalk
X25
.
et bien-sr IP (Internet Protocol)
www.polytech.unice.fr/~vg
Commandes rseau
Commandes de base
telnet, ssh
Transferts de fichiers
Fichiers rpartis
NFS, samba
www.polytech.unice.fr/~vg
Courrier lectronique
Messagerie instanne
Web
BD : mysql
www.polytech.unice.fr/~vg