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
0
votes
2answers
28 views

Command in bash shell script to find path to that script?

Is there a command to go inside a bash .sh script that will provide the full path to the directory containing that script?
1
vote
2answers
2k 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 ...
3
votes
4answers
649 views

default application to open folders with

Back in the days I used to run Path Finder for a while, but then removed it from the system and went back to regular finder. Now when entering i.e. open Desktop/ in the terminal, it opens up Finder ...
0
votes
1answer
80 views

What modifies the PATH variable on macOS? [duplicate]

echo $PATH returns a different result than the PATH variable I define in .bashrc. .profile is empty. What else could be modifying the PATHvariable? The directories listed are all things I would have ...
6
votes
3answers
8k views

How is my $PATH variable built on macOS?

I've recently installed Homebrew on my Mac and it's complaining that /usr/bin occurs before /usr/local/bin in my $PATH variable, meaning that system-provided programs will be used instead of those ...
8
votes
3answers
11k 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, ...
0
votes
0answers
26 views

Build without requiring users to set LD_LIBRARY_PATH?

I'm following this guide on how to build NumPy with Intel MKL on a macOS (I'm on Mojave 10.14.5), and after installing Intel's MKL library, the guide tells me to set LD_LIBRARY_PATH: export ...
0
votes
1answer
56 views

In Search/Spotlight, can you exclude files within $HOME/Library?

I am trying to make some Smart Folders to compensate for the woefully useless Recents folder but I am having some problems trying to filter out things I don't want to appear. One of them is excluding ...
2
votes
2answers
597 views

How display file path at bottom in “All My Files” on Sierra 10.12.3?

On older versions of macOS there used to be a file path at the bottom of "All My Files" so you could see where the files were located & click to path if wanted. Here's a random example I found ...
1
vote
2answers
1k views

Can't run Python script from anywhere, even after PATH variable was edited? [duplicate]

I was trying to set up my Mac to run custom Python scripts from anywhere without having to type python [script.py] or the explicit file path. The script is called "testscript". I put the script in ...
5
votes
3answers
6k views

How to make an executable .py available everywhere on OS X?

I have this directory /foo/bar/. Inside, I have a python file named myfile.py. I made it executable by adding (at the top): #!/usr/bin/env python Then, I made it executable by issuing chmod +x ...
0
votes
1answer
91 views

Why isn't a binary not being found in my PATH?

I've got a Python project which uses a virtual environment. In my project folder, there is a bin/ folder which contains all the executables needed by the project. To use these, you run source bin/...
3
votes
2answers
9k views

Get AppleScript Path of Parent Folder

I am writing an AppleScript that will be run from a USB drive, but the dive name may change often so I need to figure out how to get the directory path of the parent folder that contains the script. ...
2
votes
1answer
100 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 ...
2
votes
4answers
811 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
4k views

How do you get a clickable path to a file or folder?

I already saw a lot of questions and answers about how to copy the path of a file or folder using Automator. I personally like to use the copy option under the action menu on top of your finder ...
26
votes
2answers
20k views

How to change path in Finder by entering the path manually?

It seems that by default there is no way to enter a whole path in the Finder, so instead one should traverse through all the tree to get somewhere deep in the filesystem. Is there anyway to overcome ...
1
vote
1answer
28 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 ...
5
votes
2answers
1k views

What is the Default content in /private/etc/paths?

I have edited /private/etc/paths to allow access for Homebrew: /usr/local/bin /usr/bin /bin /usr/sbin /sbin I want to restore this file to the system Defaults. What are the default lines and default ...
0
votes
1answer
123 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/...
10
votes
5answers
22k views

I broke my PATH by editing my ~/.bash_profile and Bash will not recognize most commands

in .bash_profile I accidentally set the path to: PATH="~/Tools/apache-maven-3.3.3/bin" and now the default path is gone. Nothing in Terminal works anymore: Korays-MacBook-Pro:~ koraytugay$ ls -bash:...
0
votes
0answers
38 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 ...
0
votes
1answer
31 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: ...
0
votes
1answer
925 views

How to Access Shared Computer Through Terminal?

I have Mavericks on my Mac and wish to set up Unison between it and an old PC (vaiolaptop) running Windows XP on my network. How so I specify the path to the remote machine? It appears like so in ...
4
votes
2answers
1k 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 ...
2
votes
2answers
140 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 ...
2
votes
2answers
4k views

set PATH in terminal OS X 10.11.3

I need to set path /usr/local/gnupg-2.1/bin to the command line. I tried to enter "export PATH=/usr/local/gnupg-2.1/bin:$PATH" in the command line, but it works until the terminal session ends. I ...
3
votes
2answers
86 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 ...
0
votes
0answers
408 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
91 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 ...
14
votes
5answers
2k views

How do I change the location of screen captures?

As a developer, I take a lot of screen captures. I often take a lot to share with StackExchange members on chat. The problem is my desktop is so cluttered with screen captures that they're now ...
0
votes
0answers
35 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 ...
2
votes
1answer
435 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 ...
0
votes
0answers
43 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/...
4
votes
4answers
29k views

How do I undo “export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile”

I was trying to install homebrew, which wasn't working. It told me to do echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile. However this wasn't having any affect, and I thought maybe it ...
0
votes
3answers
585 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 ~/....
4
votes
1answer
617 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 ...
2
votes
1answer
287 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.
2
votes
1answer
1k 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 ...
1
vote
0answers
140 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 ...
1
vote
1answer
25 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 ...
1
vote
3answers
318 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 ...
0
votes
1answer
3k 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 ...
3
votes
2answers
181 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/...
4
votes
2answers
616 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 ...
2
votes
3answers
386 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 ...
1
vote
2answers
307 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
82 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
9k views

How -exactly- do I remove a specific directory, from my PATH, in OSX, Mavericks?

Ok - so this issue has become somewhat of a white whale for me. I have browsed some of the questions here, but I cannot seem to figure out how to, very simply, delete a directory from my PATH. (I ...
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 ...