The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [path]

PATH (all upper case) is the name of an environment variable on Unix-like operating systems, DOS, OS/2, and Microsoft Windows, specifying a set of directories where executable programs are searched for.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

Show the path length in bytes linux

Still a bit green with linux/unix but AWS File storage gateway has a max path length https://docs.aws.amazon.com/storagegateway/latest/userguide/resource-gateway-limits.html Is there a cmd that ...
1
vote
1answer
31 views

/usr/local/bin for OpenWrt

I’m attempting to add support for using Sublime Text and TextMate with files on the router: https://packagecontrol.io/packages/RemoteSubl. Essentially, the script needs to be added to the /usr/local/...
-1
votes
1answer
24 views

uninstalled program in PATH

I have uninstalled gnome-screenshot, but when I write gnome in terminal and tap TAB, it still suggests gnome-screenshot (and other gnome apps, but it's correct). If I want to use uninstalled gnome-...
0
votes
0answers
17 views

“Backups” (deja-dup): after installing duplicity 0.8 from source, “Backups” can't find it

When using "Backups" (a.k.a. deja-dup) - it doesn't find duplicity, although it's installed: I have been trying to backup using "Backups" (a.k.a. deja-dup), and it turns out that the current ...
17
votes
4answers
33k views

how to set crontab PATH variable

I had a problem running a script from crontab. After some research I understood the problem was because PATH parameter doesn't include /sbin. I looked what it does include in /etc/crontab: PATH=/...
0
votes
1answer
33 views

How to set PATH to symlinked directory in bash csh

I have the directory /data/bin and in my home directory is symlink /home/myuser/bin -> /data/bin I have set PATH into the /home/myuser/bin/ When /home/myuser/bin is the directory, the PATH works fine,...
0
votes
1answer
923 views

Mount Davfs Cannot evaluate path of mount point

I'm trying to mount a webdav on my debian distribution, but I have an error when I try to do so. The error is : ~# mount /mnt/dav >/sbin/mount.davfs: can't evaluate path of mount point (null) ...
4
votes
1answer
1k views

anaconda Qt vs system Qt

The anaconda python framework includes its own Qt shared libraries, among other ones. Because of the nature of the framework, it must appear first in the PATH environment variable so its python ...
0
votes
1answer
28 views

How can “which” find commands inside directories where I have no read permissions?

On my work PC, I noticed that the which command seems to be able to find executables in directories, that I have no read permissions for. $ export PATH=/usr/sbin:$PATH $ ls /usr/sbin ls: cannot open ...
1
vote
0answers
24 views

Performing job array by reading in file paths from a text file

I am trying to perform a job array using script below. #!/bin/bash --login #$ -cwd #$ -t 1-4 module load apps/bioinf module load apps/trimmomatic/0.36/noarch file=`awk "NR==$SGE_TASK_ID" ~/scratch/...
1
vote
1answer
27 views

Adding a directory to PATH to run scripts from subdir

I'm using Ubuntu and I'm trying to add a folder to my PATH that contains subfolders including my scripts. My folder paths are: /opt/tools/utils/my_script.sh /opt/tools/steps/my_script.sh Other ...
8
votes
2answers
55k views

Basic commands not working i.e: -bash: ls: No such file or directory

I'm new to Unix and in the process of installing a program for my dissertation I must have played with the PATH for the basic Unix commands such as ls. Every time I type ls and the directory name I ...
0
votes
1answer
28 views

real time global change for environment variables PATH

What is the best way to modify PATH and LD_LIBRARY_PATH so that it has a real time affect for any logged in user that does new terminal window in runlevel 5 {graphical.target}? This is on RHEL/CentOS ...
1
vote
2answers
6k views

CentOs 7 Python Issue “-bash: python: command not found”

I asked this at stackoverflow, but just realized it might be best here. If I need to delete it over there or should not have posted here, please let me know. I am still new to this site. Thanks in ...
1
vote
1answer
87 views

create a folder from dynamic path location

I would like to create a folder which location is available in abc.csv file. abc.scv content the following fields id,path and file name we should read the file name and move the file in the path ...
0
votes
2answers
2k views

.profile in SCO

Where can I find the .profile in my user's logon in SCO? I am needing to edit it, so I can add a PATH to it, so that my PATH loads up in start up. I have to add: echo $PATH ... as I have already ...
22
votes
2answers
3k views

Does POSIX guarantee the paths to any standard utilities?

From C, what's the easiest way to run a standard utility (e.g., ps) and no other? Does POSIX guarantee that, for example, a standard ps is in /bin/ps or should I reset the PATH environment variable ...
0
votes
1answer
88 views

how to check if MKL is installed and find it's path

Please help me out. it has been 3 hours that I am trying to install OSQP. I needed to install MKL. I downloaded the full package and installed it. but I don't know where is it and how I can check if ...
28
votes
9answers
114k views

Removing a directory from PATH

I'm trying to compile wxWidgets using MingW, and I have cygwin in my path, which seems to conflict. So I would like to remove /d/Programme/cygwin/bin from the PATH variable and I wonder if there is ...
0
votes
1answer
39 views

How do I fix the “processing-java: command not found” error in the terminal

I have installed processing-3.5.3 IDE but really want to use the Sublime text editor as my goto for processing sketches. What I have done so far: Install the "Processing" package in sublime. ...
22
votes
1answer
1k views

How did the ~/.local/bin thing start? How widespread is it?

I find more and more tools that put executables into ~/.local/bin. I am old and for me ~/bin is the place in my $HOME for executables. Where did this crazy new fashion originate? Why are people doing ...
1
vote
0answers
22 views

Set path for non shell user

I have installed Adopt OpenJDK version of Java. I set it up so all users will have JAVA_HOME set and that the bin folder for Java is in the PATH. However the software I installed afterwards that ...
1
vote
0answers
48 views

sudo root cannot find executable on path

I am on CentOS 7.5 and installing OpenJDK 11 from Adopt OpenJDK. It doesn't have an installer package so I am manually putting it in /usr/share. I then create the file /etc/profile.d/java.sh to set up ...
1
vote
1answer
33 views

Command in path not found [duplicate]

I've a command in the ~/.local/bin/ path (lets call it dog). Calling the command with the full path ~/.local/bin/dog works as expected . When I do which dog I get the expected ~/.local/bin/dog. When ...
0
votes
2answers
24 views

How to search for asset files in a PATH-like list of locations?

I want to be able to easily search through a list of possible asset file locations for particular files, using similar semantics to the way posix shells search for binaries along the PATH based on a ...
-2
votes
2answers
727 views

Conan: Command Not Found

I'm using a RPI 3B uname -a returns: 4.14.98-v7+ #1200 armv71 OS is stretch gcc version is 4.9.3 I'm attempting to setup my RPi to be a BLE gateway as per this project on hackster.io. I executed ...
1
vote
0answers
125 views

How do I get Rofi/Dmenu to read my $PATH?

I have a very similar issue to How to get installed application to be detected by rofi? - or rather a followup question. My question is, outside of symlinking, is there a way to export my path for ...
12
votes
1answer
608 views

What is the difference between $path and $PATH (lowercase versus uppercase) with zsh?

In FreeBSD 12, using the zsh shell, I noticed this difference when looking at $path (lowercase) versus $PATH (uppercase). echo $path /sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin /...
39
votes
7answers
39k views

Why are PATH variables different when running via sudo and su?

On my fedora VM, when running with my user account I have /usr/local/bin in my path: [justin@justin-fedora12 ~]$ env | grep PATH PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/...
0
votes
2answers
2k views

echo $PATH does not reflect the “export PATH” I made in shell script

I have created a shell script that will check if a certain value is existing in PATH. If not, then it will add that value to the PATH environment variable. It was successfully added, based on the ...
0
votes
0answers
41 views

Unable to execute bash scripts from within fish-shell

I have a collection of bash scripts that I have added to the PATH so that I can execute them from anywhere. export PATH=$PATH:~/<path>/<to>/<scripts> so along with ./<path>/&...
-1
votes
1answer
65 views

What is correct syntax to for loop variable in PATH?

I have to execute following loop: root1=path/to/root1 root2=path/to/root2 for i in {1..2}; do ${root${i}}; done It doesn't give desired output: path/to/root1 path/to/root2 Admin suggested ...
6
votes
3answers
7k views

Getting the current path in .desktop EXEC command

Im trying to make a .desktop file run a .sh which is stored in the same directory as the .desktop. The whole directory needs to be portable and moved from machine to machine. my run script is run.sh ...
48
votes
16answers
26k views

Remove duplicate $PATH entries with awk command

I am trying to write a bash shell function that will allow me to remove duplicate copies of directories from my PATH environment variable. I was told that it is possible to achieve this with a one ...
1
vote
3answers
22k views

installed java, but java -version not showing new java

I just installed jdk1.6.0. I have tried multiple ways to set the path variable and make java 1.6 my new running version. And nothing is working. Running centos5 virtual machine. alternatives --config ...
31
votes
9answers
6k views

How can I cleanly add to $PATH?

I'd like a way to add things to $PATH, system-wide or for an individual user, without potentially adding the same path multiple times. One reason to want to do this is so that additions can be made ...
1
vote
0answers
43 views

parallel-ssh not appears in any path after pip installation

we installed the parallel-ssh but after pip successfully installation the command parallel-ssh not appears in any path where we are wrong? locate parallel-ssh which parallel-ssh /usr/bin/which: ...
0
votes
1answer
30 views

csh: Changing path in non-interactive login

I want this: $ ssh nopathcsh@lo 'echo $path' /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games To return this: /usr/bin /bin I have tried changing and ...
0
votes
2answers
69 views

Recursively replace path in a files in directory, except binary files

How to recursively replace strings (location path) in the files in directory, except binary files? I tried command find . -type f -exec sed -i 's/foo/bar/g' {} + but it replaces also strings in ...
922
votes
11answers
2.2m views

How to correctly add a path to PATH?

I'm wondering where a new path has to be added to the PATH environment variable. I know this can be accomplished by editing .bashrc (for example), but it's not clear how to do this. This way: export ...
1
vote
1answer
103 views

How to properly solve “git-gui: command not found” on Arch Linux?

The Arch Linux git package installs git-gui under /usr/lib/git-core/. This means git-gui cannot be launched directly from the terminal without specifying the full path: $ git-gui bash: git-gui: ...
49
votes
3answers
23k views

Is it safe to add . to my PATH? How come?

I've seen people mention in other answers that it's a bad idea to include the current working directory ('.') in your $PATH environment variable, but haven't been able to find a question specifically ...
0
votes
0answers
31 views

How can I override /bin in my PATH? [duplicate]

I would like to force default execution to happen from my home directory. However, regardless of what I try, it seems that the whereis utility finds programs to be in /bin instead of /home/user. E.g....
1
vote
1answer
58 views

$PATH: output showing malicious program?

I read that using echo $PATH, for NON-root users should resemble: /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/username/bin: I read that using echo $PATH, for ROOT users should resemble: /...
0
votes
3answers
113 views

Assign $pwd to $PATH variable conditionally

I want to add my current working directory with its project-specific bin directories to my $PATH when the directories are present. So I added these lines to my .zshrc: [ -d "$(pwd)/vendor/bin" ] &...
6
votes
3answers
36k views

ldd does not find path, How to add

I know this question isn't very new but it seems as if I didn't be able to fix my problem on myself. ldd generate the following output u123@PC-Ubuntu:~$ ldd /home/u123/Programme/TestPr/Debug/TestPr ...
0
votes
1answer
29 views

Use sed to append data BEFORE a closing double quote encasing a Path

I need to append the path /opt/dell/dcc of an application outside of the default path statement in /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/...
0
votes
1answer
43 views

Since aliases are not inherited, is there any alternative to exporting the executable on the PATH?

I am trying to setup a system to switch between bash versions on a Mac. I have this which works: change_bash_version(){ if test "$1" == "3"; then export PATH="$HOME/bash/versions/3.2.57:${...
0
votes
0answers
15 views

how does a system package know to look in the user python site-directory instead of the system python site-directory?

The virtualenv documentation 1 says: Using pip install --user is less hazardous but can still cause trouble within the particular user account. If a system package expects the system provided ...
0
votes
1answer
25 views

Specifying path to a file within a program command line

I am using a program called Diamond and I have a script that goes like this: cd /srv/scratch/myname/hello diamond blastp -d /srv/scratch/myname/goodbye/inputFile1.dmnd -q inputFile2.faa -o /diamond/...