Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
12 views

cannot find package with running go build

root@kali:~/subfinder# go build main.go:15:2: cannot find package "github.com/subfinder/subfinder/libsubfinder/helper" in any of: /usr/lib/go-1.11/src/github.com/subfinder/subfinder/libsubfinder/...
1
vote
1answer
19 views

Messed up environment variables in Centos 7

When I am running my maven build I am getting this error: Error: JAVA_HOME is not defined correctly. We cannot execute /usr/bin/bin/java I have edited .bashrc, .profile, /root/.profile and /root/....
0
votes
3answers
269 views

Bash script with limited path

I'm trying to write my first bash script to essentially install a bunch of dependencies and then execute a script. I'm struggling debugging this with the user b/c I'm a dev which means I already have ...
0
votes
0answers
6 views

Can run the command when specify the path, but cannot run it by name although PATH points to it [duplicate]

I have the following setup: $ which pip3.7 /py36env/bin/pip3.7 $ sudo pip3.7 list sudo: pip3.7: command not found $ sudo /py36env/bin/pip3.7 list Package Version ------------------...
3
votes
2answers
309 views

Could PATH contain newlines?

It is known that a path could contain newlines in any of its components. Should we conclude then that the environment variable $PATH could contain newlines ? If so, how to split the $PATH into its ...
-1
votes
0answers
13 views

how to permanently set path for flutter in ubuntu 18.04 [duplicate]

I set path temporarily for flutter and that works fine. However, I have to set it for every terminal session. Moreover I am also confused that where to change the path, I mean in .bashrc or .profile ...
1
vote
1answer
41 views

Linux's command line behaviour (Ubunto/Deb) in running an executable file [duplicate]

@user-123:~$ Downloads/execfile-3.4/execfile @user-123:~$ @user-123:~$ cd Downloads/execfileparentdir-3.4/ @user-123:~/Downloads/execfileparentdir-3.4$ execfile execfile: command not found @user-123:~...
2
votes
2answers
49 views

Set $PATH as OpenLDAP attribute

I need to set $PATH for OpenLDAP users (CentOS6/7). Not in .profile, not in .bashrc on client machine, but as attribute in LDAP on the LDAP server so it is set whenever the user logs onto any host via ...
0
votes
1answer
49 views

Searching files in $PATH

I have some folders specified in my PATH environment variable. How do I list all the files in these folders?
0
votes
0answers
16 views

Include directory not found after installing xtensa compiler

I followed these steps to install ESP8266 SDK and Xtensa toolchain separatedly (make STANDALONE=n) on fresh Lubuntu LTS distro. The installation was successfull, I added $HOME/esp-open-sdk/xtensa-...
1
vote
1answer
29 views

How can I write out the path of 0 size files

How can I modify my query (below) to get the (absolute) path of all the 0 sized files within a directory? find ./ -size 0 -print
1
vote
1answer
22 views

“Right” way to deal with adding packages to path

I downloaded and installed the Haskell Platform. And It got installed (default) to /usr/local/haskell/ I want to add the binarys inside /usr/local/haskell/bin/ to my path. But I dont want (if ...
-3
votes
1answer
35 views

Gnu/Linux: Listing files, with certain characters in the file-name, while in a different directory

How do I list all files and directories in the /etc/ directory, which have one or more digits in its file-name, and save the output to a file, in the home directory. The output must have the full ...
0
votes
1answer
34 views

Is there a command that preloads `open()`, `fopen()`, etc. functions like `proxychains`?

I learnt that we can use LD_PRELOAD to preload open() function to fake a path to a process. I learnt it from here: Is it possible to fake a specific path for a process? I am wondering if there is a ...
1
vote
2answers
399 views

Whose PATH value is the default PATH value in a crontab file? [duplicate]

root's default PATH is $ sudo su # echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games After creating /etc/cron.d/myjob 35 * * * * tim ( date &&...
0
votes
2answers
194 views

Removing root slash with `-p1` and so forth [duplicate]

I understand that patch allows patching applications when some path components are removed. While -p0 argument will treat a path as is: /var/www/html/example.com -p1 will remove the root slash, so ...
0
votes
1answer
25 views

Run programs from a different set path

I already read many of the ways to run a program when it is installed in a different address than the $PATH. I have a different problem. On PC0, a set of packages (libraries and executables) were ...
0
votes
3answers
47 views

Cut path to first four directories

I have several projects where I have to use the same command. The projects always are in /home/[username]/public_html/[prjectname]/ I'd like to run this command from every directory of my projects, ...
0
votes
1answer
23 views

RHEL 7: Add PATH variables globally

Under my profile and the .bashrc file. I have added several environment variables. Example: export HADOOP_HOME=/app/hadoop-2.7.3 When I try to run any "hadoop" command I get command not found. ...
0
votes
1answer
71 views

Ubuntu 14.04.2 LTS: 'find' not found in PATH or not executable

I am trying to install some graphics libraries with the following command: sudo apt install jpegoptim optipng It however fails to run with stating the following: Reading package lists... Done ...
0
votes
2answers
33 views

Properly feed paths to executables in bash script

Hello all I have a text file (1.txt) that contains full paths to binaries which I need to execute a command (val_bin) for each path in the file. 1.txt Example: /source/ed/dev/ed/ab/ed_len/comercial/...
0
votes
2answers
264 views

Where is Cygwin set its PATH variable?

If I write echo $PATH in my Cygwin window (mintty) I get a list of paths. That list does not match the Windows Envirnonement variables list. I cannot find a file, where is the variable $PATH set. None ...
0
votes
0answers
28 views

How to modify bash completion for command names to match custom list only?

I want to customize bash completion on command names, such that matches are looked for in a particular list only. If I try the following: complete -E -W "foo bar" it works fine on an empty line, ...
4
votes
1answer
239 views

Installed program executable runs from wrong location

I installed parcellite in Ubuntu (downloaded from http://parcellite.sourceforge.net/) After installing from sources, sudo make install, I can see that it is installed at below location. However, ...
0
votes
2answers
41 views

Add directory to all PATH-like variables [closed]

Is there a function that can add a root folder to all path-like variables? At the moment I use this function: function prepend_paths() { ROOT_PATH=$(readlink -f $1) export PATH=$ROOT_PATH/bin:...
-1
votes
1answer
52 views

Ruby on Rails Routing Error [closed]

I am running ruby on rails on an Ubuntu Droplet and I am encountering the following error when I navigate to my domain name: Routing Error uninitialized constant HomeController Rails.root: /home/...
0
votes
1answer
33 views

updating PATH to work for every current working dir

Say I have this defined for PATH export PATH="./node_modules/.bin:${PATH}" does that mean that any process that uses PATH, will have a reference to node_modules/.bin from the current working dir?
0
votes
1answer
25 views

Command present in two locations and both locations are in PATH [duplicate]

I have this situation in which the same command/program (eg: myScript) is present in two locations, /usr/bin and /usr/local/bin. Both these locations are in the PATH. When I run $ myScript How do ...
0
votes
1answer
85 views

Systemd custom service doesn't read PATH

I am trying to run a Node.js app as a service in Debian 9. So, following some tutorials, I've made a service like that. [Unit] Description=bumer API Http Server [Service] PIDFile=/tmp/bumer-service....
1
vote
1answer
70 views

execl() is not executing a command without its absolute path

I have C program saved under /usr/sbin/. This program prints "Hello World" every two seconds. I can call/execute this program from any folder. When I write C program with system("a.out"); in it, it'...
2
votes
1answer
164 views

Command not found when run as sudo

I'm running centos7. I installed puppet. if I write puppet as a user, I get a proper output. If I write sudo puppet I get command not found. The really weird thing is, if I do sudo su - and become ...
0
votes
0answers
37 views

Exporting Ruby Gems to $PATH

I am trying to run some ruby gems from my terminal, but I am getting the following error: You don't have /Users/developer/.gem/ruby/2.3.0/bin in your PATH, gem executables will not run. I added ...
2
votes
1answer
113 views

Bootable ISO vs. Partitioning

I would like to create a bootable Linux ISO on a USB drive under Debian 9. I found that the ISO is only bootable if it has been written to the disk /dev/XdY. If the ISO is written to a specific ...
1
vote
0answers
32 views

Windows PDF viewer interprets hyperlinks incorrectly from Linux converted PDF?

I am operating on a RPi Model 3B with Jessie OS and Python version 2.7.9. I am using XlsxWriter (ver1.1.0) to write an .xlsx file and then converting it to PDF using LibreOffice's conversion code, as ...
2
votes
4answers
273 views

Find exclude path containing specific files

I am trying to find all directories in a folder recursively while exclude all git submodules by excluding all path containing .git file. How could I do it? Explanation: .git file exists at the ...
2
votes
3answers
80 views

Find command that excludes paths listed in a file

I need to exclude a bunch of paths from a find command. For example: find "$(pwd)" -not \( \ -path "*/.git"\ -o -path "*/.git/*"\ -o -path "*/.vscode"\ -o -path "*/.vscode/*"\ -o -path "*/...
0
votes
1answer
44 views

How can I find exactly which files have been accessed after a command runs in tcsh?

how can I find which files tcsh reads to TAB complete the second word of a command, as opposed to the first word. I know I can just use whereis complete to see the path to *.1.gz file, but that is ...
1
vote
1answer
49 views

How can I set PATH in the `dash`(or bash) shell so that it doesn't search any dirs ? because empty PATH searches current directory

In Dash if I set the PATH to an empty string, it searches in current directory: $ export PATH= $ echo $PATH $ emptyexe $ /usr/bin/ls emptyexe emptyexe $ pwd /home/ctor $ cd .. $ emptyexe dash: 36: ...
0
votes
0answers
26 views

Changing symlink path creates additional folder

I tried to change an existing symlink which is accessable under cd ~/symlink_file_name to another folder with the following command: ln -sfn /usr/home/myusername/testfolder symlink_file_name (since ...
1
vote
0answers
91 views

Unable to run mvn clean install on macOS Sierra 10.12.6

I am using maven-3.1.1 along with eclipse neon for RCP and jdk-7. I am running into the following issue - Error with Maven command: mvn clean install Problem running the Maven command because the ...
0
votes
2answers
60 views

Editing bash $PATH

I want to edit my bash $PATH globally for all shells. I was told that I could add/remove stuff from my .bash_profile or .bashrc to do this, but when I look in these files, they are missing folders ...
1
vote
1answer
334 views

Setting the root PATH for su [duplicate]

When I am changing (on my debian box) to the root user with su, apparently the PATH is not correctly set. Some vital directories like usr/local/sbin are missing. In /etc/profile I have the following ...
0
votes
0answers
34 views

Get the normal $PATH when calling it in a subshell

How could I call the $PATH variable in a subshell, such that I get the result I would in the normal shell? [ec2-user@ip-172-31-45-160 ~]$ echo $PATH /usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/...
0
votes
1answer
105 views

PATH env var declared in /etc/environment not inherited?

Working on Ubuntu 16.04.05. According to the official debian and ubuntu documentations, variables declared therein should be inherited by all users; Then how is the following explained: root@pkara-...
2
votes
0answers
85 views

Issue setting environmental variable in tmux and screen

Whenever I use Tensorflow (a python library) from within a tmux or screen session, I have to manually change the environmental variables. Specifically, I have to type export PATH blah blah blah and ...
0
votes
1answer
54 views

Terminal doesn't understand some easy commands and keeps trying to install package 'sed' after trying to add directory to PATH

Learning linux so I wrote a simple script to test different scripting variables and arguments. Tried adding the directory to my PATH, something went wrong. I can't even use the ls command... I have ...
0
votes
1answer
68 views

Linux - importing “.” or “::” within the root PATH [closed]

I am looking into Miscellaneous Config and I am researching roots PATH. I am told that . and :: should be removed from the path as it is a security threat. I have the following example output of the ...
1
vote
1answer
30 views

Can't run a script

I'm pretty new to scripts and have been trying to learn beginner scripts. I'm running Ubuntu 18.04 LTS. I figured out the terminal uses the .bashrc file. I added: export PATH="/home/keaton/...
1
vote
2answers
48 views

How many times is the disk accessed?

This is regarding generic UFS. From what I understand when an absolute path is given (eg: /home/userU/file.txt) the disk is accessed for each directory and the file. Hence in this case the disk is ...
1
vote
1answer
38 views

Which is not searching full $PATH

If I run sudo which abc I would expect it to search the superusers $PATH for the program 'abc', but it looks like it only searches a subset. I can see this by running sudo echo $PATH and comparing ...