issue73:certifie_linux
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| issue73:certifie_linux [2013/06/06 23:09] – créée andre_domenech | issue73: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 horror, having proudly informed you all of how to create your first alias, | + | À ma grande horreur, après vous avoir tous fièrement dit comment créer votre premier |
| + | |||
| + | **.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 | + | Le fichier |
| ... | ... | ||
| 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' | ||
| ... | ... | ||
| 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, | ||
| ... | ... | ||
| 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' | ||
| + | |||
| + | Pour crâner un peu : | ||
| + | Après ce petit succès, j'ai ajouté deux autres alias pour rendre mon utilisation d' | ||
| #firefox alias | #firefox alias | ||
| Ligne 40: | Ligne 56: | ||
| alias evolution=' | alias 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=' | alias internet=' | ||
| - | 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=' | + | **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=' |
| + | |||
| + | |||
| + | 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' | ||
| + | |||
| + | **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 finish, please tell how you use alias on your machine. | + | Pour finir, s'il vous plaît, dites-moi comment vous utilisez des alias sur votre machine. |
| - | NB. The alias command | + | NB. La commande |
issue73/certifie_linux.1370552960.txt.gz · Dernière modification : 2013/06/06 23:09 de andre_domenech
