LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to find a name of Linux box! (https://www.linuxquestions.org/questions/linux-software-2/how-to-find-a-name-of-linux-box-86688/)

ardi76 08-28-2003 01:52 PM

How to find a name of Linux box!
 
Hi, everyone!
I have a newbie question:
How to find a name of Linux box?
I'm installing a samba server and I need a name of linux box to add to the other w2k box!
Thx in advance!

DrOzz 08-28-2003 01:55 PM

do you mean this name?
cat /etc/sysconfig/network | grep HOSTNAME

Khabi 08-28-2003 02:29 PM

To find the name for SMB its in the smb.conf file. there is a entry that says "netbios name=" thats where you can find it ;)

Mathieu 08-28-2003 02:55 PM

At the command line, type: hostname

ardi76 08-28-2003 03:07 PM

Thx guys, the command hostname showed me the exact name like the w2k machine when connected the linux machine on network!
I really do not understand why when I connect to Linux box like a root the command in shell is like this
"linux:/" and this is the machine name. I was expecting more the invitation like "root:/"

thx again!


All times are GMT -5. The time now is 02:52 AM.