Link to home
Start Free TrialLog in
Avatar of ethanjohnsons
ethanjohnsons

asked on

changing prompt line display

With root account, it says,

mil:/ > 

1) there is an extra space on mil:/ >.  How do I remove the space so that it shows mil:/> w/o space?


2) if I su - oracle, it says something else than mil:/>.

What I want is

oracle@mil:/>

thx much
SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

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
ASKER CERTIFIED SOLUTION
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 ethanjohnsons
ethanjohnsons

ASKER

Great!
It takes care of it for Oracle user.

This still remains:

1) there is an extra space on mil:/ >.  How do I remove the space so that it shows mil:/> w/o space?
Hi,

- For ksh, put the following line in your .profile:

PS1="$LOGNAME@`uname -n`:\$PWD> "

- for csh, put the following line in .login or .cshrc:

 alias cd 'cd \!*; set prompt="$user@`uname -n`:$PWD>"'

Just remove it from the lines!
Hi,

- For ksh, put the following line in your .profile:

PS1="$LOGNAME@`uname -n`:\$PWD> "

- for csh, put the following line in .login or .cshrc:

 alias cd 'cd \!*; set prompt="$user@`uname -n`:$PWD>"'

Just remove it from the lines!
>> PS1="$LOGNAME@`uname -n`:\$PWD> "

I tried it, but still there is an extra space.......

thx
Hi,

I though you wanted to remove the space before the > sign only. Try:

PS1="$LOGNAME@`uname -n`:\$PWD>"
it is odd...
still there is a space..
Hi,

can till where the space come? can you post your prompt?
Hi,

Any luck?
still not working ......???
Hi,

Can you post the command you are using?
ok....  I got it now...

thx much