All Questions
Tagged with environment-variables path
136 questions
0
votes
2
answers
37
views
How to add a path to PATH that involves a variable that needs to be evaluated?
say I want to add the current directory to path. I need to run echo "export PATH=$PATH:$(pwd)" >> ~/.bash_profile.
this expands $(pwd) like I wanted, but it also expands the $PATH ...
0
votes
0
answers
112
views
"Run dialog" BOX is not recognizing custom commands
I completely switched to linux a week ago, I modified my windows to run commands on "Execute" box (WIN + R) and thats VERY handy, for such things like open folders in specific locations, ...
0
votes
1
answer
257
views
Which binary is used (per specification) if there are multiple ones with the same name at different locations in PATH?
If two different directories in the PATH environment variable both contain a binary with the same name (but slightly different behavior), are there specifications/guarantees on which one will be used?
...
0
votes
1
answer
217
views
Conventions for the PATH variable's value
I am looking for best practices, or at least conventions, for the PATH variable's value.
In particular, I would like to know
is there any preferred/recommended ordering for the /bin, /usr/bin, and /...
-3
votes
2
answers
61
views
Is there an app, where I can add things to the path variable permanently?
I know it's fairly easy with simple terminal commands but I still want a program where I say
e.g.,:
> addtopath "~/bin"
and it does it permanently without me having to edit some config ...
1
vote
0
answers
554
views
How to append to system-wide `$PATH` in MX Linux?
I want to append to the system-wide $PATH. How can I do this in MX Linux (MX-22.2.1_x64 ahs)?
To be totally clear:
I want to append to the existing $PATH, not set an entirely new one. (So editing /...
6
votes
2
answers
2k
views
How do I add to PATH a directory with colon (":") in it?
Here I found the file with ..:; name. mkdir '..:;' worked fine. But in PATH directory names are split by :. How to add this directory to PATH?
3
votes
1
answer
643
views
Why is executable found without a full path despite its location not in search path?
This question is about understanding the reason(s) behind a perceived inconsistency between documented and actual behavior when calling an executable through sudo. When the secure_path option is ...
0
votes
1
answer
298
views
A script /etc/profile.d/{script1}.sh doesn't work correctly
cat /etc/profile.d/atlassian-plugin-sdk.sh
export PATH=$PATH:/opt/atlassian/plugin-sdk/bin
ls -al /etc/profile.d/atlassian-plugin-sdk.sh
-rwxr-xr-x 1 root root 48 Apr 17 21:36 /etc/profile.d/...
5
votes
3
answers
4k
views
Wildcard in PATH (environment variable)
I have a bunch of apps installed locally in my home directory. In order for them to be globally available I add them to PATH in .bashrc:
PATH="$PATH:/home/user/apps/app1/bin"
PATH="$...
12
votes
3
answers
12k
views
which one of these paths has the priority: /usr or /usr/local
I want to install aria2c manually by copying it to /usr/local/bin since I installed aria2c with apt on /usr/bin
which one of those is going to be executed if I type aria2c?
0
votes
0
answers
738
views
doas doesn't run a /usr/sbin binary
I'm using Debian/GNU/Linux Unstable,
and I was trying doas for the first time today, with the following simple config file:
$ doas cat /etc/doas.conf
permit persist alx as root
While it worked for ...
1
vote
1
answer
635
views
Why not prepend user directory to PATH?
For user scripts, the usual advice is to append their directory to $PATH in one's .profile:
PATH="$PATH:$HOME/.myscripts" # or .bin or whatever
Apparently that is safer than prepending it: ...
-2
votes
2
answers
462
views
What is the right format of PATH variable
I have a macOS and this is the output I get when I do echo $PATH
usr/local/opt/avr-gcc@8/bin:/Users/hari/google-cloud-sdk/bin:/Users/hari/.edgedb/bin:/Library/Frameworks/Python.framework/Versions/3.9/...
1
vote
3
answers
1k
views
What are possible causes to the command not found error, other than the PATH variable?
What are some possible causes, that a command could not be found in Linux? Other than it is not in the PATH?
Some background info:
When trying to execute pdflatex from vscode, I got some troubles, ...