Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

maybe this ?

DOMAIN=$( hostname )
share|improve this answer
add comment

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.