issue73:certifie_linux
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue73:certifie_linux [2013/10/15 20:30] – fcm_-_ekel | issue73:certifie_linux [2013/10/16 11:51] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
**Addendum | **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?** | 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 | ||
+ | À ma grande horreur, aprè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 disparu. J'ai répété le processus : définir l' | ||
**.bashrc | **.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:** | 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 | ||
+ | Le fichier .bashrc contient les changements dans le terminal spécifiques à l' | ||
... | ... | ||
Ligne 13: | Ligne 19: | ||
**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 24: | Ligne 32: | ||
**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 33: | Ligne 43: | ||
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 41: | Ligne 57: | ||
**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 | ||
Ligne 46: | Ligne 64: | ||
**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. | **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)** | NB. The alias command & .bashrc is a part of LPIC learning statement 1.105.1 Customize and use the shell environment. (weight: 4)** | ||
+ | |||
+ | Pour finir, s'il vous plaît, dites-moi comment vous utilisez des alias sur votre machine. | ||
+ | |||
+ | NB. La commande alias & .bashrc est une partie de la déclaration d' |
issue73/certifie_linux.1381861840.txt.gz · Dernière modification : 2013/10/15 20:30 de fcm_-_ekel