answersLogoWhite

0


Best Answer

Use the following:

PS1='$PWD : '

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How you change your prompt to always the current path in UNIX?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you change commpand prompt form to in unix?

Use the shell variable PS1 to set the command prompt to whatever you need.


What is the administrator's prompt in the command line on unix?

The usual indication of running as the administrator in Unix is show a prompt that contains the '#' character as either the prompt or part of the prompt.


What is prompt in unix?

The prompt is an indication that the system is waiting for work to do, i.e. waiting for you type in a command.


What is the command that will change the current default directory to the root directory in Unix?

CD /


How do you log out of Unix?

If you logged in from a terminal, simply press Ctrl-D to return to the login prompt. Note: not all environments will take a Ctrl-D to return to the login prompt.  In that case, type exit to exit out of your current login environment.


How can you identify by seeing in the prompt whether the command is external or internal in unix?

You really can't. There is nothing in a prompt that would give that information.


What is the prompt symbol traditionally associated with ordinary users in UNIX?

dollar sign ($)


Can you compile job in Unix prompt?

Depends on what you mean by a "job". You can compile a program.


How does user know where he is in the file system in unix operating system?

Most people set up their shell to give them an indication in the command prompt. But this isn't "built in" (the mechanism for doing so is built in to most shells, but you can use the same mechanism to change the prompt to pretty much anything you want).The command pwd on a Unix system should tell you "where you are".


Where can you get a Unix shell for Windows?

A Unix shell can be obtained in Cygwin, a Unix compatibility layer used to compile Unix programs and run them on Windows. Microsoft also makes a shell known as "Windows PowerShell" which incorporates more Unix-like features than the standard command prompt.


What is the function of CLS in dos command?

The command CLS clears the screen and resets the location of the command prompt to the top of the screen. This is similar to the Unix command clear.


What command is used to create a folder in the command prompt?

In Windows and Unix-based and Unix-like systems, the command is mkdir (however in Windows a shortcut md can be used as well).