HOSTNAME: environment variable or not?

Francois Ouellette fouellet-cpI+UMyWUv9BDgjK7y7TUQ at public.gmane.org
Fri Feb 18 20:02:30 UTC 2005


>> I'm confused.    Can someone enlighten me as to this bash nuance.
>
> hostname is a user command, not a shell variable. cat
> /proc/sys/kernel/hostname should yield the same result.
>
> Peter
> --

Why not use:
uname -n
instead?

 François Ouellette
<fouellet-cpI+UMyWUv9BDgjK7y7TUQ at public.gmane.org>
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list