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
27
votes
5
answers
34k
views
How do I bypass restrictions on the length of the PATH variable
System Properties
This environment variable is too large. This dialog allows setting values up to 2047 characters long.
I use/have used a lot of software, and my PATH has grown as a result. When ...
10
votes
2
answers
80k
views
Where is Microsoft Teams application located on my Windows 10 Computer?
From the 'tray icon' I chose to disable "start Teams on startup" but now I can't find the application.
It's not in Programs Files > Microsoft [neither in Program Files (x86)].
It's not in ...
-2
votes
2
answers
55
views
Is it safe to go into the directory where a program is installed?
Can I mess something up when I go into a programs install path? For example, could I break or alter something by accidentally moving a file from there into a different folder?
1
vote
1
answer
550
views
How to apply Windows short path (8.3) to network path?
Following my question here on SuperUser and here on StackOverFlow.
I've noticed that Windows 8.3 path only apply to local path like: C:\Program Files and not on network path like: \\MyNetworkPAth\...
3
votes
1
answer
6k
views
How to convert absolute paths to relative paths in .ini file?
Adviant
|
Deluxe
|
32bit ----------------------- Forms
How to set up the relative path for Deluxe and Forms? Below is the .ini file. Adviant, Deluxe, ...
3
votes
2
answers
3k
views
What is the difference between “/var/lib” and “/var/run?”
I am studying Unix-like filesystem structure especially FHS (Filesystem Hierarchy Standard). Anyways I know in the recent FHS /var/run is moved to /run.
I can’t understand the difference between lib ...
1
vote
2
answers
3k
views
Windows 10 Copy-Path Shortcut - disabling the quotes around copied path
I found this post helpful but could not comment because of missing points.
Create Copy-Path Keyboard Shortcut Windows 10
My question is, how can I disable the surrounding quotes(") from the copied ...
4
votes
3
answers
4k
views
Don't refresh PATH user environment variable values in ConEmu without Windows reboot
1. Summary
Values of PATH user environment variable don't refresh for me, if I work in ConEmu. I need to restart Windows.
2. Expected behavior
I use Chocolatey refreshenv script. If I run ...
1
vote
2
answers
7k
views
Wrong Python version returned, with correct $PATH set in ZSH
something very wrong is happening with my environment set up. As I am trying to learn, I decided to reinstall Mac OSX El Capitan on my Macbook Pro and start installing and configuring stuff from ...
2
votes
2
answers
14k
views
How to get access to environment variables in Windows?
I have borrowed a laptop with Windows XP from a company that I will do a project for. They say that I have almost Admiinistrator rights on the computer so that I can install software.
Now I have ...
155
votes
5
answers
55k
views
which/whereis differences
What's the difference between which and whereis ?
-1
votes
0
answers
67
views
How to convert application to regular folder in IIS 8.5
I have a virtual server (2012 R2) using IIS 8.5. I'm using it for test and educational purposes. When i look at the IIS Manager on this virtual server from content view, i see that a directory is ...
1
vote
1
answer
173
views
Windows PowerShell: Get-FileHash and long file paths
OS is Windows 10.
I'm using PowerShell's "Get-FileHash" command to generate a file's MD5 checksum directly within its folder, like so:
PS Z:\Test> Get-FileHash 'test.txt' -algorithm MD5 ...
1
vote
0
answers
18
views
Pathname or word too long in Cshell
I am using cshell. And I know that there is a limit of 1024 character while setting path. But I have many path variables which I need to set. So, it is exceeding 1024 characters and I am getting an ...
1
vote
2
answers
4k
views
Cannot set ILMerge path to console
I install ILMerge.exe; path is C:\Program Files\Microsoft\ILMerge\ILMerge.exe.
I want to set the command to the Path so I can type ilmerge anywhere to use the application.
I googled and tried all the ...
114
votes
2
answers
69k
views
Why does Windows use backslashes for paths and Unix forward slashes?
It annoys me having used Unix in college and now working on the Windows side. What's the history behind this decision? Anyone know why it worked out this way?
2
votes
0
answers
260
views
My PATH environment variable got lost during an installation this morning Windows 11
I noticed that commands weren't working in my command prompt. I tried rebooting but still the same problem. Eventually after looking in this forum, I found out that my PATH variable was effectively ...
0
votes
1
answer
6k
views
Node command not found after installing nodejs
I simply wanted to upgrade my Node installation from v8 to v10. After installing nodeJs, no node command works from the command line. However, npm commands like "npm install" work. Yet when i do "npm ...
1
vote
1
answer
6k
views
/usr/bin/env is pointing to wrong ruby version. "No such file or directory"
If I type "rake spec" I get.
/usr/bin/env: ruby1.9.1: No such file or directory
This problem started happening when I uninstalled ruby 1.9.1 and used rvm to install the latest ruby version but ...
1
vote
1
answer
66
views
What does it mean to "run something in a shell profile"
I'm installing Homebrew and I get a message that says:
Next steps:
⁃ To add Homebrew to your PATH run brew shellenv in your shell profile (e.g. ~/.bash_profile or ~/.zprofile)"
What does it ...
1
vote
2
answers
3k
views
Trouble setting ANDROID_HOME path in Linux Mint
I have tried methods and commands given on other posts but none of them work.
Below is the way I followed but still got errors.
$ export ANDROID_HOME=/Android/Sdk
$ export PATH=$PATH:$ANDROID_HOME/...
1
vote
3
answers
5k
views
Windows command dir lists files with absolute path, relative path required
I would like to list all filesnames of all files with a specific extension in a directory structure and write this to a file. What I have reached:
dir /B /S *.ext > list.filenames
This gives me a ...
71
votes
5
answers
80k
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 ...
4
votes
2
answers
1k
views
Windows: How to make cygwin bash.exe to take precedence over wsl in command line?
I have installed cygwin on Windows 11. Now, when I open the Windows command line, I want the bash.exe command to run the cygwin's bash command instead of bash linked with wsl (Windows subsystem for ...
0
votes
1
answer
130
views
In Windows, open a Unix file or path
Given a clipboard holding a Unix-style path, e.g. /c/tmp/xxx.pdf or /z/foo/bar/, what might be needed to let Windows open that file or folder, C:\tmp\xxx.pdf or Z:\foo\bar, without manually changing ...
0
votes
0
answers
20
views
Mac's sudo not sanitize PATH from user's setting?
Mac's sudo behaviour is unlike everywhere else, of which just like observed in Passing PATH through sudo, sudo would flush PATH every time.
However, I found in Mac, my PATH setting is carried into ...
2
votes
1
answer
7k
views
How to edit $PATH on MacOS Catalina (Zsh)?
I open terminal and use echo $PATH
I get back:
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin/
I'm confused because my .zshrc, .zsh, .bash_profile, .bashrc, and .profile all have ...
3
votes
1
answer
4k
views
Running Python script in Scripts from different working directory in Windows
I have pip installed a library (intelhex) with Python 3.5.1, which also places a few scripts in the Scripts subdirectory of the Python installation:
>dir "%pythonpath%"\hex2*
Volume in drive C is ...
22
votes
6
answers
9k
views
is there an 'upwards' find?
I found I asked this question on the wrong stackexchange site.
To find files starting from a certain path, I can use find <path> .... If I want to find 'upwards', i.e. in the parent directory, ...
0
votes
0
answers
70
views
Converted BAT to EXE Now Path to Temp Not Local
After converting Test.bat to Test.exe the Test.exe not finding local input file 360_2016.mp4 and the EXE file CMD Prompt displaying its path is to TEMP not local directory/folder. The EXE file is not ...
0
votes
0
answers
109
views
How to remove left-over files from an Homebrew installation
My current homebrew has its files installed in /opt/homebrew which is correct. However, I have several hundred leftover homebrew files in /usr/local/Cellar which are still symlinked to in /usr/local/...
1
vote
1
answer
1k
views
executable program is not recognized by cmder even though I have added its directory to system PATH
Recently I installed Pandoc and added its install directory to my system PATH. But I found that I can execute the program only in the system cmd, not in cmder.
I reinstalled the cmder program and ...
1
vote
1
answer
53
views
Is there a `man/` equivalent of $PATH (which is for extra `bin/` directories)?
When I experimentally install some new software, I don't go through the extra effort of putting all assets in the right places like /usr/local/man.
Occasionally, I'd like to have manpage support for ...
0
votes
0
answers
15
views
Character limit Trying to modify the system PATH variable after already entered the long path in register give error msg [duplicate]
Getting this error in windows 10 64 bit
I did enable to enter long size path from the registry
My question is how to disable this character limitation ?
I most say that this limitation is happening ...
47
votes
9
answers
287k
views
How to restore the Path environment variable I deleted?
I accidentally deleted the Path environment variable by creating a new one with Path name. How can I restore my old Path environment variable?
1
vote
2
answers
4k
views
How to set path for MinTTY under windows/cygwin correctly?
I made windows shortcut with the following target:
D:\APPS\cygwin64\bin\mintty.exe /bin/env PATH=/local/bin:/usr/local/bin:$PATH /bin/bash --login -i
I was expecting it prepend path with my given ...
5
votes
5
answers
29k
views
Adding python to windows path not working
After following the instructions on the answer to this quetion, my computer still doesn't recognize python as an internal or external command, operable program or batch file.
I've uploaded a picture ...
10
votes
2
answers
30k
views
how to change install location of "winget"?
I want to change the install path of winget (the package manager for windows) to D:\Program Files\{insert folder name}. This is the command I was told to use on the documentation
winget install --id {...
14
votes
1
answer
48k
views
Standard value of PATH variable Windows 10
After having poorly handled the PATH system variable (resulting in deletion), I'm now looking to reinstate the variable with the original value.
I found answers like this one about Windows 8 and below,...
0
votes
0
answers
44
views
Windows cmd won't recognize changed PATH
Few days ago I installed Tesseract OCR by installing Capture2Text via Chocolatey. This proved not to work, and instead of uninstalling Capture2Text I went ahead and deleted the Capture2Text folder ...
0
votes
0
answers
109
views
"javac is not recognized as an internal or external command, operable program or batch file" error; PATH methods failing
I'm taking Data Structures right now and I've been having issues with Java on and off throughout, but now it just won't work on my computer anymore.
I downloaded the Eclipse Temurin JDK 17 for Windows ...
2
votes
1
answer
422
views
What is this pip config output?
I have to install and configure Python 3.8.10 on a Windows 7 machine and I'm getting this output for pip config -v list:
C:\Users\Username>pip config -v list
For variant 'global', will try loading '...
0
votes
1
answer
108
views
Can't use pipenv after adding to $PATH
I'm using a Linux box on which I don't have sudo privileges. I have python and pip installed. I've run pip3 install --user pipenv, and confirmed that ~/.local/bin/pipenv exists. I then added PATH=~/...
0
votes
1
answer
176
views
How to set PATH on MacOs for non-login shell?
On mac os, if I do ssh localhost 'md5sum --version' the md5sum command located in /usr/local/bin is not found.
This path is listed in /etc/paths but this config file is not read by the shell because ...
13
votes
4
answers
5k
views
Add a single exe in given directory to PATH environmental variable
Is it possible to add a single program among many in a directory to the PATH environmental variable?
Say I have a bunch of programs in D:\utils. Rather than adding D:\utils\ to PATH I want to add D:\...
12
votes
4
answers
17k
views
A complete list of "%%" relative paths/variables in Windows Explorer in Windows 10?
I would like to know the full list of variables that I can use in Windows Explorer or related relative paths that is accepted by Windows 10. Variables like %appdata%, %userprofile%, %windir%...etc.
In ...
1
vote
1
answer
3k
views
How can I get the actual absolute path of an executable that was found via %PATH% in Windows (PowerShell)?
When I open a PowerShell window and type an executable file name in order to run it, I expect the actual executable to be found among the folders specified in %PATH% ($Env:Path in pwsh) environment ...
0
votes
2
answers
214
views
using bash to process a text file that consists of path names
I need some help with bash processing of a text file. In my effort to clean up decades worth of windows use I have written a simple command to find all the instances of a specific file - specifically ...
9
votes
3
answers
11k
views
Prepend to PATH variable (Windows)
I want to prepend a directory to the windows path (I am running Windows 7 64-bit).
However I can not find any way to do this:
Changing the PATH variable via the GUI is not working as it is always ...
0
votes
1
answer
48
views
Folder location / path issue
I am a learning junior sys admin and I read an article on how to give a shared drive over the network a recycling bin in a roundabout way...I was told if i change the file path of a random folder in ...