What is the difference between user variables and system variables?
What is the difference between user variables such as PATH, TMP, etc. and system variables? I accidentally deleted the user variable PATH. What am I supposed to do? 5 Answers 5
What is the difference between user variables such as PATH, TMP, etc. and system variables? I accidentally deleted the user variable PATH. What am I supposed to do? 5 Answers 5
I have written a script to retrieve certain value from file.json. It works if I provide the value to jq select, but the variable doesn’t seem to work (or I don’t know how to use it). #!/bin/sh #this works *** projectID=$(cat file.json | jq -r ‘.resource[] | select(.username==”[email protected]”) | .id’) echo “$projectID” [email protected] #this does … Read more
I have a piece of Java code which uses an environment variable and the behaviour of the code depends on the value of this variable. I would like to test this code with different values of the environment variable. How can I do this in JUnit? I’ve seen some ways to set environment variables in … Read more
I would like to change this Makefile: SHELL := /bin/bash PATH := node_modules/.bin:$(PATH) boot: @supervisor \ –harmony \ –watch etc,lib \ –extensions js,json \ –no-restart-on error \ lib test: NODE_ENV=test mocha \ –harmony \ –reporter spec \ test clean: @rm -rf node_modules .PHONY: test clean to: SHELL := /bin/bash PATH := node_modules/.bin:$(PATH) boot: @supervisor \ … Read more
What’s the simplest way to get an environment variable from a docker container that has not been declared in the Dockerfile? For instance, an environment variable that has been set through some docker exec container /bin/bash session? I can do docker exec container env | grep ENV_VAR, but I would prefer something that just returns … Read more
I have read several answers on how to set environmental variables on OSX as permanently. First, I tried this, How to permanently set $PATH on Linux/Unix? but I had an error message saying no such file and directory, so I thought I could try ~/.bash_profile instead of ~/.profile but it did not work. Second, I … Read more
It looks like the launchd.conf does not load my environment variable anymore. Has anyone else noticed that? Is there another solution to permanently set environment variables? 9 Answers 9
Update: The link below does not have a complete answer. Having to set the path or variable in two places (one for GUI and one for shell) is lame. Not Duplicate of: Setting environment variables in OS X? Coming from a Windows background where it’s very easy to set and modify environment variables (just go … Read more
I am using maven as build tool. I have set an environment variable called env. How can I get access to this environment variable’s value in the pom.xml file? 6 Answers 6
I just installed JDK in Ubuntu with sudo apt-get install openjdk-6-jdk command, after the installation where’s the Java bin directory located? And how can I set the environment path for that directory? I have little experience with Ubuntu, can anyone give some advice or suggest any good website for reference? 25 Answers 25