GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   showing full path in command prompt unix (https://gfy.com/showthread.php?t=79212)

HQ 09-26-2002 10:22 AM

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.

salsbury 09-26-2002 10:25 AM

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.

[Labret] 09-26-2002 10:30 AM

just a simple "pwd" will suffice. Minus the quotes of course.

HQ 09-26-2002 10:43 AM

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