LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 09-07-2002, 02:52 PM   #1
sitrus
Member
 
Registered: Nov 2001
Location: Finland
Distribution: Gentoo 1.4
Posts: 50

Rep: Reputation: 15
naming your computer (hostname)


In redhat 7.3 how would I go on and change my computers name?
Is there some command to do it or what files do I need to edit?
It is user@localhost atm which doesn't look nice.
 
Old 09-07-2002, 02:54 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,121

Rep: Reputation: 121Reputation: 121
the hostname command changes it.. man hostname for more info.
 
Old 09-07-2002, 02:56 PM   #3
sitrus
Member
 
Registered: Nov 2001
Location: Finland
Distribution: Gentoo 1.4
Posts: 50

Original Poster
Rep: Reputation: 15
can I just do this without braking anything:
as root:
hostname name

and that would be it?
 
Old 09-07-2002, 03:07 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,845

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
Quote:
man hostname for more info
please read the provided documentation whenever possible, thanks.

Last edited by acid_kewpie; 09-07-2002 at 03:46 PM.
 
Old 09-07-2002, 03:09 PM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,121

Rep: Reputation: 121Reputation: 121
Quote:
Originally posted by sitrus
can I just do this without braking anything:
as root:
hostname name

and that would be it?
yes that would do it. man hostname like mentioned before and as acid clarified gives more options and information regarding in changing your hostname on your system.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Naming My Computer and stuff mst700 Linux - Newbie 23 07-22-2004 09:02 PM
mail server the naming naming convention problem kashan Linux - Newbie 0 07-16-2004 02:08 PM
Hostname/computer name Brad3d Linux - General 1 01-12-2003 02:02 PM
Hostname of computer Kaiser_Sose Linux - Networking 2 02-04-2002 05:45 PM
Hostname of computer Kaiser_Sose Linux - Software 3 01-26-2002 08:22 PM


All times are GMT -5. The time now is 03:29 AM.

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