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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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!
- 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!
- 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!
ASKER
>> PS1="$LOGNAME@`uname -n`:\$PWD> "
I tried it, but still there is an extra space.......
thx
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>"
I though you wanted to remove the space before the > sign only. Try:
PS1="$LOGNAME@`uname -n`:\$PWD>"
ASKER
it is odd...
still there is a space..
still there is a space..
Hi,
can till where the space come? can you post your prompt?
can till where the space come? can you post your prompt?
Hi,
Any luck?
Any luck?
ASKER
still not working ......???
Hi,
Can you post the command you are using?
Can you post the command you are using?
ASKER
ok.... I got it now...
thx much
thx much
ASKER
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?