Questions tagged [path]
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 environment variable specifying a list of directories where executable programs are located.
1,246
questions
1
vote
0
answers
40
views
Changing a folder name in a Windows 10 profile, but access it using the old name
I have the following folders in "%USERPROFILE%/Documents/" : Folder1, Folder2, Folder3 and so on. I want the user to be able to change its name, but still being able to access it using "%USERPROFILE%/...
0
votes
1
answer
38
views
Issue with variable in Path
Using Windows7, have a path issue
I have set the ENV variable ANT_HOME c:\ant
I add into the PATH: ;%ANT_HOME%\bin;
When I do
echo %ANT_HOME%
I get: C:\ant -- This works fine
But if I do
...
1
vote
1
answer
55
views
Create persistant Path that only applies in Command Prompt
In Windows 7, is it possible to set a path that automatically applies to every new Command Prompt (DOS) instance, but nowhere else? Note that the Advanced tab for My Computer properties as well as ...
0
votes
1
answer
145
views
Command window shows extra folder in 'path' environment variable
On my Windows 10 computer, when I display the 'path' environment variable in a command window, there's an extra folder at the end. It's a folder that I once used, but some time ago I deleted the ...
0
votes
1
answer
415
views
Change relative path of programs in %PATH% variable to absolute path
Inside cmd.exe when I call which java I get this output:
/c/ProgramData/Oracle/Java/javapath/java
When I call which vagrant I get:
/c/ProgramData/Oracle/Java/javapath/java
But when I call ...
1
vote
1
answer
573
views
Search path of symlink's source file
I have my main script which sources a bash file in the same folder:
$ cd
$ mkdir mysrc && cd mysrc
$ echo -e 'MY_LIB_NB=123987' > mylib.sh
$ echo -e '#!/usr/bin/env bash\nsource mylib....
2
votes
1
answer
2k
views
pkg-config on cygwin will not find the gsl package
I am trying to use the Cygwin method for re-learning C using 21st Century C book by Ben Klemens. I've installed Cygwin and have been using apt-cyg to install the packages mentioned in the book. The ...
1
vote
2
answers
136
views
Why does $0=/bin/foo when /bin is a symlink
I installed my bash scripts into /usr/bin/app.sh and /usr/bin/lib.sh
app.sh includes
source "/usr/bin/lib.sh"
and lib.sh includes
if [ "/usr/bin/app.sh" == "$0"] ...
When I run app.sh from the ...
2
votes
2
answers
5k
views
How do I change the default location of Sticky Notes on windows 7?
Looking for a solution to help me whenever add a note into sticky notes it will save on new location. Something that always windows check the new location to pull up the file not a copy/short-cut of
...
3
votes
2
answers
5k
views
Windows command with folder relative to PATH
From the windows command line, if I am in c:\foo, and c:\bar is on my PATH.
Is there any way to call '\bin\myapp.exe' and have it search my path to invoke c:\bar\bin\myapp.exe?
perhaps a prefix/...
4
votes
6
answers
30k
views
Command line app 'not recognized as internal or external command.'
A few years back I made a couple of console command line apps which at the time worked with no issues. I'd place them in the window/system32 directory and be able to use them from the console prompt ...
0
votes
1
answer
507
views
Java path variable. Nothing is fixing it at all
I have been trying to fix my Java path variable. I keep getting "'javac' is not recognized as an internal or external command,
operable program or batch file.". Is there any convenient software that ...
1
vote
0
answers
2k
views
Windows 10 not saving PATH added variables after shutdown/restart
I added some paths to Windows environment variables in PATH, but everytime I restart/shutdown my PC it deletes these variables from Windows (My custom paths). I have to add them again. Why is this ...
23
votes
2
answers
23k
views
How to change my system path when it is already too long?
In windows 7, my system path is too long. I want to edit it so I can remove some unneeded paths. However when I click advanced system settings ...
[Window Title] %windir%\system32\...
1
vote
1
answer
126
views
Idiomatically correct place to put scripts and libraries undex OSX
I'm migrating to OSX and need to figure out when to keep my scripts and libraries. I have code in Perl and Python, and libraries I've written in both languages. I am the only user of this machine so I ...
0
votes
1
answer
68
views
Organizing documents in a big hierarchy
I'm on a task of organizing documents ( like images, .docs, etc ) of all kinds of knowledge in life in such a way that i can later quickly access each category of knowledge and its documents.
I ...
0
votes
1
answer
64
views
Naming functions after a path
I want to wrap a function with its full path.
$ pwd
/home/me
$ which pwd
/bin/pwd
$ function /bin/pwd() {
echo "wrapping pwd"
command /bin/pwd
} && export -f /bin/pwd
$ /bin/pwd
...
1
vote
2
answers
2k
views
Modify PATH variable for X11 during log-in
I am working on some lab computers (read: no administrative rights) that, if I log in, I need to change the PATH variable as X11 starts. The reason is that I need to change the PATH variable at this ...
1
vote
1
answer
362
views
Does uninstalling a program remove PATH variable leading to its folders?
If a program addes a new PATH variable, once uninstalled does it remove it from the PATH?
2
votes
1
answer
5k
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: `/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/...
0
votes
1
answer
2k
views
Windows export PATH configuration
I have many variables in the PATH and I want to export and reuse them.
Is that possible? (something like a .reg file)
1
vote
1
answer
136
views
Using PETSc under Cygwin
I'm trying to get PETSc running under Cygwin on my Windows machine to test parallel code. Unfortunately there's a problem where Cygwin is importing elements from my Windows path of the form:
C:\...
-1
votes
1
answer
890
views
Why can't windows explorer delete files with long paths and why can 7-zip do it? [duplicate]
I don't know if this is the right place to ask such a question. For me at least it is really strange that Microsoft's own windows explorer cannot delete files with long paths while 7-zip file manager ...
4
votes
2
answers
2k
views
Jekyll installation successful but 'command not found'
I am trying to install Jekyll following http://jekyllrb.com/docs/installation/
○ → sudo gem install jekyll
Password:
Fetching: jekyll-2.5.3.gem (100%)
Successfully installed jekyll-2.5.3
Parsing ...
4
votes
2
answers
8k
views
/etc/environment not being read into PATH variable
In Ubuntu the path variable is stored in /etc/environment. This is mine (I've made no changes to it, this is the system default):
$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/...
1
vote
1
answer
21
views
Unix searches declared functions before the PATH
Unix searches first among the declared functions before the PATH:
$ order() { echo "hello from function"; }
$ order
hello from function
$ which order
/usr/bin/which: no order in (all:the:paths)
$ ...
6
votes
3
answers
3k
views
PATH set before /etc/zshenv
I am trying to find which file adds /opt/texbin folder to my PATH variable on Ubuntu. It is not present in my /etc/environment file. sudo grep -lr texbin . 2>/dev/null outputs nothing in the /etc ...
0
votes
2
answers
703
views
How can I find the FULL PATH for a file that is located in the "Program Files" (Windows 8)
I'm having trouble finding the full path for an executable file in Windows 8. I tried the "hold Shift, right click, and copy as path" method. But that doesn't seem to work with EXE files in the ...
0
votes
2
answers
55
views
$PATH variable is behaving oddly
When I echo $PATH on the command line, I get:
/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/...
0
votes
1
answer
125
views
$PATH variable is not read
I tried to install MacPorts. I added the following line to my .zshrc :
export PATH=/opt/local/bin/port:$PATH
then when I type the port command I get this :
sudo: port: command not found
But when I ...
1
vote
3
answers
12k
views
How do I create a Python 3.3 environment with Anaconda (& Windows)
I installed Anaconda on my Windows XP machine about a week ago. It came with Python 2.7.
I am trying to create a Python 3.3 environment on it. I followed these directions, resulting in downloading ...
0
votes
2
answers
1k
views
Where does Google Desktop store a gadget that it downloaded?
I dled a gadget, "ToDo List". I want to look at its source code and such. I looked in this folder:
D:\Documents and Settings\Laxori\Local Settings\Application Data\Google\Google Desktop\a024e0db31ec\...
0
votes
1
answer
560
views
SQLPLUS 32-bit Linux Pathing Issue
I am running linux 32 bit and installed Oracle 11g in it. I am trying to start sqlplus from command line but get the command not found error.
I checked the environment variables and have
...
5
votes
3
answers
31k
views
set PATH permanently
How do I edit my .profile file to set a permanent value for my PATH variable?
Is there any other file that needs editing?
(This is on CentOs 6.2)
1
vote
1
answer
2k
views
Powershell temporarily change path for session
I'm writing a powershell script to setup some python environment stuff and execute some code. I ran into an issue early on with virtualenvwrapper-powershell not installing for python3 (virtualenv ...
0
votes
1
answer
35
views
Delete 'Permanent' Changes to PATH?
I am developing using Cocos2d-x on a Mac running OS X 10.11.6. I have installed Android Studio and have a number of new entries in my PATH which are NOT being added by my .bash_profile. Example '/...
10
votes
2
answers
2k
views
How to make auto complete available for directories in cdpath for tcsh?
I just learned the trick for setting up cdpath in tcsh and it looks pretty useful.
However, it seems that auto-complete of sub-folder names doesn't come with it. Is there any trick available on that? ...
2
votes
1
answer
1k
views
Automatically shorten paths over a character count limit in bash
Windows and tools running on windows servers (eg. OneDrive) have a limit on path lengths.
I am looking for a command line tool in OSX/Linux/Unix to, within a directory, shorten all paths above a path ...
18
votes
1
answer
737
views
Multiple Installations and Understanding $PATH
I have an older version of Git installed at:
/usr/bin/
I recently downloaded a newer version to:
/usr/local/bin
When I type:
which git
I get the location of the old version. I believe that this ...
9
votes
1
answer
3k
views
Is it safe to edit the global PATH environment variable?
I just recently found out that I couldn't run mysql without typing out the whole path or being in the correct directory--unless I added the path to the PATH environment variable.
I managed to do so ...
1
vote
4
answers
3k
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 can'...
2
votes
1
answer
869
views
Path length OK on D: drive but too long for C: drive with both NTFS?
I have a folder containing a large number of files on D:\dev\tools\eclipse. I decided to move it to my C: drive (at the same path) for speed, since C: is an SSD.
The drag-n-drop move refuses to copy ...
0
votes
1
answer
3k
views
fatal error: 'mysql/mysql.h' not found (but added in path)
I use MAC OS X El capitan 10.11.5
I am trying to understand and execute some code on c++ (it is a lot of files and i am new to c++ a), but when i type "make" to compile everything, it returns the ...
1
vote
1
answer
358
views
How to exclude current directory from executable search in Windows?
When typing a command in Windows shell, it first looks for the program in current directory and then from PATH directories. Is it possible to somehow (eg by a environment variable) exclude current ...
0
votes
1
answer
1k
views
Windows Media Player Playlist (.wlp) - how to save relative paths?
I'm syncing Windows Media Player playlists between computers. Therefore, my playlists need to use relative paths, or it will not work on the other computer and vice versa.
Background:
I'm using my ...
1
vote
2
answers
16k
views
Getting PATH right for python after MacPorts install
I can't import some python libraries (PIL, psycopg2) that I just installed with MacPorts. I looked through these forums, and tried to adjust my PATH variable in ~/.bash_profile in order to fix this ...
20
votes
8
answers
135k
views
Spaces and Parenthesis in windows PATH variable screws up batch files
So, my path variable (System->Adv Settings->Env Vars->System->PATH) is set to:
C:\Python26\Lib\site-packages\PyQt4\bin;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
%SYSTEMROOT%\...
6
votes
4
answers
3k
views
How to change default path in File Explorer?
On Windows 7 I can right-click the File Explorer icon, choose Properties, and change the Destination.
On Windows 10 this seems impossible:
How can I change the default folder when opening File ...
0
votes
1
answer
727
views
Copying new files to network drive in windows 7 gives me the error: Path does not exist
I'm trying to save a new excel file on a network drive. I can access the drive, see all files, go through them but when i want to save my work from excel to this drive it gives me the error:Path does ...
1
vote
1
answer
5k
views
Setup Mac OS JAVA_HOME
I have fresh installation of OS X El Captain version 10.11.5. In my .bash_profile I did setup Java home as
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=$JAVA_HOME/bin:$PATH
However if I ...