issue215:c_c
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 | ||
issue215:c_c [2025/04/01 08:53] – d52fr | issue215:c_c [2025/04/04 11:19] (Version actuelle) – jpl | ||
---|---|---|---|
Ligne 6: | Ligne 6: | ||
What is nice about screen, is that you can have a few instances running at once and switch between the processes running in each. However, do not assume it is installed. You may need to add it with: sudo apt install screen – on both ends where you intend to use it. The man page for screen is very long, and it uses that emacs type notation for key bindings, that look like this: C-a meaning CTRL+a. (Important, file for later use).** | What is nice about screen, is that you can have a few instances running at once and switch between the processes running in each. However, do not assume it is installed. You may need to add it with: sudo apt install screen – on both ends where you intend to use it. The man page for screen is very long, and it uses that emacs type notation for key bindings, that look like this: C-a meaning CTRL+a. (Important, file for later use).** | ||
+ | |||
+ | Le mois dernier, nous avons approfondi les tâches, les processus de premier plan et d' | ||
+ | |||
+ | Qu' | ||
+ | |||
+ | Votre visionneuse de documents s' | ||
+ | |||
+ | L' | ||
+ | |||
**Fire up your terminal and type: | **Fire up your terminal and type: | ||
Ligne 50: | Ligne 59: | ||
So now, instead of it just saying “bash”, it has a name and you should see a ‘*’ indicating which screen you are currently on. Start a ping in one of those screens and switch away and go back.** | So now, instead of it just saying “bash”, it has a name and you should see a ‘*’ indicating which screen you are currently on. Start a ping in one of those screens and switch away and go back.** | ||
+ | |||
+ | Lancez votre terminal et saisissez : | ||
+ | |||
+ | screen | ||
+ | |||
+ | Si vous êtes directement sur un TTY, vous ne devriez pas voir ceci ; c'est comme si rien ne s' | ||
+ | |||
+ | Cependant, nous pouvons vous donner une idée en procédant comme suit : | ||
+ | |||
+ | Saisissez : | ||
+ | |||
+ | echo " | ||
+ | |||
+ | appuyez sur CTRL+a, relâchez les touches et appuyez sur c | ||
+ | |||
+ | echo " | ||
+ | |||
+ | appuyez sur CTRL+a, relâchez les touches et appuyez sur c | ||
+ | |||
+ | echo " | ||
+ | |||
+ | appuyez sur CTRL+a, relâchez les touches et appuyez sur p | ||
+ | |||
+ | appuyez sur CTRL+a, relâchez les touches et appuyez sur n | ||
+ | |||
+ | Que s' | ||
+ | |||
+ | Maintenant : | ||
+ | |||
+ | Appuyez sur CTRL+a, relâchez les touches et appuyez sur 0 | ||
+ | |||
+ | Appuyez sur CTRL+a, relâchez les touches et appuyez sur 2 | ||
+ | |||
+ | Appuyez sur CTRL+a, relâchez les touches et appuyez sur " | ||
+ | |||
+ | Vous devriez pouvoir naviguer avec les flèches haut et bas. | ||
+ | |||
+ | Si vous l' | ||
+ | |||
+ | Appuyez sur CTRL+a, relâchez les touches et appuyez sur A (A majuscule) et donnez un nom à cet écran. | ||
+ | |||
+ | J'ai renommé celui du milieu « Centre » et lorsque j' | ||
+ | |||
+ | Maintenant, au lieu d' | ||
+ | |||
**If you were wide awake, you may have noticed “detach” in the man page, obviously it is: | **If you were wide awake, you may have noticed “detach” in the man page, obviously it is: | ||
Ligne 66: | Ligne 120: | ||
Try it yourself quickly, I’ll wait....** | Try it yourself quickly, I’ll wait....** | ||
+ | |||
+ | Si vous étiez bien réveillé, vous avez peut-être remarqué « detach » dans la page du manuel, c'est bien ça : | ||
+ | |||
+ | Appuyez sur CTRL+a, relâchez les touches et appuyez sur D. | ||
+ | |||
+ | Vous devriez avoir votre invite de commande bash habituelle de retour (certaines distributions, | ||
+ | |||
+ | Maintenant, pour la partie que je souhaite comparer avec ce qui s'est passé avec evince, fermez le terminal. Ouvrez-en un nouveau ; il n'est même pas nécessaire que ce soit un terminal Gnome. | ||
+ | |||
+ | Saisissez maintenant : | ||
+ | |||
+ | screen -ls | ||
+ | |||
+ | Ce message (detach - détaché) est celui dont nous venons de nous déconnecter. Comme il est « récent », | ||
+ | |||
+ | Essayez vite, j' | ||
+ | |||
**One last thing: just like screens, you can also name your sessions (though I have never used it, as usually my session is one screen to one server), and you can bake that into a configuration file, but I feel we are stepping outside newbie territory. When starting a screen session, use -S (capital “S”) followed by a name (I named it FCM). You can also name a session from *inside screen, you just need to list all the open screens first, with: | **One last thing: just like screens, you can also name your sessions (though I have never used it, as usually my session is one screen to one server), and you can bake that into a configuration file, but I feel we are stepping outside newbie territory. When starting a screen session, use -S (capital “S”) followed by a name (I named it FCM). You can also name a session from *inside screen, you just need to list all the open screens first, with: | ||
Ligne 88: | Ligne 159: | ||
Any mistakes, please write to: misc@fullcirclemagazine.org** | Any mistakes, please write to: misc@fullcirclemagazine.org** | ||
+ | |||
+ | Une dernière chose : tout comme pour les écrans, vous pouvez nommer vos sessions (même si je ne l'ai jamais utilisé, car, dans ma session, c'est généralement un écran pour un serveur), et vous pouvez l' | ||
+ | |||
+ | Appuyez sur CTRL+a, relâchez les touches et appuyez sur " | ||
+ | |||
+ | Appuyez sur CTRL+a, relâchez les touches et appuyez sur : | ||
+ | |||
+ | Vous devriez maintenant voir un « : » en bas du terminal. Saisissez nom_session (un mot). | ||
+ | |||
+ | Commencez à nommer et appuyez sur < | ||
+ | |||
+ | Maintenant, la partie amusante, pour fermer un écran : | ||
+ | |||
+ | Appuyez sur CTRL+a, relâchez les touches et appuyez sur K. | ||
+ | |||
+ | Et pour « killall », | ||
+ | |||
+ | Appuyez sur CTRL+a, relâchez les touches et appuyez sur \. | ||
+ | |||
+ | Voilà qui devrait couvrir les bases pour les débutants. Je ne pense pas que vous en aurez besoin de plus avant looooongtemps, | ||
+ | |||
+ | En cas d’erreur, veuillez écrire à : misc@fullcirclemagazine.org | ||
issue215/c_c.1743490423.txt.gz · Dernière modification : 2025/04/01 08:53 de d52fr