Questions tagged [path]
PATH (all upper case) is the name of an environment variable on Unix-like operating systems, DOS, OS/2, and Microsoft Windows, specifying a set of directories where executable programs are searched for.
1,005
questions
4
votes
1
answer
931
views
Are there alternatives to alias I'm not aware of?
Today I started to notice weird behavior running a local command for a binary installed through Go. It seems the command is aliased, but consulting alias, it isn't.
The command buf somehow executes cp!...
0
votes
2
answers
63
views
How to modify $PATH globally
On my Debian server I use crontab to schedule a python code. The problem is: when I add a line like this:
6 9 * * * python /path/to/daily_task.py &> $HOME/out.txt
Not too surprisingly the ...
0
votes
2
answers
65
views
How to find files with find tool in system path ($PATH)? Or alternatively, How to specify starting-point directory for find as an expression?
For example, I want to find all symlinks that reference to particular binary in all directories that belong to system $PATH.
This can be successfully achieved with manual specification of all ...
1
vote
1
answer
82
views
How to set export PATH="$HOME/neovim/bin:$PATH" automatically [duplicate]
I'm on a Raspberry Pi 5 and I had to build from source to get the latest stable version. The program built successfully and I'm able to run it just fine. However whenever I open a new terminal I have ...
0
votes
1
answer
65
views
zsh custom completion file not sourced properly
I encountered a strange behaviour regarding ZSH completion for my custom script and need some ideas, what went wrong and how to solve it.
I have written a little custom script myscript and also ...
0
votes
0
answers
72
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, ...
-1
votes
2
answers
96
views
When does the shell search PATH?
I am a bit confused about when PATH is searched. I had thought that PATH was only searched when a simple filename is given as the first token on a line, as in
$ date
A question I am solving however, ...
0
votes
0
answers
216
views
How can I echo/print the environment files of a directory/path in a Jenkinsfile during a build?
In a Jenkins file, I have the following code:
#!/usr/bin/env groovy
....
def env_prod = 'prod.env'
def entrypoint = "${env.WORKSPACE}
The above is then combined like this:
${env.WORKSPACE}/$...
0
votes
1
answer
16
views
How to configure systemd $PATH to match user $PATH
I run a Next.js frontend on a VM using systemd. My workflow for making systemd services is usually:
Make the application work from the user shell (ec2-user in this case)
Write a unit file which does ...
5
votes
3
answers
2k
views
How does resolution of .. and . proceed in Linux systems?
I am reading Sobell's A Practical Guide to Linux Commands, Editors, and Shell Programming, 4e. Early on he talks about the . and .. and says that they are "synonymous with the pathnames" of ...
6
votes
3
answers
869
views
How can I temporarily set $PATH and . (source) a file?
Consider this. IFS is set only in the execution of read.
IFS='' read -r REPLY
However, if I do similar with . (source), the variable will be assigned and changed even after the execution of the line ...
0
votes
1
answer
726
views
How can I move a file to /usr/local/bin?
For some preliminary information, I am using WSL2. This is my first time using Linux.
I would like to install Typst which is similar to LaTeX.
I have used wget to download the file for my computer ...
0
votes
1
answer
115
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
2
answers
641
views
I have to run eval $(/opt/homebrew/bin/brew shellenv) every time I start my pc for the terminal to recognise it
I use the Fish shell on OSX and installed brew.
Now I notice everytime I start my mac I need to run the eval $(/opt/homebrew/bin/brew shellenv) command again to make it recognice brew.
I also noticed ...
1
vote
1
answer
226
views
A command in $PATH but can't run and "ln" link not work on Debian 12
The computer system is Debian 12. As needed to update my LaTeX, I tried the command sudo tlmgr update --all, which returned sudo: tlmgr: command not found. But which tlmgr returned /usr/local/texlive/...