Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-11-2005, 10:51 AM   #1
Registered: Mar 2005
Distribution: Ubuntu 14.04 LTS 64-bit
Posts: 127

Rep: Reputation: 15
How to I find my machine name (in SuSE 9.2)?

This has got to be my dumbest question. I'm trying to supply a machine name do I can make a command alias in my sudoers file. I have no idea how the name is made, what file it's stored in, or whether I have to name the computer myself (or how I do that). My computer is not networked, just has a dialup modem.
Old 07-11-2005, 11:11 AM   #2
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
I have no clue what you are trying to do, but your computers name is stored in /etc/HOSTNAME. Changes can be applied via 'YaST -> Network devices -> Network Card -> Change -> Edit -> Host name and DNS', or manually. On a standalone PC, you have to name it yourself, some systems receive the name via DHCP.
Old 07-11-2005, 01:49 PM   #3
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Actually, in SuSE, the /etc/HOSTNAME file only contains the first two parts of a three part hostname. /etc/hosts contains the entire three part name.


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
how do you find and change machine name Doug.Gentry Mandriva 2 03-31-2005 08:37 AM
how to find out machine name?? samills70 Linux - Newbie 2 05-28-2004 04:42 AM
How do I find out what architecture a machine has? amp2000 Linux - General 11 12-05-2003 05:42 AM
I can't find a compiler on my machine mjkramer Linux - Newbie 8 10-13-2003 12:24 PM
I cant find linux machine in win2k godwin_73 Linux - Networking 0 11-28-2001 06:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:21 PM.

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