path name for Solaris 8 ?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users path name for Solaris 8 ?
# 1  
Old 11-17-2001
path name for Solaris 8 ?

hello all,
instead of type pwd everytime to find down where I am at. is there a command set prompt to put in to your profile on shell so it invisible every you type cd?

thanks in advance...
# 2  
Old 11-19-2001
Hi

Use The PS1 variable in solaris
In your .profile set the PS1="$PWD>" ; export PS1 and ur command prompt will display the whole path so that you don't have to type pwd everythime

I think this is what you want.

Smilie
# 3  
Old 11-22-2001
kapilv,
no, it doesn't work.
ex:

myunix% this where I am @, I have to type
pwd it would shows
myunix%pwd
/usr/work/phapvn
I'd like it shows something like this.
myunix%/usr/work/phapvn if I go back one dir then when I type.
cd ..
it would show
myunix%/usr/work

Hope you understand what I am asking and can help...

I worked with SGI there is something about set prompt. I am be able to make it works on SGI. just not very familiar with SUN.

Thanks again...

Last edited by phapvn; 11-23-2001 at 02:24 PM..
# 4  
Old 11-28-2001
It seems you are using csh. In csh environment, you need to define your environment settings in.cshrc file. And use "setenv PS1 $pwd> " instead of "PS1="$pwd>"; export PS1" and run "source .cshrc" command after you edited the .cshrc file.

Good luck!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 Learning Path

Hello, Im fairly new to the UNIX world. Although I have taken Linux admin classes, it's not enough compared on what you do at your job. I just got a new job and they want me to learn Solaris, I got some good books and I started to read, I run the commands and try to follow some basics examples.... (7 Replies)
Discussion started by: sanz.rigo
7 Replies

2. Solaris

Solaris Boot Path

Hello, I have one query 1) how to find in Solaris 10 a) Boot Path b) Boot Disk name Pls help. (4 Replies)
Discussion started by: saurabh84g
4 Replies

3. Solaris

Solaris 10 + mpxio Path

Hi, I have an Oracle/Sun T3-2 Server with a duel SAS controller Fujitsu DX60 array attached. I have 2 x SAS HBA's in the T3-2. One HBA cabled to CM0 and one HBA cabled to CM1 of the array. The array is setup with one RAID GROUP and one VOLUME and one LUN In Solaris I can see one device... (4 Replies)
Discussion started by: general_lee
4 Replies

4. Solaris

Solaris 11 + PATH enviroments variables

Ok, this is the little annoying. I can't set up $PATH variable for all non root users on Solaris 11 express. oracle@DevelopBox01:/export/home/oracle$ cat /etc/default/login ........ # PATH sets the initial shell PATH variable #... (6 Replies)
Discussion started by: solaris_user
6 Replies

5. Solaris

Solaris 10 MPXIO doesn't recover path failure

I have been running some tests with solaris mpxio, dual-pathed to HDS SAN storage. When I take a path offline, Solaris recognised this and a path is shown as offline in luxadm display <device>. However, it does not recover on reinstatement of the path until I run cfgadm -al. Any ideas? Phil (3 Replies)
Discussion started by: UKPhil
3 Replies

6. Solaris

Solaris zones and PATH

Hi, I use a zoned solaris box, 5.10 Generic_118833-33, E2900. It is used for both a database and application. The databases are installated on one zone and then there are separate live, development and test application zones. There has been a requirement to install openldap on the... (1 Reply)
Discussion started by: jabberwocky
1 Replies

7. Solaris

Solaris 9 -- unable to set permanent PATH

Hi, I've read forums far and wide trying to learn how to append to my PATH in Solaris 9 and every time I think I am close I discover my system is not configured the same. Its so frustrating because this all stems from a new server I am trying to setup identical to the production machine. (Of... (5 Replies)
Discussion started by: thoraddict
5 Replies

8. Shell Programming and Scripting

PATH on solaris 8 (bash)

Im trying to setup my profile to export the PATH at login i had this in my .bashrc export PATH=/usr/local/bin:/usr/bin/ however when i login and type echo $PATH i only get bash-2.05$ echo $PATH /usr/bin: any ideas on what im doing wrong? ive used linux for years but this is my... (1 Reply)
Discussion started by: recklessop
1 Replies

9. UNIX for Dummies Questions & Answers

Solaris 10.0 PATH environment

Hello, I am using Solaris 10.0 and defining PATH on command line by the following way: #export PATH=/usr/sfw/bin.... ...but after restart, Solaris forgets what I defined and I need to re-define the same PATH environment. I want to to get defined my PATH environment during booting... (10 Replies)
Discussion started by: XNOR
10 Replies

10. UNIX for Dummies Questions & Answers

Solaris 8 Font Path ...

Hello, I feel a little initimidated to ask this question, but ... where am I able to find the font path (Solaris 8)? Bye Sysadv (1 Reply)
Discussion started by: sysadv
1 Replies
Login or Register to Ask a Question