Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2004
    Vancouver Canada

    Changing host as in "root@localhost"

    My terminal is tarting up showing : [alex@S0106000795d9de42 alex]$
    and it used to show [alex@localhost alex]$
    even after SU it displays :
    [root@S0106000795d9de42 alex]#
    How can I change it back to LOCALHOST ???
    Will be very thankful for any help.

    Best of Luck Alex

  2. #2
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Lat: 39:03:51N Lon: 77:14:37W
    2 key points

    modify /etc/hostname

    echo qub333rules > /etc/hostname


    modify /etc/hosts

    echo qub333rules <tab> > /etc/hosts
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  3. #3
    Or just open up that file with a handy-dandy text-editor and change it.


Posting Permissions

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