Workgroup of local machine

Hi Guys,

How to find the Workgroup/Domain name of my local machine in unix?

Please suggest some link.
Thanks.

sunil.

Unix AFAIK works with hostnames and domains.
To find the domain from which you are part of you can use:

$ hostname 

from hostname(1) manpage:

This command works on FreeBSD but i suppose it should work on other systems too.

all the best,
v

Thanks mtx for reply.

Now I m able to find the Domain/Workgroup name of my machine.

sunil.

you're welcome. :wink: