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
2
votes
0answers
446 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
104 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
62 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
104 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 ...
1
vote
3answers
110 views

Use incomplete file path in terminal

In terminal is there a way for Terminal to guess a file based on an incomplete file path? For example: Instead of /Users/me/foo1/foo2/foo3/foo4/TargetFile, is there a way to just do /foo3/foo4/...
3
votes
1answer
96 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 ...
0
votes
1answer
2k views

How to export to $PATH permanently because .bashrc file doesn't exist in $HOME directory

I am trying to figure out macOS and want to install Composer which was not a problem....but I need the Laravel and Symfony installer and in the documentation it says that I need to export the variable ...
3
votes
1answer
128 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
8k views

Locate long file paths on external drive with terminal

I need to move a large volume to a new raid server that's PC formatted. However I have a couple paths and filenames that are interrupting this process. I would just like to know how to use the ...
1
vote
1answer
1k views

My terminal path in macOS SIerra is messed up

Few months ago, I was trying to download pygame on mac. It was very difficult but I finally did it through terminal using bash. But after the download, I think there was some change on default path ...
2
votes
2answers
849 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
0answers
2k views

Xcode 8 and iOS 11 incompatibility despite having copied device support files

I have set up up a new computer (MacBook Pro) from a backup I made yesterday from my old computer (MacBook Air). In the process of that setup, I changed my user's home folder name, strictly following ...
0
votes
2answers
153 views

Command path for exit

How would I find the command path for exit? I have already tried which exit but that returns nothing (it just goes to a new line). I have also played around cd /usr/bin, and when in that directory ...
1
vote
0answers
26 views

Including server names in file paths

We have two servers, ServerOne and ServerTwo. Each server contains a folder called Projects. On Windows, the paths to each of these folders are \\ServerOne\Projects and \\ServerTwo\Projects, ...
1
vote
1answer
34 views

can i find usb path and save to variable for quick backups?

i would like to add the path to inserted flash drive named backup1 to a variable so i can copy /Documents/dir to this flash drive path in one script without user interaction
0
votes
2answers
2k views

ERROR: AUCTeX cannot find a working TeX distribution (macOS Sierra)

I have installed MacTex and GNU Emacs on my iMac. I have created a simple tex file (the one suggested here) and tried to run LaTeX on it by hitting C-c C-c, but the following message appeared: ...
4
votes
2answers
419 views

Python path added to $PATH — cannot find origin

I just installed Python 3.6 from python.org on macOS Sierra. Somehow, the path to python's bin is added to my every $PATH but I can't figure out how: 22:15 : echo $PATH ...
1
vote
1answer
3k views

Adding variables to a shell command in Automator

I use Terminal to run a command. It runs fine from the command line, but I want to be able to automate it with Automator. The syntax of the command (of course, minus the quotes) is as follows: ...
4
votes
0answers
5k 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 ...
0
votes
1answer
74 views

Bug? 'nice time' disables $PATH search

With ~/bin at the beginning of my $PATH, I still have to name the directory if I put 'nice time' in front of the filename. Also, 'which' doesn't find it yet it still runs if I invoke it without 'nice ...
2
votes
2answers
562 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 ...
3
votes
1answer
88 views

Paradox in understanding the “order of booting” of programs given by $PATH

Background This tutorial on how to "properly install git" on OSX 10.8.5, says: To run the latest version you need to adjust your shell path so that /usr/bin/git runs after /usr/local/bin ......
0
votes
1answer
478 views

How can I tell an Automator action, that the source path of a document should also be the destination path?

I'm using the Automator action "Convert to PDF" from ABBYY FineReader Pro. It just does OCR recognition on a given file and saves the output to a new PDF. It looks like this: The issue I'm having ...
1
vote
1answer
59 views

$PATH looks corrupted, is my hunch about the fix right?

I'm looking at my $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/MacGPG2/bin:/usr/local/mysql/bin:/Users/gpiuser/Library/Android/sdk/platform-tools:/Users/gpiuser/Library/Android/sdk/...
1
vote
1answer
505 views

rbenv global version of ruby vs Sierra ruby version

Following this OSX Sierra tutorial from the folks at gorails, I am having trouble getting rbenv global to associate the install of 2.3.0 with the ruby command and to override the default ruby version ...
0
votes
1answer
591 views

Command found with `which` at the new paths but still tries to run from the old path

I have installed new version of npm in the custom directory .npm-global/bin and removed it from /usr/local/bin. The new path is declared: PATH=/usr/local/bin:./node_modules/.bin:/Users/dmitrizaitsev/....
0
votes
1answer
75 views

How to locate a particular place in macOS?

In this link, there is the unix command $HOME/.matlab/<version>/matlab.prf. How to go to this place by using terminal?
0
votes
1answer
4k views

New MBP with Sierra, /usr/local/bin no longer accessible unless root

I just got a brand new MBP with a fresh macOS Sierra install. I installed Elm, which simply puts 5 files in /usr/local/bin. However, when I try to run any of those files, they aren't found: Scotts-...
0
votes
1answer
69 views

How to make “Go to Folder” show current path?

One thing about MacOS I don't understand is how to quickly navigate the Finder in terms of quickly editing your file path. I.e in a centralised Version Control I may have /Software Projects/My ...
5
votes
1answer
319 views

How to know where file is going to be saved?

I have an application that is going to save a file to my MacBook Air El Capitan. Trouble is, I cannot seem to find a way to determine where it's going to save the file in the dialog. How do I find ...
0
votes
1answer
427 views

nginx.vim syntax highlighting

Attempting to use a VIM syntax highlighting plugin for editing nginx config files on El Capitan. It doesn't take. It asks that you place these files and add these directores: ~/.vim/syntax/nginx.vim ...
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 ...
0
votes
1answer
81 views

If I change my computer name how does it affect my computer's paths?

I wanted to change my computer's name and did so. I used it for a while but when doing other programming related work felt like I was hitting a wall sometimes because of pathing. I changed ...
5
votes
1answer
61k views

Where is my .bash_profile located? (Mac OS 10.10.5)

Disclamer: I am a newbie to UNIX programming. I downloaded Anaconda but then realized that I did not need it. I deleted and uninstalled it as fully as I could find out how. It seems that everything ...
1
vote
1answer
17k 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 ...
1
vote
1answer
165 views

Cannot remove part of $PATH

I trying to fix any problem I have in brew doctor, so I see: Warning: Some directories in your path end in a slash. Directories in your path should not end in a slash. This can break other doctor ...
1
vote
1answer
732 views

Can't seem to install e2fsprogs properly

I'm following a tutorial requiring me to use mke2fs. I found that I could install it by brew using brew install e2fsprogs Tthis returned the following: This formula is keg-only, which means it was ...
1
vote
1answer
859 views

tmux always modify my zsh PATH

I'd like to use tmux inside my iTerm2. and I have the following in my ~/.tmux.conf file. set-option -g default-shell /bin/zsh set-option -g default-command "/bin/zsh -c 'which reattach-to-user-...
0
votes
1answer
580 views

Launch Agent not running Bash File

I have a bash script imagecopy.sh that backups images which are located in a subdirectory with a prepended date string: this works perfectly fine when I execute it from the directory it resides in - /...
0
votes
1answer
148 views

Installing Casper; a program that needs to be placed in a directory on my PATH

I need to install software but I don't understand how to do so. I have downloaded a file which contains 5 files which includes a Unix Executable file which when I open displays this: Last login: Tue ...
0
votes
1answer
715 views

How to reset the $PATH in terminal OS X El Capitan? tried previous posts but did not work [duplicate]

I accidentally messed up my $PATH. I Tried to follow the instructions from the previous similar questions but I keep having the same problem When I type: echo$ PATH, I get the following response: /...
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
-1
votes
1answer
221 views

Refreshing env variables by sourcing not working

I installed torch in my MacBook Pro (running El Capitan). Now for using torch, I've to refresh env variables. Official torch document asks me to run source ~/.profile. But the terminal is showing No ...
7
votes
2answers
3k views

Set PATH variable so that it is detected in all applications, even outside terminal. (El Captain)

My ~/etc/path looks as follows: /usr/local/bin /usr/bin /bin /usr/sbin /sbin The Problem: When I type echo $PATH into terminal, I get back: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin And this ...
8
votes
1answer
144 views

checking path capitalization of pwd

Is there a quick way to check in terminal that the terminal command pwd returns the correct capitalization of the path? Note that if you do cd ~/desktop then pwd would tell you that your path is /...
3
votes
1answer
6k 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 ...
0
votes
1answer
628 views

Finding file in parent folder of an AppleScript

I have an AppleScript that calls another script (a perl script in this case) which resides in the same folder as the AppleScript. Now I'm trying to put the script into a variable like this: tell ...
0
votes
1answer
840 views

Why OSX symlink cannot Relative PATHs?

System in OS X 10.11.4 El Capitan $ cd $HOME $ ls . > Dropbox > BTsync Code which creates unsuccessful symlink ln -s BTsync/ Dropbox/ Code which creates working symlink ln -s /Users/masi/...
1
vote
0answers
463 views

How do items in the 'Applications' folder get on the path?

How does the 'Applications' folder get on the path? For example, I installed Chrome browser into the Applications folder on my Mac and I can type chrome at a bash shell prompt to start it. Now, if I ...
0
votes
2answers
51 views

Did I mess up my .profile file?

I was trying to update my system path, followed some directions online and accidentally types: touch ~/.profile Did I overwrite my .profile file? Does this mean that I have destroyed all of my PATH ...