![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jan 2001
Posts: 3,539
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2002
Location: Seattle
Posts: 1,070
|
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.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Registered User
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
|
just a simple "pwd" will suffice. Minus the quotes of course.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jan 2001
Posts: 3,539
|
I believe my shell is /bin/bash.
|
![]() |
![]() ![]() ![]() ![]() ![]() |