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
3
votes
2answers
177 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 ...
3
votes
1answer
1k 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 $...
3
votes
2answers
6k views

I want to remove an entry in my $PATH

I'm running OS 10.8. When I echo $PATH my terminal outputs /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/usr/texbin:/Users/austinzuffi/...
3
votes
1answer
156 views

Copy pathname from Finder with tilde (~/) instead of absolute home directory

Since OS X El Capitan, right-clicking on a file in Finder while pressing "Option" shows a menu function Copy "File.txt" as Pathname. I wonder if I can replace the absolute path of the home directory ...
3
votes
2answers
26k views

Adding Gradle to PATH

I am trying to add Gradle to my PATH. I have used the command export PATH=/myUsername/Applications/gradle-2.6/bin:$PATH but when I type gradle I get an error "command not found." So I went to ...
3
votes
1answer
3k views

Permanently saving changes to $PATH [duplicate]

I have ruby and homebrew running for a while and I'm starting to play with Bash. I have encountered a problem with my PATH variable as echo'd: /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/...
3
votes
2answers
2k 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 ...
3
votes
1answer
3k views

How to change default path for photo booth?

By default, photo booth save videos in /Users/UserName/Pictures/Photo\ Booth\ Library Is there a way to change this default path? I am on OSX 10.11.5
3
votes
4answers
767 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 ...
3
votes
1answer
5k views

Converting between a Mac file path to a Windows file path

I am working in an office that is dominated by PCs, but we are moving select designers to a Mac platform (testing). The biggest issue I have come across is sharing file paths to shared drives, and the ...
3
votes
1answer
361 views

Is there any way to get a path to a file in the GUI in Yosemite?

In Mavericks it was simple: click "Get Info" on any file and you could copy/paste the file path. This is no longer included in Yosemite. I need to need to copy/paste paths frequently, like "/Users/...
3
votes
1answer
480 views

Adding TextWrangler to the path environment

I would like to add TextWrangler to the path environment. I have tried with this command on the terminal: alias textwrangler=/Applications/TextWrangler.app and then tried to call it just typing ...
3
votes
1answer
169 views

Exporting the filepath of all music files to a text file

I'd love to know the syntax within Terminal to export the filename and path of all my music of various types (I have legacy Windows .wma files too). I'd presumably export those file to a .txt or .xls ...
3
votes
2answers
159 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 ...
3
votes
2answers
290 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/...
3
votes
1answer
102 views

Correct Sierra 10.12.5 file paths to Spotlight and SpotlightNetHelper files to be blocked with Little Snitch?

The article belowmentions using LittleSnitch for blocking Spotlight and SpotlightNetHelper: Spotlight makes repeated http requests It includes two screenshots. The first image shows two separate ...
3
votes
0answers
7k views

Convert Mac to Windows paths and visa-versa for sharing with colleagues [closed]

Wanted to share perhaps a more thorough answer to this question: How to translate between Windows and Mac -style file locations? But since I'm new and got no cred on this site, I'm posting as new ...
3
votes
1answer
7k views

Where are Anaconda's libraries for PYTHONPATH?

I installed Anaconda's graphical installer successfully. I configured it to Python 3.5 by conda create -n py35 python=3.5 source activate py35 % to deactive source deactivate conda install notebook ...
2
votes
4answers
973 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:~ ...
2
votes
2answers
6k views

Terminal $PATH error

I was adding a $PATH to .bash_profile: PATH="/Applications/MAMP/bin/php/php5.3.6/bin:$PATH" So I could install PEAR on MAMP. That all worked, but now I have an this error each time I start up: -...
2
votes
2answers
4k views

Adding gedit to my PATH

I finally made the jump and got a MacBook, and I'm trying to move in. I have the OSX port of gedit installed, but I'm having trouble adding it to my PATH. My current PATH looks like this: export PATH=...
2
votes
3answers
530 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 ...
2
votes
2answers
316 views

make it easier to call often used terminal commands

I have a java tool that I use quite often from the command line but to use it I have to type java -jar dsim.jar. I want to make it so that I can call it just by typing dsim regardless of what ...
2
votes
1answer
420 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
2k 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 /...
2
votes
2answers
687 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 ...
2
votes
2answers
5k 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 ...
2
votes
1answer
10k 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 ...
2
votes
1answer
3k views

How to open path in Double Commander from Terminal

If I type open $(pwd) or open /anypath/ I will get the path opened in Finder. How I can achieve similar results but with the path opening in Double Commander instead?
2
votes
1answer
2k views

Fixing a messed up $PATH in Yosemite

I had troubles installing node with Homebrew as Homebrew does something weird to the node install that installing Yeoman generators seems to be hindered a bit. My issue, however, is that I think ...
2
votes
2answers
749 views

Change Web Sharing “Sites” folder to SkyDrive?

I'm building a web site. There are three Macs that I commonly use for development, depending upon my location: an iMac in San Diego, and iMac in Vegas, and a MacBook Air in all other places. As I move ...
2
votes
1answer
24 views

Path to user directory when username is unknown

Some colleagues and I have our cloud storage (e.g. Dropbox) syncing to our macs. The local path to a particular folder in our synchronised cloud storage looks like /Users/{$USERNAME}/CloudSync/...
2
votes
1answer
201 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
201 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 ...
2
votes
2answers
930 views

Terminal problem: “-bash: $: command not found”

I'm trying to start learning Swift and when I use the terminal line $ export PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:"${PATH}" it gives me -bash: $: command not found ...
2
votes
1answer
23k views

How can I get zsh to show the current path in the prompt?

I am not able to see path of my current directory or even username in terminal while using zsh. I was able to see it until few days back. Now it just shows blank. I tried uninstalling oh-my-zsh but it ...
2
votes
1answer
337 views

How to get file path of user selected .icns file in applescript?

I'm writing an applescript in which I need the POSIX path to an .icns file that the user selects. For some reason though, it refuses to accept .icns as a valid file type. This will work: set Icon to ...
2
votes
1answer
138 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
1answer
95 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
145 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 ...
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 ...
2
votes
1answer
559 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 ...
2
votes
2answers
60 views

.profile configured, no error message, but no change

New to editing my .profile, so please bear with me if my question seems somewhat trivial. I downloaded software to convert a proprietary data to ASCII, the software being from Trimble. Then I did the ...
2
votes
1answer
54 views

TexMaker, permanent changing of the path

I just update my MacBook with the last OS, El Capitan. I follow all the suggestions (link-1 and link-2) in order to make TexMaker work in a proper way, but when I relaunch the application all the ...
2
votes
1answer
333 views

Windows bootcamp file path on 2008 Intel iMac

My iMac hdd is starting to go and I am trying to recover files I had on the Windows OS through boot camp. I cant seem to find the path to get to my Windows directory. the only way I can get in the hdd ...
2
votes
2answers
2k views

How do I change $PATH and set it to the default directory?

For some reason when I run echo $PATHI get the following directory: /Users/<home>/Library/Applications/. How do I set it back to its default location so that I don't have to run this command, ...
2
votes
0answers
52 views

macOS Terminal not using correct manpath

How to set $MANPATH or manpath for the macOS Terminal Help menu command: Open man Page for Selection? Having recently done a clean install of macOS Mojave (10.14.6), I am trying to get my macOS ...
2
votes
1answer
91 views

mdfind -onlyin wildcard without pipe

Can -onlyin contain wildcards? mdfind pattern -onlyin '*bin' I know this works: mdfind pattern | grep bin
2
votes
0answers
72 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 ...