0

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.

2

maybe this ?

DOMAIN=$( hostname )

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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