![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |