Link to home
Start Free TrialLog in
Avatar of rohini_the_babe
rohini_the_babe

asked on

Simple Questions on setting environment variables

1)

How can I set the PS1 variable to appear as follows?

username@hostname/PWD

A cd shud change the PS1 value

Using Korn shell on Solaris 9

2)

I dont want to type in commands frequently. I want to reuse the command i just used before. I want to accomplish this using the up and down arrow keys. How do I do this?

3)

When I log in as root it puts me on /? How do i create a home directory for root? I dont want it to be /home/root. Instead I want it to be /root.

4)
Is there any way of setting the PS1 varaible and all others globally instead of having a profile being copied to every account. I mean when I create account using  a script Is there any way that I can  avoid copying the .profile stuff from a protoype account and still have the PS1,PATH,MANPATH set?

5)
On one of the servers I log to I see that df -k shows me that /dev/rdsk/c#t#d#s# is mounted on /export/home/sales. When I log in and type pwd it says
/home/sales/rohini. Where did the export go? what is its role?

6) Does the guys who answer Q's get paid thru the points they earn?

Thanks a lot,
Rohini.
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yuzh
yuzh

???
Avatar of rohini_the_babe

ASKER

Sorry I forgot to accept this answer. I will be glad if you can elaborate more up on the Home directory stuff.

My home is not under /. I do have a separate /export/home. So do you mean to say that i shud create a /export/home/root and edit the root entry in /etc/passwd file to /export/home/root.
What I mean is that IF the /export/home is in the / (root) filesystem, THEN you can use /export/home/root and edit the root entry in /etc/passwd file to /export/home/root

Cheers!

yuzh