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.

1 vote
2 answers
85 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
3 votes
1 answer
508 views

So I'm running a Devuan (but for these purposes it could be Debian as well as most other distros, I guess...) and somehow, when I enter the root shell in a graphical terminal via su, the PATH variable ...
polynomial_donut's user avatar
1 vote
1 answer
161 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
30 views

How can I get Bash to list the first (or all) commands that match a given glob? For example, let's say I'm looking for a command called cat. I can do type cat and it will search $PATH and tell me ...
k314159's user avatar
  • 533
1 vote
0 answers
87 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
1 vote
3 answers
189 views

Bash has the built-in command "type", which indicates how each argument would be interpreted if used as a command name, for instance: $ type myfunction myfunction is a function myfunction () ...
ocroquette's user avatar
2 votes
0 answers
247 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
4 votes
1 answer
235 views

New Linux user here, freshly transitioned from Windows 10 to Fedora 41. Lot's of experience with many OS's, including various *nix and Unix-like file systems. I have a standard practice of using ...
Cornelius Dol's user avatar
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
-1 votes
1 answer
228 views

What is the correct way to add something to the $PATH variable on macOS? For example, I can do it in .zshrc: path+=$HOME/foo/bar ...but it seems in such a case the modified path will be available for ...
jsx97's user avatar
  • 1,397
0 votes
2 answers
77 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
3 votes
2 answers
1k views

If I have a command-line utility foo installed by some program, and it is not added to $PATH, and I want to have an easy way to use it, it seems there are three options: create a symbolic link, ...
jsx97's user avatar
  • 1,397
0 votes
0 answers
49 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 votes
2 answers
362 views

My OS info: uname -a Linux hello 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux howdy already installed: sudo apt list howdy Listing... Done howdy/now 2.6.1 all [...
showkey's user avatar
  • 611
1 vote
0 answers
131 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

15 30 50 per page
1
2 3 4 5
69