Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Ubuntu 12.04 LTS Desktop edition

I want to use environmental variable for currently joined domain just like I use $USER to bring current user. From what I read there are few variables for that, but none seems to work for me. I also cannot see those variables as active when I type env command.

I would appreciate a solution on how to enable that variable or how to make my own variable by pulling current domain name from the system somehow.

share|improve this question

maybe this ?

DOMAIN=$( hostname )
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.