La séance de questions-réponses d'aujourd'hui nous est offerte par la sous-division SuperUser de Stack Exchange, un groupe de sites Web de questions-réponses dirigé par la communauté.
La question
Le lecteur superutilisateur Erty est curieux:
Is there a name for the text that shows up at the front of each command at the Command Line Interface. For example, in Ubuntu when I start up a terminal, it says:
username@computer:~$ And in Windows:
C:UsersUsername> Is there a formal way to refer to that text?
Thanks in advance!
Comment s'appelle ce petit bout?
La réponse
Barlop, contributeur de SuperUser, offre quelques idées:
It’s called ‘the prompt’
In linux, you could be more specific and say “the bash prompt” in the case of the bash shell, or for the KSH shell, The KSH (korn shell) prompt etc. In Windows you can change the prompt with the PROMPT command.
In windows, you could be more specific and say “the C prompt”, and the prompt in windows is most famously C:> or C:something…> so you can see how it gets that name. A techie might’ve frustratingly said to a user on the phone “Do you get the C prompt?”. While saying it as C prompt, some write it as The C: prompt or The C: prompt. One wouldn’t call it that when it was A: or D: (which you get when you boot DOS off floppy or cd drive, or you change to one those drives from the command prompt) and nobody talks of the A prompt or the D prompt, only the famous one, the C prompt.
Si toutes ces discussions sur l'invite vous mettent dans une ambiance de ligne de commande, consultez certains des articles de How-To Geek suivants sur la vie à l'invite:
- Comment personnaliser l'invite de commande Windows
- 5 astuces d'invite de commande Windows que vous ignorez probablement
- Geek débutant: comment commencer à utiliser le terminal Linux
- Devenez un utilisateur puissant de terminal Linux avec ces 8 astuces
- Comment gérer les processus à partir du terminal Linux: 10 commandes à connaître
Avez-vous quelque chose à ajouter à l'explication? Sound off dans les commentaires. Voulez-vous lire plus de réponses d'autres utilisateurs de Stack Exchange doués en technologie? Découvrez le fil de discussion complet ici.