Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2004
    Location
    Vancouver Canada
    Posts
    1

    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
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    2 key points

    1st
    modify /etc/hostname

    echo qub333rules > /etc/hostname

    --and--

    modify /etc/hosts

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

    Formerly Known as qub333

  3. #3
    Content Team tylerwylie's Avatar
    Join Date
    Apr 2004
    Posts
    120
    Or just open up that file with a handy-dandy text-editor and change it.

  4. $spacer_open
    $spacer_close

Posting Permissions

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