Outils pour utilisateurs

Outils du site


issue73:certifie_linux

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
issue73:certifie_linux [2013/06/06 23:09] – créée andre_domenechissue73:certifie_linux [2013/10/16 11:51] (Version actuelle) auntiee
Ligne 1: Ligne 1:
 +**Addendum
 +To my horror, having proudly informed you all of how to create your first alias, I restarted my computer only to notice that my alias commands had disappeared. I repeated the process: set the alias, restarted the puter. Nothing. So: how can an alias survive a restart?**
 +
 Addendum Addendum
-To my horrorhaving proudly informed you all of how to create your first alias, I restarted my computer only to notice that my alias commands had disappearedI repeated the processset the alias, restarted the puterNothingSohow can an alias survive a restart?+À ma grande horreuraprès vous avoir tous fièrement dit comment créer votre premier alias, j'ai redémarré mon ordinateur, puis j'ai remarqué que mes commandes alias avaient disparuJ'ai répété le processus définir l'alias, redémarrer l'ordinateurRienAlors comment un alias peut-il survivre à un redémarrage ? 
 + 
 +**.bashrc 
 +The .bashrc file is for user-specific (just your account, not for the whole computer) changes to your terminal. Open .bashrc with your favorite editor. (If I had been a very good boy, I'd have made a copy of it before editing). It's located in your home directory. Run a search for alias on the file contents. You should, with a minimal amount of searching, come across something that looks a bit like this:**
  
-.bashrc +. bashrc 
-The .bashrc file is for user-specific (just your accountnot for the whole computerchanges to your terminalOpen .bashrc with your favorite editor. (If I had been a very good boyI'd have made a copy of it before editing)It's located in your home directoryRun a search for alias on the file contentsYou shouldwith a minimal amount of searchingcome across something that looks a bit like this:+Le fichier .bashrc contient les changements dans le terminal spécifiques à l'utilisateur  (seulement pour votre comptepas pour la totalité de l'ordinateur). Ouvrez .bashrc avec votre éditeur de texte favori. (Si j'avais été très sagej'aurais fait une copie de celui-ci avant de le modifier.) Il est situé dans votre répertoire home. Lancez une recherche pour alias sur le contenu du fichierVous devriezavec un minimum de recherchesrencontrer quelque chose qui ressemble un peu à ceci :
  
 ... ...
Ligne 12: Ligne 18:
 ... ...
  
-If you remember from last month, I wanted to change how folders and files were listed when I used ls. I wanted to: i) list files & folders vertically; and ii) list directories first. The more observant of you will realise that the aliases listed above determine the functionality of ll, la & l not ls. The ls alias is sitting above them amidst some code. In my .bashrc file, it looks like the code below. +**If you remember from last month, I wanted to change how folders and files were listed when I used ls. I wanted to: i) list files & folders vertically; and ii) list directories first. The more observant of you will realise that the aliases listed above determine the functionality of ll, la & l not ls. The ls alias is sitting above them amidst some code. In my .bashrc file, it looks like the code below.**  
 + 
 +Si vous vous souvenez du mois dernier, j'ai voulu changer la façon dont les dossiers et les fichiers étaient répertoriés lorsque j'utilisais ls. Je voulais : 1) la liste des fichiers et dossiers verticalement, et 2) la liste des répertoires en premier. Les plus observateurs d'entre vous se rendront compte que les alias énumérés ci-dessus déterminent les fonctionnalités de ll, la & l, mais pas de ls. L'alias de ls est situé au-dessus d'eux parmi un peu de code. Dans mon fichier .bashrc, cela ressemble au code ci-dessous.
  
 ... ...
Ligne 23: Ligne 31:
 ... ...
  
-For Ubuntu 12.04 LTS, ls is preset to list files and folders in different colors. Hence, an alias already exists for ls, as seen in the code above. I merely need to add my two preferences to the existing alias.+**For Ubuntu 12.04 LTS, ls is preset to list files and folders in different colors. Hence, an alias already exists for ls, as seen in the code above. I merely need to add my two preferences to the existing alias.** 
 + 
 +Pour Ubuntu 12.04 LTS, ls est préréglé pour lister les fichiers et les dossiers dans différentes couleurs. Par conséquent, un alias existe déjà pour ls, comme on le voit dans le code ci-dessus. J'ai simplement besoin d'ajouter mes deux préférences à l'alias existant.
  
 ... ...
Ligne 29: Ligne 39:
 ... ...
  
-Save the .bashrc file, restart the computer, and the alias settings remained. Problem solved.+**Save the .bashrc file, restart the computer, and the alias settings remained. Problem solved.
  
 Showing off Showing off
-Following this small success, I added two more aliases to make my Ubuntu-ing a little quicker. +Following this small success, I added two more aliases to make my Ubuntu-ing a little quicker.**  
 + 
 +Enregistrez le fichier .bashrc, redémarrez l'ordinateur et les paramètres d'alias sont toujours là. Problème résolu. 
 + 
 +Pour crâner un peu : 
 +Après ce petit succès, j'ai ajouté deux autres alias pour rendre mon utilisation d'Ubuntu un peu plus rapide. 
  
 #firefox alias #firefox alias
Ligne 40: Ligne 56:
 alias evolution='evolution &' alias evolution='evolution &'
  
-Also, I often turn on my puter and want to open both a browser and my email, but not always. So I added one more alias for this:+**Also, I often turn on my puter and want to open both a browser and my email, but not always. So I added one more alias for this:** 
 + 
 +Et aussi, je démarre souvent ​​mon ordinateur et veux ouvrir à la fois un navigateur et mon client mail, mais pas toujours. J'ai donc ajouté un alias pour cela :
  
 #open evolution & firefox together #open evolution & firefox together
 alias internet='evolution firefox' alias internet='evolution firefox'
  
-One important to thing to note about this piece of code is the missing && between evolution and firefox, which would be necessary if I were to run two commands simultaneously at the command line. However, one ampersand & as set in the initial alias alias evolution='evolution &' already returns the command line when the program has been launched so it's not necessary to inform the computer you are launching two commands simultaneously with &&.+**One important to thing to note about this piece of code is the missing && between evolution and firefox, which would be necessary if I were to run two commands simultaneously at the command line. However, one ampersand & as set in the initial alias alias evolution='evolution &' already returns the command line when the program has been launched so it's not necessary to inform the computer you are launching two commands simultaneously with &&.** 
 + 
 + 
 +Une chose importante à noter à propos de ce morceau de code : les && manquants entre Evolution et Firefox, qui seraient nécessaires si je devais exécuter deux commandes simultanément en ligne de commande. Cependant, une esperluette & comme indiqué dans l'alias initial des alias evolution  = 'evolution &' renvoie déjà la ligne de commande lorsque le programme a été lancé il n'est donc pas nécessaire d'informer l'ordinateur que vous lancez deux commandes en même temps avec &&
 + 
 +**To finish, please tell how you use alias on your machine. 
 + 
 +NB. The alias command & .bashrc is a part of LPIC learning statement 1.105.1 Customize and use the shell environment. (weight: 4)**
  
-To finishplease tell how you use alias on your machine.+Pour finirs'il vous plaît, dites-moi comment vous utilisez des alias sur votre machine.
  
-NB. The alias command & .bashrc is a part of LPIC learning statement 1.105.1 Customize and use the shell environment. (weight: 4)+NB. La commande alias & .bashrc est une partie de la déclaration d'apprentissage LPIC 1.105.1. Personnaliser et utiliser l'environnement shell. (coefficient : 4)
issue73/certifie_linux.1370552960.txt.gz · Dernière modification : 2013/06/06 23:09 de andre_domenech