issue102:encart
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 | ||
issue102:encart [2015/11/12 19:12] – d52fr | issue102:encart [2015/11/13 16:22] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 14: | Ligne 14: | ||
501 sudo du h /backup | sort k 2 | 501 sudo du h /backup | sort k 2 | ||
502 history** | 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 | ||
+ | 495 cd | ||
+ | ... | ||
+ | 500 sudo aptget clean | ||
+ | 501 sudo du h /backup | sort k 2 | ||
+ | 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. | ||
Ligne 27: | Ligne 42: | ||
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': | (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': | ||
**• 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. | ||
Ligne 36: | Ligne 64: | ||
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.1447351965.txt.gz · Dernière modification : 2015/11/12 19:12 de d52fr