Skip to main content

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
24 views

Why are UTF-8 paths (differently) escaped in outputs across core CLI utilities?

Let's say that I'm a psychopath who names my files like: [-] `{title: "Non-Metadata", id: "s4a4ji"}`{.JSON5}.dir That's my best attempt at making the most hideous plausible ...
RokeJulianLockhart's user avatar
1 vote
0 answers
73 views

Renaming file in a long-path in Windows 11 in GUI does not work, when programmatically it does

I have problems renaming a file in a long-path in the GUI on Windows 11 v23H2, while programmatically it can be renamed. How can I tell Windows to allow me do the renaming in the GUI? G:\ is a google-...
Xavi Montero's user avatar
0 votes
0 answers
60 views

Permission denied: users/usr/.local/bin

I'm trying to install a program to download pdf files. This is the github link https://github.com/Lofter1/anyflip-downloader. I followed the istructions but I basically don't know exaclty what I'm ...
NoMilk's user avatar
  • 11
0 votes
2 answers
107 views

Windows "winget" says that a program is installed but it is not anywhere on the installation drive

I had downloaded and installed clink manually. It did not show up anywhere on the path. So then I used the package installer: it says that it is already installed: C:\Users\sboesch>winget install ...
WestCoastProjects's user avatar
-2 votes
2 answers
118 views

How to run an .exe file in command line without adding PATH variable in Windows? [closed]

I've recently downloaded ffmpeg and I need to run it through command line. I'm not able to do that because I don't have admin rights. How do I work around that?
Jahnavi Vempati's user avatar
0 votes
1 answer
113 views

npm command on windows gives syntax error every time

I tried to write a script to install the npm_modules in a different location than the current working directory. This was to mirror our workflow where binaries get saved on another drive than the ...
Dugnom's user avatar
  • 179
0 votes
0 answers
23 views

Is it possible to install Python in a different directory from the node.js default for extra tools and keep using it in node?

I installed node but my ssd only has 6 GB free so I didn't install nose.js extra tools (or something similar) that include python. Yet, once working in node, I realized that at least Python would be ...
Paulo Pinheiro's user avatar
-2 votes
2 answers
61 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?
f ff's user avatar
  • 1
1 vote
1 answer
776 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 ...
user1763606's user avatar
1 vote
0 answers
28 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 ...
Subhadip's user avatar
  • 111
1 vote
1 answer
133 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 ...
dkv's user avatar
  • 193
0 votes
0 answers
27 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 ...
xpt's user avatar
  • 8,851
0 votes
0 answers
119 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 ...
CANJMP's user avatar
  • 23
0 votes
0 answers
187 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/...
Cliff Helsel's user avatar
1 vote
1 answer
57 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 ...
Sridhar Sarnobat's user avatar
0 votes
0 answers
16 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 ...
user71020's user avatar
  • 607
0 votes
1 answer
247 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 ...
Camille Goudeseune's user avatar
0 votes
0 answers
47 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 ...
Elizabeth V.'s user avatar
0 votes
0 answers
117 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 ...
ScanVisor's user avatar
2 votes
0 answers
553 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 ...
dacfer's user avatar
  • 155
0 votes
1 answer
246 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=~/...
Frank Harris's user avatar
0 votes
2 answers
301 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 ...
Sam's user avatar
  • 1
0 votes
1 answer
63 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 ...
iliightly's user avatar
0 votes
0 answers
1k views

Windows 11 path too long issue persists after regedit

I followed the recommended steps to solve the path too long issue on Windows 11 (Insider Preview v23H2, b25951.1010); nevertheless, the problem persists, as I still get error path too long when ...
K.Mulier's user avatar
  • 190
7 votes
1 answer
19k views

Enable long paths on Win 11 Home

I need to enable long paths but my Win 11 Home edition does not have the group policy editor. Is there a way to enable this from the command line or install group policy editor on my machine?
A__'s user avatar
  • 337
3 votes
1 answer
2k views

Powershell - Get-ChildItem asterisk wildcard in path - strange behaviour when used parameter -File

I found one strange behaviour when I'm using Get-ChildItem cmdlet Folder structure: d:\test\fooA\foo\1-9.txt files d:\test\fooB\foo\1-9.txt files d:\test\fooC\foo\1-9.txt files d:\test\fooD\foo\1-9....
Jan Krejci's user avatar
0 votes
0 answers
58 views

Can end users specify where to save games' data?

This freeware Unity Engine game saves in Windows its data at: %USERPROFILE%\AppData\LocalLow\Turbo Chimp %USERPROFILE%\Documents\Turbo Chimp The registry key HKEY_CURRENT_USER\SOFTWARE\Turbo Chimp ...
LWC's user avatar
  • 1,008
0 votes
0 answers
64 views

How change location of updated StickyNotes database (SQLite) On Windows 10 & Windows 11

I searched many places for change location of updated StickyNotes database (SQLite) On Windows 10 & Windows 11 with no help. Now my goal is windows 11. it seems it is not possible to change that ...
SMQS 200's user avatar
0 votes
1 answer
459 views

How can I prevent iTerm2 from printing environment information on startup?

I recently started using iTerm2 + Oh My Zsh to see what the hype was all about. While it's cool, I had some issues getting it to work properly. Specifically, it wasn't recognizing standard commands ...
Mike Ciffone's user avatar
0 votes
1 answer
336 views

How to remove Anaconda PATH?

I have uninstalled Anaconda from MacOS but still there is on the PATH. I have searched all .bash_profile, .zshrc but I did not find anywhere that set the Anaconda path. It is available on both bash ...
Mahdi Amrollahi's user avatar
0 votes
1 answer
483 views

Path edits are not persisted after shell is restarted in Ubuntu WSL

I just installed miniconda3 on Ubuntu (through wsl on Windows 10). If I try to execute conda --version, I get an error saying that conda is not a recognized command. To solve this, I ran export PATH=/...
Fabrizio's user avatar
  • 109
10 votes
5 answers
5k views

Cron can't find executable which works in terminal?

I've written a small tool in C++, compiled it, made it executable, and move it to /opt/tools/bin. The latter is a directory I created to store small, custom programs. I export it to $PATH in my ....
St4rb0y's user avatar
  • 213
0 votes
1 answer
252 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 ...
Fractale's user avatar
  • 667
12 votes
1 answer
20k views

STILL no file paths longer than 260 characters in Win Explorer, in 2023? [duplicate]

When I try to create a subfolder in a folder whose file path is already cca 260 characters, I get this message: The file name(s) would be too long for the destination folder. You can shorten the file ...
cat's user avatar
  • 123
2 votes
1 answer
147 views

Windows exe program work in safe mode but error in normal (access, permissions error)

I have installed the program "VMS" needed to configure the IP camera. When I run shortcut, program does not reacting at all. But after several attempts to run, an error appears. Windows ...
Russell's user avatar
  • 21
2 votes
1 answer
259 views

How Are My Python Installations' Command Names Determined, and Can I Change Them?

I recently installed 3 versions of Python on my Windows 10 machine: Python 3.8, Python 3.10, and Python 3.11. I have added all of them to Path . I have successfully run Python3.8 by typing in python ...
Anon Anon's user avatar
-2 votes
2 answers
438 views

$PATH corruption on Cygwin on Windows 10

I am running cygwin on a Windows 10 computer. If I execute $PATH from the cygwin command window, I get the following error: $ $PATH -bash: /usr/local/bin:/usr/bin:/cygdrive/c/Program: No such file or ...
Ben Blackwell's user avatar
0 votes
0 answers
103 views

Batch script error image upload

Wrote a batch script file that uploads an image to smugmug using the smugcli cmd tool in Python. Now I'm getting an error creating an album. I think it has something to do with the special character ...
BertW's user avatar
  • 1
0 votes
3 answers
681 views

Is there a Windows equivalent to ~/.local/bin?

On Ubuntu, the default path includes /usr/bin, which is where most system applications are installed via sudo. The equivalent on Windows is C:\Program Files, protected by UAC. (Of course, it's more ...
lofidevops's user avatar
  • 1,338
0 votes
1 answer
2k views

In powershell to treat string as raw sting

I have to go to this C:\Users\user\Documents\code\dart\learning_dart\bin\string_lerning\ directory in Powershell I can use cd C:\\Users\\user\\Documents\\code\\dart\\learning_dart\\bin\\...
user avatar
0 votes
1 answer
135 views

I installed grype on my Windows 10 machine, but my WSL2 console does not seem to detect it. What have I done wrong?

I installed Grype through a command I ran in WSL2 and I believe I correctly added it to PATH. When I try and use Grype in my terminal however, nothing happens. I added "C:\grype" to PATH. ...
nowa's user avatar
  • 1
0 votes
1 answer
34 views

How to access GNU-Emacs binaries located in HOME partition from everywhere?

I built GNU-Emacs from scratch and now I have working binaries of it in my home partition. So ~/somedir/emacs/src has all the binaries. If I issue the following: PATH=$HOME/tmp/emacs/src:$PATH that ...
Niranjan's user avatar
  • 103
1 vote
1 answer
817 views

Tangled up file paths trying to take Desktop off of OneDrive

So, I don’t like that my desktop folder is in OneDrive. It messed with the performance of my old PC, and I was able to change where the desktop folder lived on my old one without issue. I now have a ...
Laurennial's user avatar
0 votes
0 answers
249 views

do i need to have [%systemroot%\system32] also when [%systemroot%] already is present in path?

Is there a need to also have [%systemroot%*system32*] or is that path already "covered" by [%systemroot%] ?
TiVoLi's user avatar
  • 1
0 votes
2 answers
1k views

Path without leading slash

In a path, you can use relative and absolute paths. /: Root directory ./: Current directory ../: Parent directory But when you don't use a leading slash e.g. cd path/to/dir it acts like you're using ...
puncher's user avatar
  • 105
2 votes
1 answer
6k views

override windows store open action when launching python in powershell [duplicate]

C:\Users\my-username\AppData\Local\Programs\Python\Python311\python.exe is in my path but when I execute python in powershell it automatically opens up Microsoft Store which is anyway blocked by the ...
anjanesh's user avatar
  • 159
0 votes
1 answer
398 views

PATH, bash, profile

I know. Yet another question about the very basics of Linux, but I obviously am missing some tidbit here despite reading many threads about this subject. I recently had to nuke-and-pave (and reinstall ...
Birdman's user avatar
  • 39
1 vote
2 answers
2k views

Linux Mint $PATH, environment global change

I'm using the latest Mint (21.1, 64bit AMD). Apologies, this is probably more of a Stupor-user question than a Superuser one, but with much web-based searching I have come up with a plethora of ...
Birdman's user avatar
  • 39
1 vote
1 answer
1k views

Restore previous folder windows after restarting explorer.exe [duplicate]

How can I Restore previous folder windows after restarting explorer.exe? I thought about saving the current folder position/folder path and retrieve/open it after the explorer restart? For example, if:...
fatFeather's user avatar
0 votes
0 answers
796 views

every time i open my parrot OS terminal i get bash: ‘export: command not found

I prefer Linux. I accidentally executed a misspelled command in terminal. sudo echo 'export PATH=/home/grump/miniconda3/bin:$PATH' >> /.bashrc What can I do now that it is constantly executing ...
Girum Senay's user avatar

1
2 3 4 5
25