Computing.Net > Forums > Solaris > how can i change the Root name

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

how can i change the Root name

Reply to Message Icon

Name: speedy
Date: October 4, 2002 at 14:20:11 Pacific
OS: solaris8
CPU/Ram: 512
Comment:

i'm a newibe , all i want to know is how can i change the # sign when i telnet or loging to my unix machine , example ..
Sun Microsystems Inc. SunOS 5.8 Generic February 2000
You have new mail.
# pwd
/
# <----< i want to change this # to any other name i want , how ???
Thanks in advance



Sponsored Link
Ads by Google

Response Number 1
Name: jimbo
Date: October 4, 2002 at 23:36:17 Pacific
Reply:

The "#" value is can be changed by setting the PS1 variable in /etc/profile or the .profile / .login in your home directory. First, learn about the various shells available under Solaris before attempting to set this. I recommend doing a google search on "unix shells" or "setting PS1"

-jim


0

Response Number 2
Name: ASB
Date: October 7, 2002 at 09:58:22 Pacific
Reply:

In csh
add .cshrc file
set prompt = "`hostname`:$LOGNAME% "

In ksh
add .profile file
PS1="["`hostname`:'$PWD'"]> "
export PS1

ASB


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: how can i change the Root name

can't change vfstab file www.computing.net/answers/solaris/cant-change-vfstab-file/4053.html

can i get the system configuration www.computing.net/answers/solaris/can-i-get-the-system-configuration/3410.html

how can i read from optionMenu www.computing.net/answers/solaris/how-can-i-read-from-optionmenu-/1721.html