The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Link type between working machine and server machine palash2k UNIX for Dummies Questions & Answers 1 05-22-2008 03:43 AM
more than one linux on same machine????? arunchaudhary19 UNIX Desktop for Dummies Questions & Answers 2 05-13-2008 10:25 PM
Changing the machine name gizmoking HP-UX 1 02-11-2007 07:56 AM
HP-UX is Machine or Architectural premnathk HP-UX 2 07-26-2006 04:54 PM
which machine big123456 UNIX for Advanced & Expert Users 2 09-13-2005 04:11 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-08-2002
Registered User
 

Join Date: Nov 2001
Location: Atlanta, GA
Posts: 31
machine name

Hey Guys,
This forum has been so helpful to me in the past.
Here is a problem I am facing ..
I have two separate control system(UNIX servers and unix machine) of which s/server are tied together on LAN.
Since both servers name are the same so whenever I tried to login from One unix server to other unix server it gets confusing as it displays the same name . Can some one tell me that say I tried login from server1 to server 2 is there a way to display on shelltool that it is servername1 rather then just servername.

this is a solaris 2.6 m/c.
I hope i am clear with the question.

tx a ton
Forum Sponsor
  #2  
Old 08-08-2002
Registered User
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
i think i understand, you want a custom prompt? you can customize your shell, i dont know how to do it in other shells but its not hard to learn, in bash you can do it by typing at the prompt:
PS1=$
and that will give you a prompt like this:
$
there are also other ways, you can have your own colors and you can have it display your user name, your host name, the time of day, how many processes are running, do 'man bash' for the other things to do, you can also save your prompt in your home directory in the file .bash_profile
heres the one i use, i wrote it my self although i got the whole idea of it from cygwin:

PS1="\[\033[1;32m\]\u@\H \w \d\[\033[0m\] \r
$ >"

hope that helps, if your not using bash you should be able to find pretty easily websites that can help you with customizing it on your own.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0