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,245
questions
26
votes
5
answers
56k
views
How do I alias python3 on Windows?
I want to alias python3 to python on windows. I have already removed the alias for the microsoft store as described in this answer. However python3 is still not a known alias. How to I fix this?
1
vote
2
answers
2k
views
How do I rename the **entire** path
I need to rename (in particular not to copy nor to move) in Windows 8.1 this file path
D:\Users\hynek0\1703.08094.pdf – zástupce
to this path
C:\Users\hynek0\1703.08094.pdf – zástupce
Here, – ...
2
votes
1
answer
503
views
How to print absolute path of some file from c:\ root in perl?
Having this perl:
#!/usr/bin/perl -w
use Cwd qw[abs_path];
use autodie;
opendir C, "c:\\";
@ar = map { abs_path($_) } readdir(C) or die $!;
print $ar[0];
I am trying to print an absolute ...
5
votes
2
answers
3k
views
How to use absolute paths in windows file explorer
So I'm used to Linux and work with proper paths all the time. I use windows only for Visual Studio and some games that wouldn't run on wine or mono otherwise.
There is this annoying "feature"...
1
vote
2
answers
742
views
PowerShell which - get usable path
EDIT: I'm on Windows 10 and I think the which command is available because of an installation of Git for Windows.
If I type which nvm in to PowerShell, I get /c/Users/HP/AppData/Roaming/nvm/nvm. If I ...
1
vote
0
answers
119
views
Any need nowadays to be concerned about the 260 character path limit for non-networked files? [closed]
For non-networked files, is there any need to take care nowadays about not exceeding the 260 character path limit?
I am most interested in answers covering Windows 7, 8, 8.1, and 10, if possible.
The ...
0
votes
0
answers
169
views
Is the "user environment variables" linked to the Admin account?
I am deploying a windows 10 PRO image to several laptops by using sysprep and aswer-file. The aswer file create 2 users one admin user (LED) and a second normal user.
In the admin account the "...
1
vote
2
answers
5k
views
Python refuses to be recognized in Command Prompt despite multiple attempts to add to PATH
I've downloaded and uninstalled Python so many times trying to get this to work. No matter what happens I always get:
"'python' is not recognized as an internal or external command, operable ...
2
votes
1
answer
727
views
Adding Atom (editor) to the path in Windows 7
I have downloaded the Atom (editor)'s .zip file to my Windows 7 computer and haven't installed it using the installer.
When I try to launch Atom from the Git BASH terminal in a casual directory, I ...
0
votes
0
answers
70
views
How do I share a project and files across macOS and PC?
I use Camtasia for video editing. I keep the recorded video files on Google Drive. Google Drive syncs the files across both computers without any issue. However, the files end up in different paths ...
2
votes
1
answer
289
views
Cannot find `.exe` files (in PATH) from CMD after installing WSL
After installing Ubuntu 20.04 using WSL, I cannot run .exe files from CMD without providing the suffix .exe.
1
vote
0
answers
45
views
Bash Tab expansion to list all executables based on regex
How can I use regex based methods to find commands available in the ${PATH}?
For example when I press w and Tab switch. I get a list of all commands starting with w. I would like to list all ...
3
votes
1
answer
6k
views
Why does `sudo env "PATH=$PATH"` do anything at all?
Can anybody explain why this:
sudo env "PATH=$PATH" make install
is not the same as this:
sudo make install
?
I had a situation recently where make install failed unless run as shown above. The ...
1
vote
3
answers
1k
views
Linking OneDrive media in PowerPoint presentation when OneDrive is on different paths
I have several PPTX presentations that contain linked videos (not embedded because of file size). The presentations themselves are stored in OneDrive as well as the videos.
However, on my home PC ...
0
votes
1
answer
296
views
What would happen if someone removed the PATH variable from /etc/environment?
Currently, the best known way we found to add an API key to a remote Ubuntu server was by editing it in as an environment variable in etc/environment. The infrastructure docs of the project were ...
2
votes
0
answers
610
views
Best way to generate ASCII tree visualization of a directory with long file paths?
I've enabled the Enable Win32 long paths template in the Local Group Policy Editor. I have a directory with several nested directories that have long file path names.
I'm trying to generate an ASCII ...
1
vote
1
answer
2k
views
zsh compinit: insecure directories, run compaudit for list
After I installed nvm locally, it auto added paths to .bash_profile file. But my default terminal use .zshrc so I copied those path over.
Everytime I fire terminal after above change, terminal auto ...
1
vote
1
answer
976
views
Windows 10 command prompt is not recognizing any basic commands
I have read forums, but have not found anything useful about what to do, with someone suggesting it might be with my PATH variable, but I don't know how to fix that.
Output of ipconfig:
Output of ...
3
votes
1
answer
518
views
Where does systemd actually search for units?
Today I spent too many hours figuring out what is wrong with my systemd which was refusing to find units in .config/systemd/user.
The symptoms were:
systemd-analyze --user verify <unit> worked
...
1
vote
3
answers
69
views
Incorrectly saved file lost during recent update - cannot find anywhere
I had a Word .docx file in process, mistakenly saved to documents in quick access instead of documents in C:drive. An update came through and when I went to open the file the error said it had no path,...
2
votes
2
answers
3k
views
Windows path no longer shows as list in Control Panel Environment Variables
When I manage my environment variables from the Control Panel (System > Advanced system settings > Environment Variables), PATH used to show up as a nice, manageable list of folders which were easy to ...
0
votes
1
answer
89
views
EXEs not executing on Win 10
Recently installed Github Desktop and it wants to find git.exe on the path. I have Git installed in C:/PortableGit. I added C:/PortableGit/bin to my System path. I verified it's there. If I open a CMD ...
3
votes
1
answer
10k
views
Convert UNC path to WSL path
I created an alias as part of this question. It functions as expected except that whenever it's run from the home directory it outputs a non-fatal error:
'\\wsl$\Ubuntu-18.04\home\hashim'
CMD.EXE was ...
0
votes
0
answers
183
views
vegas pro - set relative path to used pictures in a project
Vegas Pro - all versions - one thing makes me crazy
changing the location of a project folder - there is always a message - the media is offline (i.e. my pictures used for a slide show, for example).
...
1
vote
0
answers
122
views
Just had 2 firewall path's pop up as letter:number\path\to\exe. Why the weird path?
I just finished upgrading all my hard drives. Lots of data migration. Fired up my first game and was prompted for a firewall rule.
Not unexpected as the drive letter the game was on changed, ...
0
votes
0
answers
435
views
How to call a path with up one level from .ini file into bat command string?
I'm creating a standalone installation pack for an existing map editor, for my fellow game map makers. The map editor is called Finalsun, and it has an INI file called FinalSun.ini, inside the .ini ...
0
votes
1
answer
747
views
Adding executable files to my PATH in a Linux shell
My goal is to run the R file helloworld.r from my home directory using Rscript in a Linux shell. My helloworld.r file looks like this
#!/home/usr/env Rscript
print("Hello World")
I have added export ...
1
vote
1
answer
856
views
httpd - SSLCertificateFile: file '/var/certs/domain.cert' does not exist
maybe i just can't search in internet but i stuck with that:
I have Fedora Server 31 with httpd installed.
I added small vhosts config:
Listen 3000
<VirtualHost *:3000>
DocumentRoot "/var/...
1
vote
1
answer
291
views
"File mask" of "Find in Path" command in Pycharm 2019.3.1 (community edition) does not contain *.py option
I will like to use the "Find in Path" -CNTL-SHIFT -F command to search for words in .xml and .py files but when the File in Path screen comes up, the file mask only contains 3 extensions - *.xml, *....
0
votes
2
answers
82
views
Two paths for Win10 start shortcuts
Few of my shortcuts in Start suddenly disappeared. When I tried to discover why, I found that there are two paths for shortcuts in Start:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs
and
C:\...
0
votes
0
answers
49
views
How to make Firefox handle Unix-style paths on Windows
I added an option to the context menu in Windows 10 to allow me to copy the paths of (local) files or folders to my clipboard. E.g. if I right-click on C:/users/simon/example.pdf, that path gets ...
1
vote
1
answer
5k
views
Does ECHO %PATH% show the path in the wrong order in Windows?
I'm currently fighting with my IDE and usage of PATH, JAVE_HOME, etc. on Windows 7.
As stated in this question: PATH variable showing different values (command prompt vs environment variables dialog ...
0
votes
1
answer
76
views
Redirect HTTP paths to ports, keeping the rest
I have the issue where I want to redirect a URL, like https://foo.bar/foobar/thing to https://foo.bar:1234/thing. I have seen solutions where one could redirect from /foobar to port 1234, but how ...
0
votes
2
answers
71
views
Shell script MacOS: use the script path as a part of a path to a folder
I learn MongoDB and play around with databases. I often run database servers so I need to change the path to some DB a lot. I made a script for that
--dbpath <path_to_some_folder>/data/db
But ...
1
vote
2
answers
650
views
How to find out where is a system command in Windows 10
(1) Where is the command "mklink"? I searched C:\Windows for it but there is no result.
(2) Is there a generic way like "which" command in Ubuntu to find out the absolute path of a command whose ...
0
votes
1
answer
1k
views
Pycharm doesn't detect python installed from Microsoft store
I have python 3.7 installed on my pc downloaded from python's official website and pycharm detects it and is fine. But, windows's powershell doesn't detect it. I have added it to path of system and ...
-1
votes
2
answers
1k
views
Escape Ampersand in path variable
In my PATH environment variable, there's
C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5
This screws up the whole PATH --- the entries that come afterwards are not taken into ...
0
votes
1
answer
348
views
How Do I Paste A Path Into Netbeans With Proper Formatting?
every time I past a file's path into Netbeans (for example, C:\programs\test.txt) I always have to add in the escape characters so that Netbeans understand the path.
So, I will paste
"C:\programs\...
-1
votes
2
answers
102
views
which file need to modify after seeing the result of command as echo $PATH and which flutter
I am installing the flutter using Installation Link. To verify installation i checked following commands echo $PATH and which flutter. By mistake i have given the wrong path.
$ echo $PATH
/home/...
0
votes
1
answer
622
views
How deep goes the environment variables PATH in windows?
I've searched for this answer for a long time and can't find any occurences during my searches about this matter. How deep goes the looking for a file when windows uses the PATH env? Does it look only ...
1
vote
1
answer
584
views
Prevent accidential creation of "backslash" filenames on Linux?
After years of working on Windows, at work I am frequently saving files in the wrong location by typing C:\tmp\filename.doc. Where on Windows this would have created a hierachy
C:\
'-- tmp\
'--...
0
votes
0
answers
550
views
How make one linux directory path "point" to a different path
I just changed distros and I have umpteen bash and vim scripts throughout various file systems which reference the path '/mnt/0' that now need to reference the path '/media/q/fs-uuid' instead.
Is ...
2
votes
1
answer
319
views
Adding a path to login.conf in Bash / FreeBSD
Due to the fact that freebsd pkg repos (binary) do not come with support for lame mp3, and I don't want to complicate things by having a dual dependency tree, I'm attempting a workaround by installing ...
0
votes
0
answers
1k
views
How to include subfolders in a Windows path?
I would like to follow this guide to lockdown a machine by blocking the execution of binary files for a specific user via a group policy in the MMC like so: https://blog.brankovucinec.com/2014/10/24/...
0
votes
0
answers
27
views
How to have a linux repo/application "find itself" on the filesystem?
I have a repo/application/ecosystem, call it qux. When qux starts, it needs to source qux-master/configure_qux.sh or maybe hit some scripts in the repo. However, I can't guarantee where qux-master is ...
0
votes
0
answers
2k
views
I changed my username but still the previous username is shown on the C:/Users
I installed Windows 10 with user1 username, after a day I went to control panel and changed the name of my username(Administrator and the only user) user1 to user2 and now it shows user2 in the ...
2
votes
1
answer
2k
views
Long path file successfully copied but cannot open in Windows 10
I wanted to copy files from a Windows 7 Machine to a Windows 10 Machine and used Network transfer via LAN, however, I wasn't able to copy all the data because I received an error at the end:
...
-1
votes
2
answers
546
views
Can someone give me a rundown on what exactly the path variable does? [duplicate]
I'm reading my textbook and it said if I'm downloading java jdk Id want to set my path variable. But I already download my java JDK and JRE and its completely functioning.(I'm using eclipse). However, ...
0
votes
0
answers
361
views
Trying to work with a WSL Ubuntu in order to use ROS
So I've been trying to use the WSL ubuntu app so that I can use this ROS, but I don't exactly understand what I've been doing wrong. I was trying to use this command line:
$ catkin_make
but then it ...
0
votes
1
answer
647
views
How to get a network path using net use, without having to map the path to a drive
So for example I have a network path \\MY-PC\Folder. I want a random PC in the network to just boot up and directly type net use to find the network path \\MY-PC\Folder without having to first map it ...