Thursday, May 2, 2024
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 1391  / 3 Years ago, fri, may 28, 2021, 12:08:48

I see this a lot in terminal commands and didn't understand what does it mean. also the terminal doesn't recognize it.


More From » command-line

 Answers
2

I assume you're seeing this host% in documentation. It stands for the shell prompt. ("Shell" is the program that reads the commands you type; "prompt" is the little bit of text that this program displays on your screen to say that it's ready to read your next command.)



If you look at a terminal window on your computer you'll probably see something like



my-computer-name%



on the last line, where "my-computer-name" is of course your computer's name. This is prompting you (i.e., inviting you) to type a command. So now you go and type ls and carriage return, and the shell prints some output.



Linux documentation typically uses host% to indicate the prompt ("host" is another name for "computer").



This host% It's not meant to be typed: it just indicates that what follows in the document is to be typed.


[#24055] Saturday, May 29, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
heaco

Total Points: 479
Total Questions: 124
Total Answers: 114

Location: Lesotho
Member since Sat, Oct 1, 2022
2 Years ago
;