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
66 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 ...
user avatar
  • 329
1 vote
0 answers
27 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 ...
user avatar
  • 123
4 votes
0 answers
188 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 ...
user avatar
1 vote
1 answer
43 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 ...
user avatar
  • 1,737
0 votes
0 answers
22 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, ...
user avatar
  • 377
0 votes
0 answers
17 views

Apple Script if input has specific word in it delete it and everything followed by that word

In this question here I thought that my automator script isn't working on different macs. That wasn't the case. The real reason why it wasn't working was because the input was faulty. The script ...
user avatar
  • 169
0 votes
0 answers
61 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 ...
user avatar
  • 169
1 vote
1 answer
275 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 ...
user avatar
0 votes
1 answer
102 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 ...
user avatar
  • 103
0 votes
0 answers
698 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 ...
user avatar
  • 101
0 votes
0 answers
318 views

Missing files from ZSH config

Have been experiencing some issues after installing NVM and was/ still am getting errors related to oh-my-zsh and powerlevel10k. At first, I was getting the following from pl10k: [WARNING]: Console ...
user avatar
2 votes
1 answer
346 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 ...
user avatar
  • 245
1 vote
1 answer
2k 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: /...
user avatar
  • 113
1 vote
1 answer
15 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 ...
user avatar
  • 53
3 votes
1 answer
550 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 ...
user avatar
3 votes
2 answers
98 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/...
user avatar
  • 31
0 votes
1 answer
366 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 ...
user avatar
  • 101
1 vote
1 answer
465 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 ...
user avatar
  • 267
1 vote
2 answers
290 views

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

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/...
user avatar
15 votes
3 answers
2k 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 ...
user avatar
  • 281
0 votes
0 answers
410 views

Can't add PATH entry for PHP to ~/.zshrc: "permission denied"

I have installed PHP 7.4 on my Mac using brew. Now I want to be able to have it in my PATH variable. I need to run: echo 'export PATH="/opt/homebrew/opt/php@7.4/bin:$PATH"' >> ~/.zshrc ...
user avatar
  • 1
0 votes
1 answer
103 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 ...
user avatar
  • 3,355
1 vote
1 answer
2k 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 ...
user avatar
0 votes
0 answers
30 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 -> ...
user avatar
  • 703
0 votes
1 answer
50 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/...
user avatar
1 vote
1 answer
54 views

New macOS install "missing commands" but commands already exist in /usr/bin

Mostly just want clarification on why macOS is doing this: On a fresh install I tried to use the strings command in Terminal and a pop up came up. I chose to "Install" and waited - it stuck....
user avatar
  • 717
0 votes
0 answers
148 views

Adding third-party C/C++ libraries to Xcode's path globally

I added my /usr/local/bin and /opt/homebrew/include to my CPATH variable. This way the clang compiler recognizes libraries residing in these paths when invoked from command line. However, when I am to ...
user avatar
  • 153
3 votes
6 answers
253 views

How do I make the Terminal easier to read and mentally process?

I am beginning to learn to use the shell via macOS's Terminal running Zsh, and I'm finding it difficult to process all of the very tightly packed information in the commands and results. What are the ...
user avatar
  • 117
0 votes
0 answers
61 views

Adding to PATH doesn't add to autocomplete

I have a Go binary (called AssetFinder) that I want to add to my $PATH so that I can autocomplete it. The binary is at the location /Users/spike/go/bin and I can execute it by cding to that directory ...
user avatar
-1 votes
1 answer
2k views

I have installed git from homebrew, and instead of installing it in /usr/local/bin it's in /opt/homebrew/bin/git, how can I move it?

I've changed my $PATH variable to /usr/local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/bin:/bin:/usr/sbin:/sbin (previously /usr/local/bin ...
user avatar
  • 3
2 votes
1 answer
185 views

Automator - Open Windows File Path On Mac

I am trying to create an Automator service that allows a user to highlight a link that has been emailed by a Windows user, and have it open to the equivalent SMB share on a Mac. For example: Windows ...
user avatar
0 votes
2 answers
98 views

Bash Eval Syntax Error Every time I open terminal

Every time I open terminal, my mac makes a multitude of error sounds, and returns this output: -bash: eval: line 4: syntax error near unexpected token `? -bash: eval: line 4: `PATH="/usr/local/...
user avatar
0 votes
0 answers
73 views

Paths like /usr/bin, /usr/sbin are still being added to $PATH even without /etc/paths

By default, my $PATH environment variable looks like this: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/zfs/bin:/Users/nate/.nix-profile/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/...
user avatar
0 votes
1 answer
1k views

Can I get some help making a symbolic link to run VSCode from the command line?

I downloaded VSCode and tried to make link for code to use code command to open VSCode. I also appended this vscode path to PATH variable. I have downloaded VSCode in folder called Work. This Work ...
user avatar
0 votes
1 answer
101 views

Previously Terminal prompt showed the whole path now just current directory, why has my Terminal prompt changed?

I've noticed a few strange changes to my mac. One of which is that now my Terminal prompt only shows the current directory and not the full path (or the path from the current user). Do you know why ...
user avatar
  • 304
-1 votes
1 answer
9k views

how to fix zsh: command not found: on all command?

i have some problem with Terminal and i can't fix it, if I use command node, flutter, composer, npm, etc I always get zsh: command not found: unless I enter the command export PATH="/usr/local/...
user avatar
0 votes
3 answers
177 views

How to add ovftool to Catalinas path?

I have installed VMware ovftool using the regular installer, which installed it in the /Application folder. I now want this added to the global path, so I added it to /etc/paths, see following output: ...
user avatar
  • 101
1 vote
0 answers
68 views

Folder name with space in iCloud path lead to error

I've a folder inside my iCloud drive which has this absolute path: /Users/myName/Library/Mobile Documents/com~apple~CloudDocs/myFolder and inside myFolder I started a NodeJS project and I'm using npm ...
user avatar
  • 111
0 votes
0 answers
46 views

Notarize issue: CommandLineTools not in PATH

OSX version: 10.14.6 I've been trying to notarize an Electron app using the latest version of Electron Builder, however I keep getting the error: error: unable to find utility "altool", not ...
user avatar
  • 513
1 vote
1 answer
76 views

Is that possible to let terminal update autocomplete for new executable files in path automatically?

I am running MacOS Big Sur 11.2.3 (20D91) and using zsh (the default shell). Whenever I added new executable files/scripts to $PATH, I can not auto-complete the script filename in the existing ...
user avatar
  • 1,685
0 votes
1 answer
60 views

Finding the path of a folder inside another script bundle

I am new to Applescript. I am trying to write a script to record an audio file and save it to a different script bundle - "PlayPro.scptd" - with the name passed to the script from an Excel ...
user avatar
3 votes
1 answer
787 views

Saving a filename with a special character in Mac?

I'm using a MacBook Pro with Catalina 10.15.7 and keyboard is set to UK English. I made a folder, mytest on Desktop, and the file test.html with CSS. The character in question is https://www.compart....
user avatar
1 vote
3 answers
79 views

Adjust path for iTunes / Music files after files move

I moved all my music library to a network drive. So now all my library is messed up as Music (former iTunes) can not find the files. I have to manually set the path for each file I want to play (~3500)...
user avatar
  • 193
1 vote
1 answer
256 views

What are the risks of adding `/usr/libexec` to `$PATH`?

I want easy access to PlistBuddy, which I wasn't even sure still shipped with macOS (Big Sur 11.3 here). I found it in /usr/libexec, a directory I don't know well, but which contains a large number of ...
user avatar
  • 250
0 votes
1 answer
545 views

"Command not found" lines on terminal startup

Whenever I open my terminal, these lines are displayed: /Users/USERNAME/.zprofile:2: command not found: bin /Users/USERNAME/.zprofile:4: command not found: bin /Users/USERNAME/.zprofile:6: command not ...
user avatar
  • 3
0 votes
1 answer
45 views

Adding shell script to $PATH is still not executing properly

I have a directory called projects and inside that directory are subdirectories called project1, project2, project3, and so forth. My professor hands out a .sh file located in these numbered ...
user avatar
0 votes
2 answers
516 views

echo $PATH not reflecting saved paths

I have attempted to add, export PATH="$PATH:/Users/My_Name/desktop/My_Folder, to .bash_profile, .bashrc, and .profile. I executed the command source ~/.bash_profile, source ~/.bashrc, and source ~...
user avatar
0 votes
0 answers
80 views

"locate" returns relative instead of absolute paths

I have the following entry in root's crontab: 0 */4 * * * cd /private/var/root && ./locate.updatedb I have an alias for locate in ~/.zshrc: alias locate='locate -d /var/db/locate.database' ...
user avatar
2 votes
1 answer
217 views

Finder does not open URL to file path

in the past, I used to click an URL to a local file in any application (e.g., TextEdit) and the finder or Path Finder would open. An example for such an URL is file:///Users/username/Library/Mobile%...
user avatar
  • 155
4 votes
2 answers
999 views

How do I view full process paths in Activity Monitor?

I'm using macOS Big Sur 11.0.1 and the Activity Monitor.app only shows the name of the process, and I can't configure it to show the full process paths via the GUI settings. Is it possible to show ...
user avatar
  • 1,076

1
2 3 4 5
7