Skip to main content

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.

Filter by
Sorted by
Tagged with
1 vote
2 answers
73 views

I'm encountering a confusing behavior with sudo and the which command. An executable is found when running which as a regular user, but not when using sudo which, even though it's accessible when ...
Just a learner's user avatar
1 vote
1 answer
139 views

In Ubuntu Desktop 24 $ grep VERSION= /etc/os-release VERSION="24.04.2 LTS (Noble Numbat)" When I open a Terminal window my $PATH has two copies of /snap/bin $ echo $PATH | sed -e 's/:/:\n/...
RedGrittyBrick's user avatar
1 vote
0 answers
73 views

I can't change the PATH at gnome-shell level so I can execute programs in my ~/bin or ~/.local/bin folder from my .desktop files. I am able to easily define other variables through ~/.config/...
Farid Cheraghi's user avatar
2 votes
0 answers
222 views

A fresh installed Ubuntu 24.04 system creates the first user account. That user account has by default the following $PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/...
paladin's user avatar
  • 284
2 votes
1 answer
1k views

I am trying to run a Python program from my command line on my Mac. (in this case: python3 Hello.py). For the life of me, I can’t get it to consider the PATH where the program is located. This is the ...
user61392's user avatar
0 votes
2 answers
67 views

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
40 views

I've built an executable which, for the sake of this question, is named foo. There is already a version of it at /usr/bin/foo, and I install a different version as /usr/local/bin/foo. My path has /usr/...
einpoklum's user avatar
  • 11.1k
1 vote
0 answers
107 views

I wish to rsync a directory structure from one remote server to another - using an Ansible playbook.yml. During the play, the ansible shell module's command for rsync fails. I know the reason - it's ...
RichWalt's user avatar
  • 111
1 vote
0 answers
40 views

I have installed Onboard (virtual keyboard) and it resides in /usr/lib/python3/dist-packages/Onboard/ I have made some changes to a few of the files (for a modified layout) which I want to quarantine ...
user2105311's user avatar
-2 votes
3 answers
375 views

I ran in terminal: echo $PATH the output is this: /usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/...
AEC0202's user avatar
4 votes
1 answer
1k views

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!...
Tim's user avatar
  • 1,104
1 vote
2 answers
136 views

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 ...
Anton Samokat's user avatar
0 votes
1 answer
396 views

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 ...
lukeflo's user avatar
  • 131
-1 votes
2 answers
198 views

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, ...
EE18's user avatar
  • 253
0 votes
1 answer
100 views

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 ...
Nero Vanbiervliet's user avatar
6 votes
3 answers
1k views

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 ...
midnite's user avatar
  • 613
0 votes
1 answer
382 views

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
1 vote
1 answer
370 views

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/...
Y. zeng's user avatar
  • 155
0 votes
1 answer
586 views

I had read that syslog is placed in a /var/log directory. But i can't open it in spite of the directory in PATH included. lm@debian:~$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/...
ant's user avatar
  • 27
0 votes
4 answers
451 views

I have split my PATH variable into few lines, in the file to make them easier to read because it's very long, as I had seen here. This is what I changed in my /etc/profile: # PATH="/usr/share/...
ant's user avatar
  • 27
8 votes
4 answers
2k views

I've added LaTeX to the PATH variable, but as I'm transferring my shell configuration to multiple computers, LaTeX is not installed on all of them. Besides the obvious consequence of being unable to ...
Zoltan King's user avatar
0 votes
1 answer
455 views

I have a simple shell script that I am running via cron. I am using it to perform a scheduled git pull operation (yeah, I know there are probably better methods, but this is another team's repository ...
Nick S's user avatar
  • 103
1 vote
1 answer
388 views

In my .profile I have PATH="$HOME/.local/lib:$HOME/.local/bin:$HOME/.node_modules/bin:$HOME/.cargo/bin:$HOME/local/bin:/usr/bin:$PATH" In my .zshrc I have miniconda path stuff (export PATH=&...
squirrels's user avatar
  • 131
2 votes
1 answer
8k views

I am trying to install SteamCMD on my Linux machine by using this guide. However, I ran into a problem after I created the user steam and installed SteamCMD. The whole error code is Command 'steamcmd' ...
JonasDenmark's user avatar
0 votes
0 answers
34 views

I'm new to linux, trying to switch over from Windows, and I could really use some help. This is actually my first time using a forum such as this so please forgive any errors I make. I'm using Linux ...
TT Radykal's user avatar

1
2 3 4 5
21