Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 11
    printenv $env_name Commented Dec 28, 2015 at 10:30
  • Or unix.stackexchange.com/questions/222487/… Commented Dec 28, 2015 at 20:13
  • See here for most awesome answer by awesome dude -> unix.stackexchange.com/questions/229849/… Commented Feb 14, 2017 at 5:54
  • in this case, printenv GOPATH meaning you can alias such as alias p='printenv' and then it's just p GOPATH. Get any environment variable by just typing p instead of the more clumsy echo $... Commented Dec 12, 2017 at 23:17