Skip to main content

All 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 ...
notacorn's user avatar
  • 101
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, ...
wido's user avatar
  • 1
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? ...
Matteo's user avatar
  • 73
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 /...
kjo's user avatar
  • 16.2k
-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 ...
El Hocko's user avatar
  • 181
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 /...
midrare's user avatar
  • 153
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?
Vad Sim's user avatar
  • 205
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 ...
mesr's user avatar
  • 419
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/...
perelium's user avatar
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="$...
php_nub_qq's user avatar
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?
mohsentux's user avatar
  • 217
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 ...
alx - recommends codidact's user avatar
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: ...
Jortstek's user avatar
  • 273
-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/...
p2hari's user avatar
  • 99
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, ...
flobue's user avatar
  • 51

15 30 50 per page
1
2 3 4 5
10