Le Deal du moment : -29%
PC portable Gamer ERAZER DEPUTY P60 – ...
Voir le deal
999.99 €

Correction Examen de Passage TSRI Partie Linux Pratique Variante 2

Page 1 sur 2 1, 2  Suivant

Voir le sujet précédent Voir le sujet suivant Aller en bas

Correction Examen de Passage TSRI Partie Linux Pratique Variante 2  Empty Correction Examen de Passage TSRI Partie Linux Pratique Variante 2

Message par Mr.adam Ven Juin 11, 2010 8:59 pm

Le script a débuté, le fichier est MR.ADAM


[tri@localhost~]$ su root*


su: L'usager root* n'existe pas.


[tri@localhost ~]$ su root

Mot de passe :

[root@localhost tri]# mkdir tpunix1



[root@localhost tri]# cd tpunix1


[root@localhost tpunix1]# vi semaine.txt


[root@localhost tpunix1]# wc -l semaine.txt

7 semaine.txt


[root@localhost tpunix1]# head -5 semaine.txt


Lundi est la ligne n°1

Mardi est la liGNe n°2

Mercredi est la Ligne n°3


Jeudi est la lignE n°4

Vendredi est la LIGNE n°5


[root@localhost tpunix1]# more +3 -5 semaine.txt


Mercredi est la Ligne n°3


Jeudi est la lignE n°4


Vendredi est la LIGNE n°5


Samedi est la ligne n°6


Dimanche est la ligne n°7


[root@localhost tpunix1]#


[root@localhost tpunix1]# more +3 -3 semaine.txt


Mercredi est la Ligne n°3


Jeudi est la lignE n°4


Vendredi est la LIGNE n°5


Samedi est la ligne n°6


Dimanche est la ligne n°7


[root@localhost tpunix1]# find -size <2 /bin |touch hebdo.txt


bash: 2: Aucun fichier ou dossier de ce type


[root@localhost tpunix1]# find -size -2 | touch hebdo.txt/bin


touch: ne peut faire un touch sur `hebdo.txt/bin': N'est pas un dossier


[root@localhost tpunix1]# find grep [345] semaine.txt


find:"grep": Aucun fichier ou dossier de ce type


find:"[345]": Aucun fichier ou dossier de ce typ esemaine.txt


[root@localhost tpunix1]# grep [345] semaine.txt


Mercredi est la Ligne n°3


Jeudi est la lignE n°4


Vendredi est la LIGNE n°5


[root@localhost tpunix1]# find -size 2 semaine.txt


find: les chemins doivent précéder l'expression : semaine.txt


Utilisation : find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [chemin...][expression]


[root@localhost tpunix1]# find /bin -size -2k >hebdo.txt


[root@localhost tpunix1]# grep -i semaine.txt

^[


[root@localhost tpunix1]# grep -i ligne semaine.txt


Lundi est la ligne n°1


Mardi est la liGNe n°2


Mercredi est la Ligne n°3


Jeudi est la lignE n°4


Vendredi est la LIGNE n°5


Samedi est la ligne n°6


Dimanche est la ligne n°7


[root@localhost tpunix1]# grep [J,L-P] semaine.txt


Lundi est la ligne n°1


Mardi est la liGNe n°2


Mercredi est la Ligne n°3


Jeudi est la lignE n°4


Vendredi est la LIGNE n°5


Samedi est la ligne n°6


Dimanche est la ligne n°7


[root@localhost tpunix1]# ls semaine.txt phys


ls: ne peut accéder phys: Aucun fichier ou dossier de ce type


semaine.txt


[root@localhost tpunix1]# ln semaine.txt phys


[root@localhost tpunix1]# ln -s semaine.txt symb


[root@localhost tpunix1]# rmdir semaine.txt


rmdir: échec de suppression de `semaine.txt': N'est pas un dossier


[root@localhost tpunix1]# rm semaine.txt


rm: détruire fichier régulier `semaine.txt'?


[root@localhost tpunix1]# cut dymb


cut: Une liste d'octets, de caractères, ou de champs doit être spécifiée.


Pour en savoir davantage, faites: « cut --help ».


[root@localhost tpunix1]# cat phys


Lundi est la ligne n°1


Mardi est la liGNe n°2


Mercredi est la Ligne n°3


Jeudi est la lignE n°4


Vendredi est la LIGNE n°5


Samedi est la ligne n°6


Dimanche est la ligne n°7


[root@localhost tpunix1]# cat symb


Lundi est la ligne n°1


Mardi est la liGNe n°2


Mercredi est la Ligne n°3


Jeudi est la lignE n°4


Vendredi est la LIGNE n°5


Samedi est la ligne n°6


Dimanche est la ligne n°7


[root@localhost tpunix1]# ls symb


symb


[root@localhost tpunix1]# ls -l symb


lrwxrwxrwx. 1 root root 11 juin 9 10:32 symb ->semaine.txt


[root@localhost tpunix1]# useradd Toni


useradd : nom d'utilisateur « Toni » non valable


[root@localhost tpunix1]# useradd toni


[root@localhost tpunix1]# useradd moni


[root@localhost tpunix1]# passwd toni


Changement de mot de passe pour l'utilisateur toni.


Nouveau mot de passe :


Retapez le nouveau mot de passe :


Les mots de passe ne correspondent pas.


Nouveau mot de passe :


Retapez le nouveau mot de passe :


Les mots de passe ne correspondent pas.


Nouveau mot de passe :


Changement du mot de passe avorté.


passwd: Nombre maximum de tentatives épuisées pour le service


[root@localhost tpunix1]# passwd moni


Changement de mot de passe pour l'utilisateur moni.


Nouveau mot de passe :


Retapez le nouveau mot de passe :


MOT DE PASSE INCORRECT : trop simple/systématique


MOT DE PASSE INCORRECT : est trop simple


passwd : mise à jour réussie de tous les jetons d'authentification.


[root@localhost tpunix1]# passwd toni


Changement de mot de passe pour l'utilisateur toni.


Nouveau mot de passe :


Retapez le nouveau mot de passe :
MOT DE PASSE
INCORRECT : basé sur un mot du dictionnaire


MOT DE PASSE INCORRECT : est trop simple


passwd : mise à jour réussie de tous les jetons d'authentification.


[root@localhost tpunix1]# touch fichier.txt


[root@localhost tpunix1]# chmod 222 fichier.txt


[root@localhost tpunix1]# ls fichier.txt

fichier.txt


[root@localhost tpunix1]# ls -l fichier.txt

--w--w--w-. 1 root root 0 juin 9 10:47 fichier.txt


[root@localhost tpunix1]# mkdir savoir


[root@localhost tpunix1]# cd savoir


[root@localhost savoir]# mkdir histoire


[root@localhost savoir]#


Mr.adam
Mr.adam
 
 

Nombre de messages : 78
Date d'inscription : 27/12/2009
Masculin

Revenir en haut Aller en bas

Correction Examen de Passage TSRI Partie Linux Pratique Variante 2  Empty Re: Correction Examen de Passage TSRI Partie Linux Pratique Variante 2

Message par nissi Sam Juin 12, 2010 8:55 pm

MERCI;mais dsl ne9olek hadchi fih bezaaaf de a5eta2;


nissi
nissi
 
 

Nombre de messages : 69
Date d'inscription : 29/05/2010
Féminin

Revenir en haut Aller en bas

Correction Examen de Passage TSRI Partie Linux Pratique Variante 2  Empty Re: Correction Examen de Passage TSRI Partie Linux Pratique Variante 2

Message par Mr.adam Dim Juin 13, 2010 9:57 pm

merci khay momkin tashih svp ok


Mr.adam
Mr.adam
 
 

Nombre de messages : 78
Date d'inscription : 27/12/2009
Masculin

Revenir en haut Aller en bas

Correction Examen de Passage TSRI Partie Linux Pratique Variante 2  Empty Re: Correction Examen de Passage TSRI Partie Linux Pratique Variante 2

Message par nissi Dim Juin 13, 2010 10:07 pm

find -size <2 /bin |touch hebdo.txt
homa 9ALO créez un fichier qui port les noms des fichiers 2 ko
be3eda dek 2 ko 5esa tete7awel n bloc 2KO=2000 O
2000/512 ----> 3 BLOC
find / bin -size -3 > hebdo.txt


nissi
nissi
 
 

Nombre de messages : 69
Date d'inscription : 29/05/2010
Féminin

Revenir en haut Aller en bas

Correction Examen de Passage TSRI Partie Linux Pratique Variante 2  Empty Re: Correction Examen de Passage TSRI Partie Linux Pratique Variante 2

Message par nissi Dim Juin 13, 2010 10:11 pm

RQ HADI KHETEK MACHI KHAK


nissi
nissi
 
 

Nombre de messages : 69
Date d'inscription : 29/05/2010
Féminin

Revenir en haut Aller en bas

Correction Examen de Passage TSRI Partie Linux Pratique Variante 2  Empty Re: Correction Examen de Passage TSRI Partie Linux Pratique Variante 2

Message par Contenu sponsorisé




Contenu sponsorisé


Revenir en haut Aller en bas

Page 1 sur 2 1, 2  Suivant

Voir le sujet précédent Voir le sujet suivant Revenir en haut

- Sujets similaires

 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum