Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working on Windows 7 using the cmd console. How do I hide the path in the prompt?

share|improve this question
why do you want to? – soandos Jul 26 '11 at 16:38
real-estate ... – Chris Jul 26 '11 at 16:40
Sorry, dont follow. You mean you want to see more on the screen? – soandos Jul 26 '11 at 16:41
That's what he means, exactly. – cularis Jul 26 '11 at 17:01
@barlop, I believe real estate is a fairly standard way to refer to the space available on the screen - e.g.… – dsolimano Jul 26 '11 at 19:24
up vote 35 down vote accepted

You can use

prompt [text]

command. Type prompt /? to list all of the available parameters. For example, the following command sets "> (greater-than sign)" as prompt.

prompt $g
share|improve this answer
I feel FREE!!!! – Chris Jul 26 '11 at 17:09
Is there a way to make this stick ie become default? – Chris Moutray Aug 20 '14 at 13:36

Some more tips:

If you want to go back to previous status (showing full path), just type prompt without any arguments, and press Enter. If you just want to see current working directory (the same as pwd in linux), type chdir or cd without any arguments and press Enter.

share|improve this answer

if you want to display your name as prompt type the following command

prompt "your name"

want to come back to the original prompt type this


share|improve this answer
That does not answer the question. – Jan Doggen Oct 30 '14 at 7:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .