Computing.Net > Forums > Unix > tired of 'pwd'

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

tired of 'pwd'

Reply to Message Icon

Name: 1miked
Date: January 8, 2003 at 08:36:14 Pacific
OS: win 2000
CPU/Ram: pentium4 266
Comment:

i was wondering if there was a way to set it to show the full path instead of just the $. typing 'pwd' all the time is getting on my nerves. i'm using putty. i hope that's enough info' i'm pretty new to this. thanks , Mike



Sponsored Link
Ads by Google

Response Number 1
Name: hj
Date: January 8, 2003 at 08:45:03 Pacific
Reply:

Look for your PS1 variable and set that in your home directory .profile Since, I use bash, I would set this in my .bash_profile

export PS1="[\u@\h \W:]"

The output would be username@homedir \current dir:]

Example.

jdoe@diamond etc:

This will eliminate the you constantly having to type pwd to find out which directory you are in. You can also change the settings in the PS1 variable, I think a lowercase w instead of an uppercase shows the entire path name instead of last part of dir. ex. [jdoe@diamond /usr/local/bin]: Hope this helps, its been awhile since I've dealt with this, maybe someone else could shed some more light on this for you.


0
Reply to Message Icon

Related Posts

See More


install problem (sun sola... how to install mklinux



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: tired of 'pwd'

driver of RWA010 R6711-31 sound card www.computing.net/answers/unix/driver-of-rwa010-r671131-sound-card-/967.html

Cannot display `pwd` content under www.computing.net/answers/unix/cannot-display-pwd-content-under-/6163.html

Netgear NIC & Failure www.computing.net/answers/unix/netgear-nic-amp-failure/1016.html