Skip to main content

All Questions

2 votes
2 answers
4k views

Where is the PATH variable set when I start a Bash shell with env -i bash?

I know that environment variables are set through reading or executing several configuration files, such as /etc/environment, /etc/profile, ~/.profile, ~/.bashrc, etc. But when I was reading this ...
jack_lv's user avatar
  • 23
4 votes
1 answer
6k views

Set environment variable for all login scenarios

I'm using Microsoft's dotnet in linux (ubuntu), and it has dial-home telemetry. I want to disable it, and the instructions say: The .NET Core tools collect usage data in order to help us improve ...
lonix's user avatar
  • 1,945
0 votes
1 answer
6k views

After starting terminal always getting bash: export: "path" not a valid identifier [closed]

I was trying to install Angularjs through the Ubuntu terminal and to have proper install, I'd to change the path. Maybe during these time I've messed up with the path. After this, when I'm starting ...
Mamun's user avatar
  • 111
0 votes
1 answer
1k views

Unable to modify LD_CONFIG_PATH from script

I'm trying to write a script that adds some path to LD_CONFIG_PATH in order to not get "blabla.so not found". The problem is that my script is able to modify its own context (via export) but it doesn'...
Alex Zhukovskiy's user avatar
8 votes
1 answer
33k views

Set persistent environment variable for all users

I am running Ubuntu on a local PC with the following linux distro/kernel: $ lsb_release -a >> ubuntu 16.04.3 LTS $ uname -r >> 4.10.0-33-generic I have a python (3.5) script which calls ...
xibalba1's user avatar
  • 183
0 votes
1 answer
492 views

Parameters in bash $PS1 variable

Between the various parameters that can be included in the bash PS1 variable, \w expands the current working directory, with $HOME abbreviated with a tilde (uses the value of the PROMPT_DIRTRIM ...
BowPark's user avatar
  • 5,085
2 votes
2 answers
6k views

An environment variable with equal sign and && operator

I want to create an environment variable for this command: git --git-dir= echo test-folder/.git/ add Steps-to-follow.txt && git --git-dir= echo test-folder/.git/ commit This is a relevant ...
Avineshwar's user avatar
1 vote
2 answers
1k views

Do programs source .bashrc when run?

I append to my PATH environment variable in my .bashrc file (Ubuntu v12). I also have a service (Atlassian Bamboo) that relies on the modifications to PATH. When I restart the service (which runs as ...
void.pointer's user avatar
1 vote
1 answer
187 views

Who is setting http_proxy?

On an Ubuntu system with bash as the default shell for the interested user, the http_proxy environment variable is set to a specific value in a fresh GNOME Terminal. The .bashrc file for this user ...
Manuel Selva's user avatar
  • 3,094
2 votes
3 answers
431 views

Is it a good idea to put environment variables to /usr/local/bin

I'm using aws cfn to start ubuntu instances, and I need to pass variables provided in cfn launch script to the scripts on the instance. For example, I may pass "db-server=db-2.domain.com" and there is ...
Fluffy's user avatar
  • 2,087
3 votes
0 answers
238 views

tab-expansion and “./” bash shell [closed]

Maybe someone here would be able to help me out. Have installed Ubuntu 12.04 LTS (kubuntu) on two machines. The .bashrc and .bash_profile files are identical as the file structures on each machine is ...
adeliefan's user avatar