---------- Original Message -----------
From: Ted Gervais <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Sat, 11 Jan 2003 20:23:16 -0400
Subject: Re: Domain Name

> So, your hostname is : HOSTNAME=www.mm-vanecek.cc.   What does this show 
> you at a users prompt?  Is it 'WWW' ?
> Just curious. Because if I make my hostname able.george.smth   I am sure 
> the prompt will have it shortened up to just 'able'??
> 
> Maybe I am wrong but it seems that this is what happened to me before..
> 

[root@www root]# set

...

HOSTNAME=www.mm-vanecek.cc

...

PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"'
PS1='[\u@\h \W]\$ '
PS2='> '
PS4='+ '

...

[root@www root]#


Unless I am missing something, everything looks OK to me?

[root@www root]# hostname -s
www

[root@www root]# hostname -d
mm-vanecek.cc

[root@www root]# hostname --fqdn
www.mm-vanecek.cc


One of the problems one runs into on occasion is what one meass when they say
host or hostname. Do they want the host name, the domain name, or the fully
qualified domain name?  It is not always clear from the context and when one
should use what.

HTHs, Mike.



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to