Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
1  
When have you seen this? I don't think I've seen it... And I've seen... Things. –  Oli Jul 20 at 15:56
1  
I've just google it, and found this as example. Here host% it is just bash prompt. You can google about bash prompt if you don't know what is it. –  c0rp Jul 20 at 16:04
    
@c0rp Makes sense. You should post that as an answer. –  Oli Jul 20 at 16:12
1  
@c0rp It's actually a csh prompt, not a bash prompt. –  Istvan Chung Jul 20 at 20:50
    
Where did you see this? –  Braiam Jul 20 at 22:28

3 Answers 3

up vote 7 down vote accepted

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.

share|improve this answer

I open this question because it is got me interested. I did't know what is host%. But the answer is more easier then I was thinking.

I'v google it and found this tutorial, where we can see this magically host%.

This is so called Shell Prompt. Thing that usually appear before each command in terminal emulator. It is usually provide some information to user. Previously it has been used to show host name, that's why you can see host% it some documentation and tutorials. Imagine that you have opened a few terminal sessions to a different hosts. There is a chance that you get confused and type some command to the wrong terminal. I think that's why Prompt is exists.

In Ubuntu it is usually look like this:

username@hostname:path $

Where:

username - Currently logged in user login

hostname - This host's name

path - Showing path to the folder. The current working directory, with $HOME abbreviated with a tilde

$ - End of prompt, and start of new command

You can customize Bash Prompt if you want. Here is my prompt:

22:33:16 - (~/Downloads)$

current_time - (path)$

Here is nice tutorial for customizing it

share|improve this answer

Host% is nothing but a prompt with host name (your computer name) saying that the shell is ready to accept commands. This prompt can be set to username or it can show time or date etc.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.