![]() |
showing full path in command prompt unix
How do I show the full path in command prompt Unix? By default it only shows the current directory. This does not work well for me as I have many "htdocs" directories, "cgi-bin" directories, etc.
|
depends on the shell. in bash/ksh you can do that with
PS1='$PWD'\$' ' what this does is it sets PS1 to "$PWD$ ", but the quoting makes it work as you'd expect it to. put that in your .profile or .bash_profile or .bashrc. |
just a simple "pwd" will suffice. Minus the quotes of course.
|
I believe my shell is /bin/bash.
|
All times are GMT -7. The time now is 06:00 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123