issue102:encart
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| issue102:encart [2015/11/01 19:08] – créée auntiee | issue102:encart [2015/11/13 16:22] (Version actuelle) – andre_domenech | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | Using BASH command history | + | **Using BASH command history |
| by Jeremy Boden | by Jeremy Boden | ||
| Ligne 8: | Ligne 8: | ||
| [493 lines omitted] | [493 lines omitted] | ||
| + | 494 locate amstex.sty | ||
| + | 495 cd | ||
| + | ... | ||
| + | 500 sudo aptget clean | ||
| + | 501 sudo du h /backup | sort k 2 | ||
| + | 502 history** | ||
| + | |||
| + | Utiliser la commande BASH history | ||
| + | Par Jeremy Boden | ||
| + | |||
| + | Voudriez-vous que l' | ||
| + | |||
| + | Il se trouve qu'un écran d' | ||
| + | |||
| + | [493 lignes omises] | ||
| 494 locate amstex.sty | 494 locate amstex.sty | ||
| 495 cd | 495 cd | ||
| Ligne 15: | Ligne 30: | ||
| 502 history | 502 history | ||
| - | Note that the commands entered are listed in reverse order, so that the most recent command is shown last. Actually, the history command comes with a multitude of options – which I shan't discuss. Instead, we can access the command history in a simple interactive way. | + | **Note that the commands entered are listed in reverse order, so that the most recent command is shown last. Actually, the history command comes with a multitude of options – which I shan't discuss. Instead, we can access the command history in a simple interactive way. |
| It is a “well known fact” that pressing the uparrow/ | It is a “well known fact” that pressing the uparrow/ | ||
| Ligne 26: | Ligne 41: | ||
| I entered mlo – (I was expecting to type mlocate) and my screen changed to: | I entered mlo – (I was expecting to type mlocate) and my screen changed to: | ||
| + | (reverseisearch)`mlo': | ||
| + | |||
| + | Notez que les commandes saisies sont listées dans l' | ||
| + | |||
| + | C'est « un fait bien connu » que l' | ||
| + | |||
| + | Mon écran de commande attend la saisie d'une commande ; je peux donc lire : | ||
| + | jeremy@hector: | ||
| + | |||
| + | L' | ||
| + | (reverseisearch)`': | ||
| + | |||
| + | J' | ||
| (reverseisearch)`mlo': | (reverseisearch)`mlo': | ||
| - | • Note that the search string is shown enclosed between a backtick character and a single quote and separated from the full command by a colon. I chose to run this command unchanged, by pressing the enter key. | + | **• Note that the search string is shown enclosed between a backtick character and a single quote and separated from the full command by a colon. I chose to run this command unchanged, by pressing the enter key. |
| • If your search string includes spaces, enter the exact number of spaces required. | • If your search string includes spaces, enter the exact number of spaces required. | ||
| • Note that in my search, it was only necessary to enter a few adjacent characters – it is not necessary to start from the beginning of the command. | • Note that in my search, it was only necessary to enter a few adjacent characters – it is not necessary to start from the beginning of the command. | ||
| Ligne 35: | Ligne 63: | ||
| • At any point, prior to pressing the enter key, you can abandon running the command by pressing CTRL+C. | • At any point, prior to pressing the enter key, you can abandon running the command by pressing CTRL+C. | ||
| - | After pressing enter (to run the command) or CTRL+C to cancel any command execution, your command entry screen will return to its original appearance. | + | After pressing enter (to run the command) or CTRL+C to cancel any command execution, your command entry screen will return to its original appearance.** |
| + | |||
| + | Notez que la chaîne de caractères à rechercher est entre une apostrophe inverse et un guillemet simple et séparé de la commande entière par un deux-points. Je choisis de lancer la commande telle quelle, en appuyant sur la touche Entrée. | ||
| + | • Si votre chaîne comprend des espaces, entrez le nombre exact d' | ||
| + | • Notez que dans ma recherche, il a suffi de quelques caractères contigus - il n'est pas nécessaire de commencer par le début de la commande. | ||
| + | • Il pourrait arriver que votre chaîne à rechercher corresponde à plusieurs commandes ; pour atteindre une commande plus ancienne, tapez simplement CTRL+R à nouveau. | ||
| + | • Pour modifier la commande retrouvée avant de la lancer, appuyez sur la touche fléchée droite ou gauche, tapez les modifications et appuyez sur Entrée pour lancer la commande. | ||
| + | • À tout moment, avant d' | ||
| + | |||
| + | Après l' | ||
issue102/encart.1446401284.txt.gz · Dernière modification : 2015/11/01 19:08 de auntiee
