Questions tagged [path]

The general form of a file or directory name that specifies a unique location in a file system. In many Linux and Unix-like OS the PATH (all upper case) variable specifies the directories where executable programs are searched for.

A path represents a unique file system location using the directory tree hierarchy expressed in a string of characters in which path components, separated by a delimiting character, represent each directory. The delimiting character is most commonly a slash /, a backslash \, or a colon :.

A PATH (all upper case, ) in the Linux, UNIX-like operating systems and Windows contains list of directories, where the shell searches through, when a command is executed. The executables are stored in different directories in the OS. On UNIX-like OS the directories are separated by colon, on Windows by semi-colon.

Examples

Simple way to show the $PATH variable is:

echo "$PATH"
printf "%s\n" "$PATH"

A typical PATH looks like:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin

More generally, a path is a sequence of directions that, when followed in order, reach a certain object or location.

In addition to file system paths, there are paths through a tree:

root->left->right->right->left

or, again more generally, a set of attributes on an object.


There might be some other contexts where the term "path" is used to described something non-URI and non-directory related which are not covered by the general description.

One case would be in a context such as in the SCADA software, Ignition, where the term "path" is generally used to refer to tag-path - as Tag is the basic unit in the software, forming a hierarchical system like directory. Typical tag-path in Ignition look like this:

BaseFolder/MyTag

Or, more complexly when tag is not in the BaseFolder but referred from another "Parent" Tag:

BaseFolder/MyAdvanceUDTTag/MyBaseUDTTag/MyTag
19410 questions
6
votes
2 answers

Full target/current URL in play framework?

Any ideas how to get the current URL with the play framework? I'm also looking for the full target URL. I know I can use @{Controller.method} but I need the full url (for the Facebook like button)
user393964
6
votes
2 answers

How to set custom search paths for the terminfo database when building ncurses from source

How do I set custom search paths for the terminfo database when building ncurses from source? To be more specific, how do I force the primary directory to be searched in '~/.terminfo'?
Pádraig
  • 515
  • 1
  • 5
  • 7
6
votes
2 answers

flutter CustomPainter - how to cut out a hole in line path

I have a CustomPaint which paints an oval. I want to cut out a hole at a specific position which I couldn't figure out yet how that works. I tried: canvas.drawPath( Path.combine(PathOperation.difference, ovalPath, holePath), ovalPaint, …
tmaihoff
  • 2,867
  • 1
  • 18
  • 40
6
votes
2 answers

Sphinx: html_static_path entry does not exist

I am working with Sphinx and I want to set the html_static_path variable in the config.py file. The default was: html_static_path = ['_static'] My project setup is: docs/ build/ doctrees html/ _static/ …
Paul
  • 91
  • 1
  • 7
6
votes
2 answers

How to add multiple arrows to a path according to line direction using ggplot2?

I have a data frame that I want to plot a path from. The data frame also indicates the direction the arrows should have. I have been using the ggplot2 package and the geom_path() function for this, however, I want to add arrows that indicate the…
Daniel Valencia C.
  • 2,159
  • 2
  • 19
  • 38
6
votes
2 answers

Adding to the $PATH environment variable in a PHP script

I have a PHP script that is using wget to download some images. However, wget was installed using Homebrew so it's not available to the user running the PHP script. When I run exec('echo $PATH') I don't get the /usr/local/bin directory that contains…
Andrew
  • 227,796
  • 193
  • 515
  • 708
6
votes
1 answer

Docker command not working in Git Bash on Windows (exec: "com.docker.cli": executable file not found in %PATH%)

I have Docker Desktop for Windows and Git (including Git Bash) installed on my computer. The docker command works in the Command Prompt and in Powershell, but not in Git Bash. When I run the docker command in Git Bash, I get the following…
PlutoHDDev
  • 540
  • 7
  • 25
6
votes
1 answer

std::fs::canonicalize for files that don't exist

I'm writing a program in Rust that creates a file at a user-defined path. I need to be able to normalize intermediate components (~/ should become $HOME/, ../ should go up a directory, etc.) in order to create the file in the right place.…
Aayla
  • 111
  • 5
6
votes
2 answers

Where are .dex files located after apk installation?

After installation of apk file on android device, where exactly does the dex file get stored or what is done with dex? Could any one please explain how the installation happens on android device?
Shrenik
  • 399
  • 2
  • 5
  • 22
6
votes
1 answer

Gatsby- Can't resolve 'path' in 'C:\Users\...\gatsby-starter-hello-world\node_modules\postcss\lib'

I'm trying to use sanitize-html package along with @types/sanitize-html for typescript, but it causes the following error- ERROR in ./node_modules/postcss/lib/input.js 4:30-45 Module not found: Error: Can't resolve 'path' in…
Sapinder Singh
  • 559
  • 6
  • 21
6
votes
1 answer

Eclipse with $LD_LIBRARY_PATH

I have some library files built using JNI in the directory /usr/local/lib/. If i start the Eclipse from luncher, the path is never picked up by Eclipse, so I need to specify -Djava.library.path to the Run Configurations. But if I start the Eclipse…
user200340
  • 3,301
  • 13
  • 52
  • 74
6
votes
2 answers

iexpress extract files then run script referring extracted file

I was trying to deploy my project with IExpress. I have the following scenario. I want to extract some files to a location preferably c:\program files\. Then after it copies all the files i want it to run a .cmd file (which is a script). the script…
Anirudh Goel
  • 4,571
  • 19
  • 79
  • 109
6
votes
4 answers

How to evenly distribute points around the perimeter of a rectangle

I'm looking for a way to distribute points along a portion of the perimeter of a rectangle. These points needs to be evenly far away from each other. I have a rectangular (usually square) bounds, and 2 points (ps and pe) along that perimeter that…
DanSC
  • 63
  • 3
6
votes
2 answers

Adding path variable in wsl

I have added a path in bashrc, still, the command is not found. When tried in ubuntu it worked but not in WSL. Why this happen?. export PATH=\wsl$\Ubuntu\usr\local\mbdyn\bin:$PATH added same path in .bashrc error: command not found **Please see the…
Jithinraj
  • 71
  • 1
  • 1
  • 4
6
votes
6 answers

How to find path from where current process/executable is running?

I am running some executables while connected to a local unix server box. Say, I'm trying to run an executable 'abc'. Now the server might have provided an alias for 'abc'.. How do I get to know of this path? As in, if I invoke 'abc', it might…
halluc1nati0n
1 2 3
99
100