Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
63 views

Terminal PATH startup message

I messed up when installing Cisco Packet Tracer for Linux and it some how changed a few bash files. After a few hours of looking around and changing my PATH, when I open a new Terminal window I get a ...
3
votes
4answers
696 views

“which” command doesn't work / path of Safari?

Why can’t I locate programs like Chrome or Safari or FireFox with the which command line tool? pasocon:~ ThisUser$ which python /anaconda3/bin/python pasocon:~ ThisUser$ which firefox pasocon:~ ...
1
vote
1answer
17 views

Path of an application (here Python) is not accessible from the Finder

I cannot see in the Finder the path "/Library/Frameworks/Python.framework" (there is no folder "Frameworks" inside "Library") although this path is the output of the error message when trying to run a ...
4
votes
2answers
275 views

How can I fix my terminal when editing the PATH in .bash_profile has the startup hang and I get no prompt?

I am new to the command line and clearly messed up my setup. macOS High Sierra(10.13.6) Trying to set up Python and VScode. My path variable is what I believe is wrong, but Idon't know exactly how ...
0
votes
0answers
132 views

How to install from an url with hombrew?

I would like to install a specific version of python3 (python 3.6.8) on my macbook. I tried to: brew install https://www.python.org/ftp/python/3.6.6/python-3.6.6-macosx10.9.pkg However, it doesnt ...
1
vote
1answer
65 views

macOS - Bash commands not working as needs to be

First of all, the problems: I'm not able to use both exported bash commands and default system bash commands at the same time Some of the exported paths working on terminal but some of them not ...
0
votes
0answers
26 views

Differences in path encoding between Mojave and High Sierra

I have a script (in R) where I specify the path to some data. The script ran on my computer's High Sierra. After updating to Movaje, I get "path non-existent" error messages so my script no longer ...
0
votes
0answers
19 views

Best way to add /Users/$USERNAME/Library/Python/2.7/bin to path [duplicate]

So, I used pip install <package> to install a package. It lives in the /Users/$USERNAME/Library/Python/2.7/bin. Every time I want to use it I've to: export PATH=/Users/$USERNAME/Library/...
0
votes
3answers
192 views

How to set relative directory to PATH variable, and run scripts in relative directory globally

I have some some scripts in a git project I wan to access globally, so I add the relative path to the scripts folder like so vim ~/.bash_profile export PATH="~/git/scripts/:$PATH" source ~/....
3
votes
2answers
63 views

Is there any way to get a log of all the recently installed files and their respective folder paths and source directories?

I recently installed an open source game. The file type is .pkg . Now, during installation the installer asked for permission to access the system UI server. I didn't knew the reason behind it so I ...
2
votes
1answer
159 views

What is the difference between HFS path and alias path?

This was brought up in a comment from another question/answer and I was curious what is the difference between an HFS path and an alias path. My understanding they were the same.
1
vote
2answers
828 views

trouble installing cmake

I need to install cmake for school. I have tried using the source code but don't really understand where I should unpack it and how to add it to my path. I also tried the .dmg file but the command ...
1
vote
0answers
87 views

Why do I keep getting this error message: “git was not detected on system path”

I'm not familiar at all with coding or using rstudio since this is the first semester im taking it. Basically everything was working fine, but when i updated to mojave, this error started popping up ...
0
votes
1answer
30 views

Mac exectuable only starts with ./name even when $path set

I'm trying to install Mongo but having trouble with the $PATH var in MacOS. Following the guidelines. My $PATH is set in .bash_profile: export PATH=/Users/evl/dev/mongodb/bin⁩:$PATH which works: ...
7
votes
3answers
7k views

Problem with displaying file path in Finder's Get Info -> Where [duplicate]

I occasionally need to check some file's location and copy it to the clipboard. I used to use Finder -> Cmd-I then I used to copy the content of "Where" section. Ever since updating to macOs Mojave, ...
1
vote
1answer
22 views

Create an hardlink across storage device (or alternative solutions)

I have named my secondary SSD with a name with a space in it - "My SSD", and have been using it for many years with multimedia applications without any problem. Part of my media library with thousands ...
0
votes
3answers
199 views

Running `nano` uses the old nano(2.0.6) even though nano 3.0 is installed

I installed nano 3.0 with brew install nano, but when I run nano --version, it shows version 2.0.6, which is what came with macOS. Screenshot: echo $PATH also shows that /usr/local/bin is listed ...
3
votes
2answers
108 views

Difference between filename and . filename in macOS terminal

I'm newbie to MacOS. (I'm using mac OS high sierra 10.13.6) I installed a software. They said to initialize the software by . /path/setsas.sh I give no thought to . and space, so I just ran path/...
0
votes
1answer
86 views

Removing directories from PATH

I am trying to run rkhunter, but it is giving me this output: stack/security/rkhunter-1.4.6 ➜ sudo rkhunter --check Password: Invalid BINDIR configuration option: Invalid directory found: ~/.dotnet/...
2
votes
3answers
246 views

Automator: Service to list File Paths of selected items, into Text File

How can this Automator Service for Finder be created? I'd like to be able to use Finder's Context menu (by right-clicking a Finder item) to run a Service that gets the file paths of the selected ...
4
votes
2answers
346 views

How to get an application executable path from Terminal

In macOS, applications can be launched from the command line with open -a < application name>. I would like to know if there is a command that returns the executable within the application ...
1
vote
2answers
147 views

Adding a new directory to PATH varibale

What is the de-facto way to export a binary/executable to my global PATH? I have seen different answers to this, but I am looking for the best answer. Basically, if I go on Github and download a ...
3
votes
2answers
79 views

Path Variable Limit

Is there a character limit on how long your PATH variable can be on macOS? Or is there a limit in terms of the amount of binaries you can reference in your path?
2
votes
1answer
2k views

Cannot run refind-install from Recovery because “/usr/bin/env: bad interpreter”

I have managed to change the present working directory to the folder containing downloaded rEFInd files. I have booted to Recovery Mode. The refind-bin-0.11.3 folder was downloaded to my Downloads ...
4
votes
1answer
803 views

Add Environment Variable to PATH

I am new to the Apple "eco system" and I am trying to setup my environment variables for local development. Here is what I have in my ~/.bash_profile (simplified for brevity): export PATH="$...
2
votes
1answer
89 views

How can I determine which paths are required?

I am using Mac OS X Snow Leopard 10.6.8. My Mac has several volumes with OS X and each volume has several users. I wish to minimise the work required to ensure that my paths are adequate both for ...
2
votes
1answer
66 views

mdfind -onlyin wildcard without pipe

Can -onlyin contain wildcards? mdfind pattern -onlyin '*bin' I know this works: mdfind pattern | grep bin
2
votes
2answers
121 views

Copy full path of an open file

I have a file open in Preview.app. I can easily view the full path for the same by ⌘ + clicking on the file proxy icon (the icon shown besides the filename in Preview's title bar). How do I copy ...
0
votes
3answers
105 views

Software uninstalled from brew still on $PATH

I've uninstalled software from brew (as I want to use a different version), using MacOS High Sierra 10.13.1 brew uninstall bowtie2 And downloaded the software from SourceForge instead, then copied ...
2
votes
1answer
116 views

Restore path to be read from /private/etc/paths

I used the how to from https://docs.aws.amazon.com/cli/latest/userguide/cli-install-macos.html to install AWS CLI on macOS. After executing command source ~/.bash_profile it seems that my default ...
2
votes
1answer
121 views

Path bar High Sierra doesn't work with search results on SMB fileserver

Yosemite High Sierra Hi there! At our Prepress department I’ve updated some iMacs from Yosemite to High Sierra. When I search in Yosemite on the SMB fileserver for a specific file, I see after a ...
3
votes
1answer
576 views

When I type 'echo $path' in Terminal, I see only a blank line - why?

I know I have a $path variable. If I type 'env' or 'set' at the Terminal command line, I can see what's in the $path variable - along with lots of other extraneous stuff. But if I just type 'echo $...
2
votes
0answers
60 views

path difference on script vs in shell

Why is the output of $PATH different when in a script vs when running $PATH from the terminal? Even for a minimal script like this: #!/bin/bash echo $PATH it will not match what I get when typing in ...
1
vote
1answer
431 views

Deleting a line from Bash profile

So using terminal I typed in: nano .bash_profile I then have access to the following bash_profile : GNU nano 2.0.6 File: .bash_profile ...
0
votes
0answers
37 views

Why does the path sometimes contain icons in Open Recent? Has anyone else even seen this?

Sometimes when I use Open Recent in the File menu of TextEdit, the path appears as a long trail of icons. Often (as shown below) it is doubled, identical on two lines. This seems to happen ...
2
votes
1answer
242 views

Force terminal to use binary from a different path

I have installed pandoc using homebrew and the Anaconda python distribution using pyenv. I've just found that Anaconda comes with its own pandoc binary and since the pyenv shims come before homebrew ...
0
votes
1answer
2k views

Changed my PATH to have /usr/local/bin ahead of /usr/bin and now pip isn't found

I was following this guide to get Python 3 setup, which recommended changing the PATH variable such that "# If you still see 2.7 ensure in PATH /usr/local/bin/ takes pecedence over /usr/bin/". I put ...
2
votes
1answer
830 views

Not a valid identifier upon terminal startup

I am getting this line each time I open my terminal. Everything else seems to be working ok but I would like to get this fixed since I don't think it is a good sign. Last login: Mon Feb 19 09:21:05 ...
2
votes
1answer
302 views

How to revert launchctl PATH to defaults?

There are many questions and commentary about using launchctl setenv PATH /path/to/include in order to have GUI apps inherit user-specified paths. I did this about four years ago, and the changes I ...
3
votes
2answers
904 views

How can one use /etc/paths.d to add a path with spaces in it to $PATH?

I recently installed VMware Fusion 10 on a Mac running macOS 10.12.6. After doing so, my bash PATH is broken. I traced the problem to a /etc/paths.d path file that Fusion installed; it contains the ...
2
votes
1answer
1k views

Missing /usr/local/sbin directory in the /etc/paths file

Why doesn’t the /etc/paths file include the /usr/local/sbin directory on macOS? $ cat /etc/paths /usr/local/bin /usr/bin /bin /usr/sbin /sbin I would have expected: $ cat /etc/paths /usr/local/bin /...
1
vote
0answers
618 views

Terminal OS X export command not working, cannot set new variable/pathway

I'm trying to set a variable, e.g. BIN=../../../../bin but I get BIN=../../../../bin: Command not found. The same for export BIN export: Command not found. It seems that I can't edit the path ...
4
votes
1answer
502 views

Convert a PC path to Mac path with AppleScript

I am a lone Mac user in a company that uses PCs...I often get file paths that I need to manually navigate. I have found some scripts, but they don't seem to be working for me. I'd like to be able to ...
7
votes
4answers
431 views

Get/Copy current Excel file's path

When in Windows 10 or in Windows 7, if I have an Excel file open and I want to know the path to the file I can use the ‘open current file in explorer’ button and it opens that file in the Windows ...
1
vote
1answer
131 views

Accidentally deleted /etc/paths

I had recently messed up my $PATH variable so I thought if fixing it by removing the /etc/paths but I found out online solutions to fix the $PATH variable by just editing the ~/.bash_profile so I ...
1
vote
1answer
838 views

Homebrew (unlike Macports) does not put programs ahead of system's

Macports inserts /opt/local/bin/ ahead of /usr/bin in the path, and so if the same program exists in both folders, the Macports-installed one takes precedence. I'm unclear on how Homebrew manages ...
2
votes
0answers
389 views

how to set node path in at /usr/local/bin using nvm

I have installed node using nvm first time and now when I run which node in terminal it gives me /Users/username/.nvm/versions/node/v6.11.4/bin/node but what I need that node path must be at /usr/...
1
vote
0answers
70 views

How to set the Screenshot directory with Jamf?

I'm using Jamf to configure my companies MacBooks and just recently got the request from Management, that every screenshot taken should be placed in a special Directory. For now, the only thing I ...
2
votes
0answers
54 views

Where do I find what's all affecting my $PATH?

When I echo $PATH I get: /Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/arukaj/Library/Android/sdk/platform-tools/:/Applications/XAMPP/...
0
votes
0answers
87 views

What prevents using .bashrc to initialize Terminal?

A few months ago, I made it easier to run scripts I'd written by creating a .bashrc file. It worked for a while, but it has not worked in a few weeks. As the Terminal snippet below shows, the file ...