Find the answer to your Linux question:
Results 1 to 3 of 3
I want to change the profile at the prompt, eg Now when I ssh or login at console i get root@localhost, i want to change it to root@pxe.KK.au.premiere.com How do ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    9

    How do you change the console prompt?

    I want to change the profile at the prompt, eg

    Now when I ssh or login at console i get root@localhost,

    i want to change it to root@pxe.KK.au.premiere.com

    How do I do this? I edited the /etc/sysconfig/network and still no change, what am I missing?

    Regards

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    452
    if you are using bash, see "man bash" under "PROMPTING" around line 1947
    for a complete discussion. In my .profile, PS1='\h/\u\w \033[1;45m\$\033[0m '
    the sun is new every day (heraclitus)

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Posts
    9
    Quote Originally Posted by tpl View Post
    if you are using bash, see "man bash" under "PROMPTING" around line 1947
    for a complete discussion. In my .profile, PS1='\h/\u\w \033[1;45m\$\033[0m '
    That worked flawlessly thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...