environment variables and hostname...
freebsd-questions-local at be-well.ilk.org
Tue Nov 4 06:20:21 PST 2003
"Xpression" <admin at atenas.cult.cu> writes:
> Hi list, there is a way to list or know the environment variables,
> in fact, I want to know if my hostname is stored in a variable, and all
> variables that maintain the system...thanks...
How to get the environment variable list depends on your shell.
On sh-style shells, it's usually "set".
On csh-style shells, I think it's "env".
But for getting your hostname, the canonical method is hostname(1).
More information about the freebsd-questions