Path in computer file systems is in general the human-readable address of a filename or directory specifying a unique location in a file system, and expressed by a string of path components separated by a delimiter (most commonly the slash "/" or the backslash "\"). PATH (variable), is an ...

learn more… | top users | synonyms

167
votes
4answers
192k views

What are PATH and other environment variables, and how can I set or use them?

Questions about setting environment variables the PATH are very common here, and in most cases the answers are very similar to each other. In the future it would be nice to have a good Q/A for ...
2
votes
0answers
17 views

What is the path environment variable? [duplicate]

I just started with using the (Windows) command line tool for working with npm. And I end up quite often on StackOverflow when I'm stuck with some error and the solution is often to add [something] to ...
0
votes
0answers
10 views

Inkscape - is there a way to edit the path that objects have been spread along after using 'Extensions > Generate from path > Scatter…'

In inkscape - is there a way to edit the path that objects have been spread along after using 'Extensions > Generate from path > Scatter...'. I would like to tentatively have a path with objects ...
6
votes
2answers
2k views

How to use unison's path option with multiple paths?

I want to sync the following locations using unison: /home/user/Audiobooks with /shared/Audiobooks /home/user/Music with /shared/Music /home/user/Podcasts with /shared/Podcasts What would the ...
0
votes
1answer
28 views

Issue when disabling a path using PATH Manager

I'd like to use PATH Manager to disable/enable a given path from the PATH environment variable in a convenient way. I am trying to disable the path ...
0
votes
0answers
56 views

Is there a tool to “Copy/Paste from clipboard path” - reversed action of “Copy as path”? [closed]

Perhaps it's a duplicate but I just couldn't find it. Please let me know if so. I wonder if there is a simple tool to create a context menu on Windows Explorer to copy a file or a folder from the ...
3
votes
2answers
2k views

Can't use homebrew installed git

I'm encountering a really weird issue when I try to use the latest version of git I just installed via homebrew. which git is pointing me to the homebrew install, but calling git returns the original ...
0
votes
2answers
42 views

Append to System PATH variable without including the User's PATH variable

Imagine the following environment variables: System PATH = C:\Windows Bob's User PATH = C:\Users\Bob In a command prompt the PATH command returns C:\Windows;C:\Users\Bob After running setx /m PATH ...
-1
votes
1answer
35 views

Can implementing programs to command line/path be dangerous?

Quite a few programs I use have an option for implementing itself to my computer's command line. I've currently disabled that feature on most of my programs (except node.js and a few others). Example ...
1
vote
2answers
482 views

any freeware program for adding/editing PATH from context menu [closed]

So many times, I would like to add a directory to the PATH in windows. And I think the GUI for it must be the must stupid GUI ever developed in windows, yet it's there since ages, in an unmodified ...
0
votes
2answers
7k views

Setting environment variables and appending to system-wide %PATH% with a Windows batch file

I'm trying to set three environment variables and append them to the machine path. Right now my code is like this: setx CATALINA_HOME "C:\Program Files (x86)\Apache Software Foundation\Tomcat 7" /m ...
1
vote
1answer
34 views

Unknown path in my environment variables

I have a path in my Windows 8 Environment variables .bin;does this make any sense? Is it most likely a typo or typeover? I was having some issues with Chocolatey working in my Console2 and when I ...
3
votes
3answers
2k views

Strange PATH issue in Windows 7 - goes null after being set

I have some sort of a problem with the PATH system variable. Since I use a lot of cmd apps and scripts I've added a lot to it. But the string's length is not the issue. I've worked around this ...
-1
votes
1answer
43 views

Windows export PATH configuration

A have many variables in the PATH and I want to export and reuse them. Is that possible? (something like a .reg file)
1
vote
1answer
33 views

Alias one program in a different order than $PATH

I alias pandoc='~/.cabal/bin/pandoc' because I don't want to change my $PATH order just for this one program. In general, programs I installed in /opt/, ~/.cabal/, and so on should precede defaults ...
0
votes
1answer
28 views

Can't find executable (pipsi) in my PATH even though my PATH is set correctly and permissions are also correct in ZSH

I have just installed pipsi. I'm on Mac OS X Yosemite and I'm using iTerm and running zsh via oh-my-zsh. My problem is that I get the following: ~ >>> pipsi zsh: command not found: pipsi ...
0
votes
5answers
53 views

No such file or directory after typing $PATH in terminal

when I write in terminal echo $PATH my output is :/home/bo/bin:/usr/local/bin:/usr/sbin:/usr/local/sbin:/usr/bin:/sbin:/bin but when I write just : $PATH this output I do not understand ...
0
votes
0answers
27 views

Can the %PATH% be recovered without any Restore Points?

I just found out that my PATH system variable in Windows is nearly empty (it has only the path to the ExtFS tool - I installed that one recently , and I'm guessing it overwrote the Path instead of ...
0
votes
1answer
42 views

replace different variables into a single variable

I have XML files with entries like this: <path>D:/Shared/export/Outdoor Stage2/Outdoor Stage2_6_Images\Image_0.jpg</path> <path>D:/Shared/export/Outdoor Stage2/Outdoor ...
0
votes
1answer
2k views

How to run a tcl script in NS2 when path in bash file is not found?

i have added the path to where i have saved my tcl script (i.e. where ns2 is installed in home/me/ns-allinone-2.35). i have created a .bashrc and .bash_profile too, since they were not there. In ...
1
vote
1answer
14 views

Inconsistencies with which command

I'm using the n tool to update my current version of node, but something strange is happening. I ran sudo n latest which in theory fetches the latest version of Node (v0.12.0 and installs it ...
0
votes
0answers
10 views

How to manually install a library so that it may be included from the standard path?

I need to install and use this library on a Raspberry Pi running a flavor of Linux. The linked website suggests getting the necessary files from the public repo but I was unsuccessful in doing so. I ...
0
votes
4answers
54 views

How to get current document path to clipboard in Microsoft Office applications?

How I can get full path of current document into clipboard when working with Microsoft Office applications? I'm mostly interested in Word and Excel. Example: I have open the following file in Excel: ...
1
vote
3answers
11k views

Why can't I use %USERPROFILE% in %PATH%?

On my Windows 7 machine, using the System Properties > Environment Variables tool, I try to add %USERPROFILE%\Bin to the system variable PATH. For some reason, that doesn't work, even though ...
0
votes
0answers
154 views

The Voodoo XP error you cant fix . RDP / MSTSC.exe - cannot find <LANG_NAME>\mstsc.exe.MUI

I keep getting the error cannot file C:\Windows\System32\<LANG_NAME>\mstsc.exe.MUI I do have this path C:\Windows\System32\US_en and this one too C:\Windows\System32\en and I made ...
0
votes
0answers
8 views

Changing Git Location on Mac OS X

I have a version of Git (1.9.3) already installed on my computer at /usr/bin. This version was installed (if I remember correctly) by XCode. I would like to install 2.2.1 (the download version from ...
4
votes
2answers
4k views

Too many folders in the path variable

I've encountered a strange issue - I can't launch Visual Studio, nor run simple commands from command prompt, seemingly due to my PATH variable being too long. Now that I look at it, I see that many ...
10
votes
2answers
12k views

How to calculate a relative path from two absolute paths in Linux shell?

We have two paths. First one is directory, second either dir or file. /a/b/c and /a/d/e.txt Relative path from first path to second will be: ../../d/e.txt How to calculate that in Linux terminal? ...
1
vote
1answer
129 views

php is not recognized as an internal or external command although it is available in commandline

this is somewhat of a tricky question when it comes to "where should I place it?", but I assume a general problem behind it, which is why I am putting it on superUser. I have a Doctrine script which ...
0
votes
1answer
20 views

Linux C Compiler

I've just tried to install APCUPSD and have run into a missing C compiler error. I then ran yum install compat-gcc-34-g77 which went fine but the error did not go away, I tried which gcc as well ...
1
vote
1answer
25 views

Go to directory of symlink file target

How can I create a command (or alias) to go to the directory which contains the target file of a symlink. For example, if I have a symlink symFile@ -> /Users/zhermes/some/dir/someFile I'd like ...
1
vote
2answers
27 views

why 'export $Path=$Path:dir' won't work?

I am just wondering why do we need to use this command export Path=$Path:dir why does the command not look like export $Path=$Path:dir/dir'
1
vote
1answer
53 views

How to find absolute path of USB drive

I have a computer running Windows 8.1, and I have a USB drive with RocketDock installed. My problem is that sometimes Windows changes my drive letter and all the links on the dock screw up. I ...
1
vote
1answer
50 views

-bash: export: ''not a valid identifier when logging into terminal

Hi Whenever I log into the terminal I get the following error -bash: export: ...
66
votes
14answers
19k views

Add directory to $PATH if it's not already there

Has anybody written a bash function to add a directory to $PATH only if it's not already there? I typically add to PATH using something like: export PATH=/usr/local/mysql/bin:$PATH If I construct ...
1
vote
0answers
107 views

user path not merged with system path

On my Windows 7 machine, for some reason the user path is not merged with the system path variable when I start a new command prompt. I have seen other related questions answered by a reference to a ...
0
votes
1answer
19 views

Win 7 Explorer qualified path

Does anyone know how to make Win 7 Explorer display the fully qualified path rather than (irrelevant) drive letters as the default? i.e. \servername\sharename\foldername\file.name instead of ...
-1
votes
1answer
61 views

Exclude folders with a path pattern using FIND command on Ubuntu console

PROJECTS |___ SITE1 | |____files (to exclude) | |____img | |____js | |___ SITE2 | |____files (to exclude) | |____img | |____js | |___ ...
0
votes
2answers
60 views

What is the sequence of files bash loads to set PATH variable

I want to understand the way PATH variable is set in Linux/Mac. What all files are loaded and in what sequence to set the PATH variable for BASH.
1
vote
1answer
28 views

Find out the depth of path in PowerShell

For any location gotten by the Get-Location cmdlet, if I have a path like this: C:\Top\Middle\Bottom I would say it's 3 levels deep. If I have: C:\ I would say it's the 0 level. It could be 0 ...
2
votes
1answer
74 views

How to Define Relative Path?

I have heard about relative paths and I think that they are of good use. But, I do not know how how to define a relative path. For instance, I have a Power Point presentation in which I use an audio ...
0
votes
1answer
34 views

Is there any way to have Cygwin tools in PATH without them replacing Windows commands?

I would like to be able to use GDB, GCC and such straight out of a windows command prompt, so I put my Cygwin bin directory in my Windows path. Problem is that Cygwin programs now take priority over ...
0
votes
1answer
51 views

Folder set up in linux for netbeans

Kind of new to linux. Learning PHP, I downloaded NetBeans IDE but having problems getting a new project to show up on left hand side with other projects. It keeps putting them in the source file of ...
1
vote
1answer
65 views

I changed my system path in system variables, how can I bring it back to what it was?

I've been trying to unlock my htc device's bootloader and I couldn't get a fastboot command from the cmd to work. I had tried everything and eventually I found this site which said that I just have to ...
5
votes
3answers
8k views

Getting PATH of running *.exe

I am currently developing a customized CafeSuite system for my Internet Cafe. And I'm using Java and JNI (Java Native Interface) to get through the Windows Registry. But I have this module I can't get ...
6
votes
3answers
7k views

How to set cron PATH globally (i.e. for all users) permanently?

We need to have /usr/local/bin in cron's path for all users. Is there a way to set it system-wide, without needing to edit each individual user's crontab? We've tried adding PATH to /etc/crontab: # ...
1
vote
0answers
166 views

Running Java program from PowerShell starts a 64-bit JVM: From .bat file, starts 32-bit JVM

I am trying to start a Java application from a batch file, with a 2G heap size, like so: java -Xmx2G -XX:MaxPermSize=256M -jar cauldron-1.7.10-1.1236.05.212-server.jar nogui When running this ...
12
votes
2answers
10k views

Avoid unwanted path in Zip file

I'm making a shell script to package some files. I'm zipping a directory like this: zip -r /Users/me/development/something/out.zip /Users/me/development/something/folder/ The problem is that the ...
1
vote
0answers
62 views

iMac mid 2011 with Yosemite [closed]

My screensaver app tries to connect to a folder on my NAS that no longer exists and this causes problems. I tried to give the screen saver another path to a local directory but it does not change and ...
0
votes
1answer
20 views

Mac .bash_profile.save How to make it run by itself / where to actually change paths

trying to change my path for Ruby / SASS. I have always used a file in my home called '.bash_profile.save' In there I have the export paths which work fine but only when I run: source ...