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

1
vote
1answer
94 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
18 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 ...
0
votes
2answers
6k 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 ...
0
votes
1answer
15 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
17 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
20 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
13 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: ...
65
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
88 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
14 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
42 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
55 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
24 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 ...
1
vote
1answer
56 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
29 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
45 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
53 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
47 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 ...
11
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
48 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
15 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 ...
2
votes
1answer
67 views

How to delete old $PATH echo in Mac

After i changed my Mac username(using the way supplied by Apple Documents), I found that when echo $PATH, there are some old paths in it. ...
1
vote
4answers
2k views

Win7: messed up system - set too long path variable

I just messed up my Windows 7 Enterprise 64-bit. I tried to install CMake - and during installation i got an error saying something like it can't set the path variable, because it is too long (I ...
4
votes
3answers
41k views

Where are the user profile directories of Google Chrome located in?

Where are the user profile directories of Google Chrome located in? It may seem like a very simple question, but I couldn't find it. I checked inside %APPDATA%, but there were noting relevant there. ...
53
votes
7answers
118k views

Using cd Command in Windows Command Line, Can't Navigate to D:\

This may be a stupid question, and I think I have looked elsewhere to find the answer... Might be a path issue, but when I open the command line and type from the C:\>: cd D:\ I cannot get to ...
0
votes
1answer
21 views

Vim from terminal can locate package, GVim cannot

So I've been installing Syntastic and JSHint for some Vim JavaScript syntax checking. which jshint returns /home/myUser/local/bin/jshint which vim and which gvim return /usr/bin/vim and ...
1
vote
1answer
38 views

How to change a program path/alias?

I'm not sure how it works on Linux, but you can type in program names such as ls, man, etc., in any directory and the programs are executed. I uninstalled an old version of ImageMagick and built the ...
3
votes
2answers
29 views

Listing content of directory with absolute path is not equal to listing with relative path?

I launched Ubuntu 14.01 instance in AWS by using its API (with Python and Boto). I changed properties of the root device - 30GB instead of the default 8gb and used magnetic disk standard instead of ...
1
vote
1answer
67 views

What does %Path% mean at the end of PATH?

My PATH on Windows looks like this: C:>echo %PATH% C:\WINDOWS\system32;C:\WINDOWS;C:\dwimperl\perl\bin;C:\dwimperl\perl\site\bin;C:\dwimperl\c\bin;%Path% What does %Path% mean at the end of ...
3
votes
2answers
20k views

Where is java jre path specified in Windows 7?

I have java installed including jre 6 and 7 on Windows 7 64-bit. When I type java -version at the command line I get: C:\>java -version java version "1.6.0_22" Java(TM) SE Runtime Environment ...
0
votes
1answer
161 views

Git in Visual Studio 2013 stops working abruptly

Yesterday, I went home with Git working perfectly well inside Visual Studio 2013. I could 'Compare with unmodified' for a source file, I would see the version control status of my source files, and ...
43
votes
5answers
25k views

Windows 7's PATH and environment variables are corrupted

I have no clue, but lately I've been having this problem. After running my workstation suddenly something destroys PATH and lots of stuff stops working. Initially, my path had MANY directories listed ...
0
votes
1answer
46 views

Java runtime environment path issues

I've had a problem with my Java installations for quite some time and I've never had time to sit and try to fix this problem. So I went ahead and uninstalled all the various versions of Java I'd ...
1
vote
2answers
2k views

Strange Windows Errors

I run Windows 7 and I've been getting strange errors from different applications, for example attempting to uninstall VMware Workstation causes the following error: "Error in the lua script: [string ...
0
votes
3answers
31 views

Replacing part of a path name with search variable?

I'm not sure if I have used the right expression in the question, but the context totally slips my mind. I am trying to write a script to go to a student folder, depending on who is logged in, but I ...
2
votes
0answers
656 views

Mac OS X libraries path setup

In OSX, by default, (apple) libs and components live in /usr. Since I use MacPorts and compile my own modules, I have the following path setup: /usr -> default Apple /usr/local -> My own ...
1
vote
2answers
199 views

net share in windows actual path

I have a UNC Share folder with the following path \\192.168.0.100\SharedTemp\MuhammedRauf\UNC How do I know the physical path of the above (using net share or any other tools in Windows 7)?
1
vote
2answers
355 views

Fail cronjob with /usr/bin/env

I have a script that works perfectly if I execute it from the command line manually. However, when it runs via cron, the job fails with the following error: /usr/bin/env: escript: No such file or ...
3
votes
4answers
265 views

Why is it bad to add '.' to PATH?

I've read one explanation saying it can allow malicious executables that are in the cwd to run in place of similarly named built-ins and core utilities. For something to wreak true havoc, wouldn't ...
1
vote
0answers
434 views

Faking a Linux environment without chroot

For a university project I want to test a C++11 program on a 32-core machine. Unfortunately the machine has Ubuntu 12.04 with GCC 4.6 installed (we need GCC 4.7 because of some C++11 threading ...
0
votes
1answer
24 views

In GIMP 2.8 how in the world to you edit a path?

As a very experienced Coreldraw user, in Corel there is something called a Pick Tool that let's you activate an object, like making a path you've previously created active so you can edit it. There ...
2
votes
1answer
67 views

Is there a way to automatically display the file path on every print whether its Word, Excel, PDF

I am working with one of our help desk tickets and I personally don't think it's possible unless you go through some crazy scripting... The help desk ticket client was asking if is there a way to ...
0
votes
1answer
29 views

I've placed a binary in my $PATH, but when I run it from powershell it gets its own directory instead of the current directory

I’ve installed Hugo (a static website generator) on my Windows 7 system by placing it in a directory in my $PATH. When I try to run it, regardless of the directory I’m in, it's run in its own ...
0
votes
2answers
56 views

Accidentally deleted PATH in Windows 8 [duplicate]

So last week I was trying to install Ant, and accidentally deleted my environmental variable Path. I dont really know what I am doing. What effect will this have/what can I do to fix it?
1
vote
1answer
612 views

Messed up Python path in OS X

I am using python 2.7 in Mac OS X (10.7). I have been trying to install OpenCV, but to no avail. In one attempt to get OpenCV to install properly I tried the MacPorts version of OpenCV, and I ...
3
votes
1answer
3k 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 ...
1
vote
0answers
17 views

Strange paths in Task Manager: “\??\C:\Windows\etc..”

When looking a the list of processes for a different reason, I noticed something odd: There's four instances of conhost, but I haven't seen paths like those before.. Can anyone tell me what the ...
0
votes
0answers
25 views

When are quotes added to a file or folder path when dragged into a cli?

Like a CLI noob does, I often change directories by using the dragging the target folder into a command prompt to get its path. What's annoying, however, is that the path isn't wrapped in quotes, ...