Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-12-2004, 01:09 PM   #1
LQ Newbie
Registered: Oct 2004
Posts: 25

Rep: Reputation: 15
hostname problem

hey guys,
I got quick question regaring my linux termianl window

i get the following host name: srahn-lt instead of localhost. Does anyone knows why this doing this or how to change that back localhost.
please some one

[suresh@srahn-lt suresh]$

Old 10-12-2004, 01:27 PM   #2
Registered: Apr 2004
Location: Oxford, UK
Distribution: Ubuntu, Debian, various
Posts: 230
Blog Entries: 5

Rep: Reputation: 33


PS1='[\u@localhost \w]$'

Or read the manpage for hostname if you actually need to correct your hostname.
Old 10-12-2004, 11:40 PM   #3
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
try this,

#vi /etc/sysconfig/network

HOSTNAME=<type here your hostname>

and reboot ur system !



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hostname problem c_dave1 Linux - Networking 8 07-11-2005 11:38 PM
Hostname - Problem ??? aurelio26 Linux - Newbie 3 10-04-2004 12:06 AM
hostname problem jnewing Red Hat 1 06-01-2004 06:23 PM
hostname problem bm1 Linux - Networking 11 05-12-2003 02:14 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM

All times are GMT -5. The time now is 07:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration