Upload
others
View
7
Download
0
Embed Size (px)
Citation preview
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Initiation à la commande Linux
Omar [email protected]
Club*Nix
16 septembre 2009
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
1 Linux c’est quoi ?
2 Utiliser un Linux
3 Commandes de bases
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Linux c’est quoi ?
UbuntuDebianArchGentoo
UNIX 1969 par Kenneth Thompson.GNU (Gnu is Not Unix) par Richard Stallman 1984.Linux 1991 par Linus Torvalds.
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Linux c’est quoi ?
UbuntuDebianArchGentoo
UNIX 1969 par Kenneth Thompson.GNU (Gnu is Not Unix) par Richard Stallman 1984.Linux 1991 par Linus Torvalds.
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Linux c’est quoi ?
UbuntuDebianArchGentoo
UNIX 1969 par Kenneth Thompson.GNU (Gnu is Not Unix) par Richard Stallman 1984.Linux 1991 par Linus Torvalds.
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Linux c’est quoi ?
UbuntuDebianArchGentoo
UNIX 1969 par Kenneth Thompson.GNU (Gnu is Not Unix) par Richard Stallman 1984.Linux 1991 par Linus Torvalds.
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Linux c’est quoi ?
UbuntuDebianArchGentoo
UNIX 1969 par Kenneth Thompson.GNU (Gnu is Not Unix) par Richard Stallman 1984.Linux 1991 par Linus Torvalds.
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Linux c’est quoi ?
UbuntuDebianArchGentoo
UNIX 1969 par Kenneth Thompson.GNU (Gnu is Not Unix) par Richard Stallman 1984.Linux 1991 par Linus Torvalds.
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Linux c’est quoi ?
UbuntuDebianArchGentoo
UNIX 1969 par Kenneth Thompson.GNU (Gnu is Not Unix) par Richard Stallman 1984.Linux 1991 par Linus Torvalds.
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Utiliser un Linux
Interfaces
GnomeKDEXfceratpoisonCompiz-fusion
VSLA CONSOLE
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Manual
man commeManualman man
Quitter : taper ’q’Rechercher : ’/’Suivant ’n’, précedent ’N’
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Manual
man commeManualman man
Quitter : taper ’q’Rechercher : ’/’Suivant ’n’, précedent ’N’
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Manual
man commeManualman man
Quitter : taper ’q’Rechercher : ’/’Suivant ’n’, précedent ’N’
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Change Directory
cd comme « ChangeDirectory »cd ..cd /home/traxcd /
Chemin absolueChemin relatif
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Change Directory
cd comme « ChangeDirectory »cd ..cd /home/traxcd /
Chemin absolueChemin relatif
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Change Directory
cd comme « ChangeDirectory »cd ..cd /home/traxcd /
Chemin absolueChemin relatif
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Change Directory
cd comme « ChangeDirectory »cd ..cd /home/traxcd /
Chemin absolueChemin relatif
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Change Directory
cd comme « ChangeDirectory »cd ..cd /home/traxcd /
Chemin absolueChemin relatif
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Change Directory
cd comme « ChangeDirectory »cd ..cd /home/traxcd /
Chemin absolueChemin relatif
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Créer un fichier
touch monFichier> monFichierecho “bonjour” > monFichiercat > monFichier
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Créer un fichier
touch monFichier> monFichierecho “bonjour” > monFichiercat > monFichier
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Créer un fichier
touch monFichier> monFichierecho “bonjour” > monFichiercat > monFichier
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Créer un fichier
touch monFichier> monFichierecho “bonjour” > monFichiercat > monFichier
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
LiSt
ls : LiStlsls -lah
ls -lahR /ls -lSrh
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
LiSt
ls : LiStlsls -lah
ls -lahR /ls -lSrh
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
LiSt
ls : LiStlsls -lah
ls -lahR /ls -lSrh
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
LiSt
ls : LiStlsls -lah
ls -lahR /ls -lSrh
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
LiSt
ls : LiStlsls -lah
ls -lahR /ls -lSrh
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
ReMove
rm fichierrm -r repertoire
rm -fr ./*rm - - monFichier
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
ReMove
rm fichierrm -r repertoire
rm -fr ./*rm - - monFichier
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
ReMove
rm fichierrm -r repertoire
rm -fr ./*rm - - monFichier
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
ReMove
rm fichierrm -r repertoire
rm -fr ./*rm - - monFichier
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
CoPy MoVe
commande source destination
cp fichier destinationcp -r dossier destination
mv fichier fichiermv fichier dossiermv dossier dossier
ATTENTION : pas d’avertissements
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
CoPy MoVe
commande source destination
cp fichier destinationcp -r dossier destination
mv fichier fichiermv fichier dossiermv dossier dossier
ATTENTION : pas d’avertissements
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
CoPy MoVe
commande source destination
cp fichier destinationcp -r dossier destination
mv fichier fichiermv fichier dossiermv dossier dossier
ATTENTION : pas d’avertissements
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
CoPy MoVe
commande source destination
cp fichier destinationcp -r dossier destination
mv fichier fichiermv fichier dossiermv dossier dossier
ATTENTION : pas d’avertissements
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
CoPy MoVe
commande source destination
cp fichier destinationcp -r dossier destination
mv fichier fichiermv fichier dossiermv dossier dossier
ATTENTION : pas d’avertissements
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Lire un fichier
cat monFichierless monFichiermore monFichier
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Lire un fichier
cat monFichierless monFichiermore monFichier
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Lire un fichier
cat monFichierless monFichiermore monFichier
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Droits
ls -l plop-rw-r--r-- 1 trax users 5107 sept. 16 11:07 plop
r read 4w write 2x execute 1
a allu userg groupo other
+-=
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
chmod utilisation
chmod a+r fichierchmod -R o-x g-x dossierchmod u=rwx g=rx o=r fichierchmod 754 fichier
Omar Givernaud [email protected] Initiation à la commande Linux
Linux c’est quoi ?Utiliser un Linux
Commandes de bases
Commandes de bases
man MANual man man
cd Change Directory cd .. ; cd /tmp
touch touch monFichier
ls LiSt ls ; ls -lah /tmp
rm ReMove rm monFichier ; rm -r monRepertoire
cp CoPy cp source destination
mv MoVe mv source destination
Omar Givernaud [email protected] Initiation à la commande Linux