Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [path]

The concept that software will look in several folders, in the order stored as the path, to find which programs should be allowed to run.

Filter by
Sorted by
Tagged with
1 vote
1 answer
71 views

How to find out what is changing my PATH?

OS: 14.4, shell: zsh, additional software: homebrew, vim, oh-my-zsh, iTerm2, et cetera One day I noticed that my PATH contains strange part: /opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/...
Nikki Chumakov's user avatar
5 votes
3 answers
3k views

Did this command do anything to my Operating System?

I was just trying to type in this command: echo "export PATH=$PATH:~/Desktop/nand2tetris/tools" >> ~/.zshrc ; source ~/.zshrc But I got to echo "export PATH=$PATH:~/Des before I ...
AsianDora's user avatar
2 votes
0 answers
103 views

How does a Homebrew-installed Emacs get the same PATH variable as set in the shell?

I am running homebrew on an M2 Mac mini under macOS Ventura. I use Emacs.app from the railwaycat/emacsmacport/emacs-mac cask and when I check in Emacs the inherited PATH environment variable, Emacs ...
halloleo's user avatar
  • 1,417
0 votes
1 answer
44 views

Can I remove % from a $PATH definition in zsh?

issue: ping is not found: zsh: command not found: ping /sbin/ping -c 3 192.168.1.114 returns the expected result echo $PATH returns: /Users/user/Scripts:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin% ...
gatorback's user avatar
  • 3,111
1 vote
1 answer
207 views

iterm2 to honor /etc/paths with bash [duplicate]

I use Bash as my preferred shell, but the PATH values are different in my iterm2 and my Terminal (which honors my /etc/paths). How to have iterm2 to honor /etc/paths with the bash shell? More details: ...
xpt's user avatar
  • 405
1 vote
1 answer
200 views

Convert absolute paths into relative path for rsync

I try to sync to folders, but with exceptions made by tags. So I learned, that I need different commands to build up that job. First I create a file of excluded files, which have a tag in orange or ...
Peter Silie's user avatar
-1 votes
1 answer
99 views

Where does macports add itself to PATH?

I've just installed macports. The postflight script has somehow modified my PATH variable so that the macports binaries now take precedence in ways I don't like. For example, it has downgraded rustc. ...
Cornelius Roemer's user avatar
1 vote
3 answers
408 views

Asterisk in file path in MacOS Ventura

Recently I have encountered an Apple binary running on my system via Little Snitch which has an asterisk in the file path. This is not the first time I've encountered this but it is the first time I ...
dmg15's user avatar
  • 126
4 votes
1 answer
508 views

Why does iTerm no longer source ~/.bash_profile, but Mac Terminal does?

This must be something very simple, but I can't figure it out. Until recently iTerm always properly sourced .bash_profile which has: Sellotape:~ mnewman$ cat .bash_profile ## .bash_profile - Make sure ...
Buadhai's user avatar
  • 499
1 vote
2 answers
428 views

How to add Google Chrome to path?

I want to add Google Chrome to path under the google-chrome name so that I can execute the following command: google-chrome --version. First I tried with: sudo ln -s /Applications/Google\ Chrome.app/...
mångata's user avatar
  • 111
4 votes
0 answers
2k views

How to set PATH for all applications on a per-user basis?

I'm looking for a way to set the PATH environment variable for all applications that I (and only I) run under macOS (version 14 / Sonoma at the time of writing.) That sounds like it ought to be ...
Eric Anderson's user avatar
0 votes
1 answer
173 views

`ENOENT: no such file or directory` error when installing ReactJS in M1 Mac

I tried to install ReactJS on an M1 Mac but encountered this error: prabhav@Prabhavs-MacBook-Air ~ % node --version v18.17.1 prabhav@Prabhavs-MacBook-Air ~ % npm --version 9.6.7 prabhav@Prabhavs-...
冯宇乐's user avatar
1 vote
0 answers
108 views

Why is mac able to find some bin in PATH but not others?

I recently upgraded Python but encountered some strange behavior: I have both /opt/homebrew/bin and /usr/local/bin in my PATH variable. python was in both these directories. When I removed the one in /...
ron burgundy's user avatar
0 votes
2 answers
218 views

I would like to preempt a command on my mac (specifically, Keytool)

I need, when generating Java keystores (which I do frequently), to generate them under the Java 8 version of Keytool. If I use the keytool in the default Java version, they are incompatible with the ...
hbquikcomjamesl's user avatar
0 votes
1 answer
469 views

Setting different `PATH` variable for different profiles in iTerm2

I have the default PATH variable as set in the .zshrc file. I am looking for an elegant and simple way to add more directories to the PATH per different profiles in iTerm2. What would be the best way ...
GeorgeIrwin's user avatar
1 vote
1 answer
338 views

Paths to UI elements in System Settings for Applescript

Is there a good resource for learning how to generate paths to UI elements in System Settings for AppleScript? Specifically, I am trying to access the keyboard scrolling button in the Accessibility ...
Mark Kupke's user avatar
2 votes
1 answer
586 views

Why are all my new installations on my M1 Mac (zsh terminal) not being installed to my PATH and instead to /Users/myusername/Library/?

I just recently got a M1 Mac which uses the Z-shell (zsh) terminal. All my new installations that I run through my terminal (such as on homebrew, npm, etc.) are installed to /Users/myusername/Library/ ...
user22070661's user avatar
1 vote
0 answers
72 views

Remove unwanted entries in $PATH [duplicate]

I have multiple entries in my $PATH. I learned a ton about the path environment variable yesterday, but prior that I must have added some entries multiple time, or something. I have searched for this ...
Superonov's user avatar
2 votes
2 answers
506 views

Applescript - What's the path of this "button" in System Preferences (Function Keys) / How to refer to Function Keys button in code

I've been trying to write a script in AppleScript for making enabling and disabling Function Keys easier for me, but I cannot find the path for the Function Keys "button" in System ...
Fanni Gao's user avatar
0 votes
0 answers
130 views

Where is the cache/temp storage for files being imported to the photos app?

I airdropped 90 photos over to my laptop (running Ventura 13.1) to the photos app, and on seeing them in the photos app, I absent-mindedly removed them from the iPad. Before I was able to click Import ...
Robert A Aqua's user avatar
16 votes
1 answer
4k views

Invalid entries in $PATH after upgrading to macOS Ventura 13.3 [com.apple.security.cryptexd]

After upgrading to macOS Ventura 13.3, when I open Terminal app, I notice these 3 entries in my $PATH variable that were non-existent directories: /var/run/com.apple.security.cryptexd/codex.system/...
Manu Manjunath's user avatar
1 vote
1 answer
2k views

no such file or directory when starting terminal

I'm not a power user and recently installed Homebrew and Powershell on my MacBook running Ventura 13.1 to control my new T-Mobile Home Internet Gateway and since I get the following when running ...
Nora Velp's user avatar
1 vote
1 answer
555 views

How change $PATH for RStudio

I am trying to set my $PATH variable for RStudio. Somehow it just ignores the entry in my ~/.Renviron. I added this lines: PATH=$PATH:/opt/R/arm64/gfortran/bin R_MAX_VSIZE=100Gb if I run Sys.getenv(&...
gernophil's user avatar
  • 349
0 votes
1 answer
311 views

MacOS on M1 kills every ping

I'm finding I'm unable to ping addresses like I'm used to on my M1 Macbook Pro. MacOS just kills the process immediately. When I run the process from /sbin, it works fine. I can see /sbin in my PATH. ...
And Finally's user avatar
1 vote
1 answer
712 views

Why the `/etc/paths` do not work?

I add my php path into the /etc/paths file: markleo@mba ~ % cat /etc/paths /usr/local/bin /usr/bin /bin /usr/sbin /sbin # php /Applications/phpstudy/Extensions/php/php/bin # A modificação da versão ...
samoye's user avatar
  • 23
1 vote
1 answer
194 views

ghost files—now you see 'em, now you don't?

Ghost files—I don't know what else to call them. I have an external drive which the system refuses to make writable. Most of the files on it are already on my internal drive. To save time and space, ...
WGroleau's user avatar
  • 5,065
0 votes
1 answer
872 views

Jenkinsfile doesn't recognize local bin

I am trying to run fastlane commands using Jenkinsfile on Mac mini. If I run /usr/local/bin/fastlane -v it shows the correct output. but if I just try with fastlane -v then I get fastlane: command not ...
rp346's user avatar
  • 133
3 votes
0 answers
841 views

What path is needed to run homebrew cask installed apps from the command line?

I installed Thunderbird using homebrew cask. I am using Intel Processor. /Applications/Thunderbird.app/Contents/MacOS/thunderbird -whatever How can I use the command line options of thunderbird on ...
Porcupine's user avatar
  • 131
1 vote
1 answer
3k views

youtube-dl gives errors: "command not found"

I installed youtube-dl successfully via homebrew but cannot seem to invoke the program at all. Here are the commands I tried: > man youtube-dl No manual entry for youtube-dl > type -a youtube-dl ...
H3R3T1K's user avatar
  • 453
6 votes
2 answers
13k views

OpenVPN Connect profile path

I'm trying to find the path to imported profiles in openvpn connect app in macos. I tried /Users/<user>/Library/Application Support/OpenVPN Connect/ but nothing there. I'm using OpenVPN ...
Rima's user avatar
  • 173
11 votes
2 answers
2k views

Where are the system folder icons located in Big Sur / Monterey?

In Catalina and earlier, the path for Finder folder icons (e.g. Applications, Desktop, Downloads, Developer…) was: /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources But as of Big Sur ...
isametry's user avatar
  • 131
1 vote
1 answer
164 views

On Monterey Finder - Is the Path Bar selection of a parent folder single-click or double-click?

This is a Path Bar at the bottom of a Finder Window in MacOS Monterey. From what I remember to go to a parent folder you would double-click the folder in the Path Bar. This is consistent with how you ...
hawkeye's user avatar
  • 1,873
2 votes
0 answers
470 views

Where should I put the PATH to my custom scripts folder? [duplicate]

I have a folder with my handy shell scripts, called bin, and placed in my home: /Users/<my_home>/bin Every time I open a terminal (be it with the Terminal app, or with iTerm, or from VS Code, ...
DeltaIV's user avatar
  • 408
0 votes
0 answers
239 views

Automator Apple Script sometimes work, sometimes doesn't

I've wrote (and collected from different places on the internet) an Automator Apple Script to share network drive locations between Windows and Macs. It works that all mac users can rightclick a file ...
jona's user avatar
  • 241
2 votes
1 answer
2k views

homebrew installed librdkafka to /opt/homebrew/Cellar/ instead of /usr/local/Cellar/

I'm on Mac Monterey (Apple cpu) and I've installed librdkafka: https://github.com/edenhill/librdkafka using homebrew. It has installed to /opt/homebrew/Cellar/librdkafka/ However, online sources ...
intrigued_66's user avatar
0 votes
1 answer
720 views

Meaning of when a process in "ps -el" output does not show full path to executable?

On Catalina v10.15.7, I am using: ps -el to investigate all running processes. I have 430 running processes. Ignoring those associated with open terminals, I'd like to understand why these 6 ...
davewp's user avatar
  • 127
3 votes
3 answers
4k views

Apple Silicon M1 Chip - Homebrew installer installing into Intel folder

I am following the official Homebrew installation guide correctly and running: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" According to ...
ajmedway's user avatar
  • 141
3 votes
1 answer
3k views

zsh does not find script in PATH while bash does (echo $PATH is the same)

I am trying to execute a script using just its name. So naturally I added it to the PATH variable. But it seems zsh does not care. If I switch to bash everything works fine. The following terminal ...
Felix B.'s user avatar
  • 255
2 votes
1 answer
14k views

Command not found: /usr/local/bin/zsh

I uninstall homebrew on a Mac Mini M1 to reinstall it. After opening a terminal to run the install shell script, the terminal produces the following output and becomes unusable. [Command not found: /...
armand's user avatar
  • 123
1 vote
1 answer
33 views

Is ploticus working with macos m1 ; how to put it in the path?

I'm willing to use ploticus (mostly for basic graph) ; yet I don't if it's still working out the box for macos (m1) since I have not been able yet to get relevant information ; if still working, I can ...
Gilles's user avatar
  • 53
3 votes
1 answer
2k views

permission denied to add current directory to path

I am trying to install NGC CLI on company's Mac following the instructions given here. https://ngc.nvidia.com/setup/installers/cli When I try to run the third command there, which is echo "export ...
Reza Afra's user avatar
3 votes
2 answers
1k views

Copy relative file path in Finder

How can I copy a file path in Finder without the username (i.e. make it a relative file path)? In our office we're working with Dropbox as our file server. Meaning we all have a directory /User/...
dodo's user avatar
  • 31
0 votes
1 answer
2k views

Why does the shell run the incorrect Python?

I am coming from an Ubuntu environment, and since you can set Python 3 to be the first-class Python in Ubuntu (as in, you call python and you get Python 3), I wanted to do the same on the Mac I've ...
k-den's user avatar
  • 101
16 votes
1 answer
5k views

Homebrew PATH set in .zshenv is overridden

Following this answer about best practices for configuring Zsh, I wanted to move my Homebrew PATH initialization to the ~/.zshenv file: eval "$(/opt/homebrew/bin/brew shellenv)" This ...
rgov's user avatar
  • 589
8 votes
2 answers
23k views

What is xcrun and why would updating to macOS Mojave cause it to go missing? [duplicate]

I just upgraded my (Intel based) MacBookPro to macOS Mojave and now when typing git pull in a (Bash) shell, I now get the message: xcrun: error invalid active developer path (/Library/Developer/...
intel_chris's user avatar
20 votes
3 answers
3k views

What are the downsides of putting GNU coreutills first in ${PATH}?

I'm coming from Linux to macOS, and many of my scripts assume GNU versions of the utils provided in GNU coreutils. I could just put the GNU coreutils bin directory in earlier in $PATH than /bin. Is ...
Tom Hale's user avatar
  • 331
0 votes
1 answer
153 views

What is changing my $PATH?

When I open a new Terminal, the $PATH is not what I set in .zshenv grep -i path .??* shows that no other dot-file sets the path. Adding a couple of echo, I see: Last login: Thu Nov 18 13:29:13 on ...
WGroleau's user avatar
  • 5,065
1 vote
1 answer
11k views

Changing node version from node@16 to node@14 on Mac OS

I‘m using brew. As I need an older version of node I installed node@14 (brew install node@14) unlinked the recent version (brew unlink node) linked the old version that I want (brew link node@14) At ...
Mayssa Jarraya's user avatar
0 votes
0 answers
36 views

macOS Catalina Retain Path Bar in Mounted Folders

I'm running macOS Catalina, and whenever I download a *.dmg and open it, Finder doesn't show a path bar at the bottom. In older versions of OS X it used to be that the first time I pressed View -> ...
arik-so's user avatar
  • 783
0 votes
1 answer
128 views

"which" command returns paths with two consecutive slashes

On my macOS machine, I noticed that sometimes the which command returns paths with two consecutive slashes. For example: bash-3.2$ which gcc /usr/local/bin//gcc bash-3.2$ which qr /Users/flyingblu/bin/...
Jerry Wang's user avatar

1
2 3 4 5
7