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.

learn more… | top users | synonyms

0
votes
0answers
31 views

Not able to install or remove any package [on hold]

I have lost the 'find' utility in my kali sana. When I try : ls -l /bin/find /usr/bin/find I get: ls: cannot access '/bin/find': No such file or directory ls: cannot access '/usr/bin/find': No ...
1
vote
2answers
19 views

To Have Eclipse 4.5 in Path?

I downloaded the precompiled Eclipse Mars 4.5 in the official site here. Pseudocode Extract the tarball eclipse-jee-mars-2-linux-gtk-x86_64.tar.gz Move extracted Eclipse directory to some location ...
0
votes
2answers
13 views

find composer global install path as root

I have some php packages installed globally using php composer within a script sudo -u me composer global require "phpmd/phpmd" I want to find the path of these globally installed php packages. ...
1
vote
1answer
55 views

Safe way to install .sh script in /usr/local/bin?

I want to include correctly the following script in Ubuntu 16.04. Code #!/bin/sh # http://tex.stackexchange.com/a/20886/13173 # $Id: pdf2eps,v 0.01 2005/10/28 00:55:46 Herbert Voss Exp $ # Convert ...
0
votes
0answers
26 views

How to know the depth of a path? [migrated]

I'm debugging my own C code, which allocates memory for the current path using getcwd. Valgrind reports a memory leakage: snprintf(shell_prompt, sizeof shell_prompt + sizeof cwd + 128, "%s: $ ", ...
1
vote
2answers
68 views

Bash commands not found

I use CentOS 7 and I install anaconda and some tools, after that some basic command like clear which not work. [zhilevan@localhost ~]$ clear bash: clear: command not found... when I echo $PATH I ...
1
vote
1answer
121 views

File Path problem

I am relatively new to Unix, so perhaps this is an extremely simple problem. Anyways, the problem is such: I am taking an online course and the professor typed: echo $path and got this ...
1
vote
1answer
24 views

Does gnome-terminal modify PATH when invoking shell

I guess gnome-terminal might have modified PATH environ variable when invoking shell. Specifically, $HOME/.local/bin:$HOME/bin will always be appended to PATH. I did the following experiment to ...
0
votes
2answers
36 views

How to see and use the last paths used in Terminal? [duplicate]

I'm quite a newbe. I was wandering: is it possible to see the last paths used in terminal (bash, whatever.., I use a Mac), something like what you do with recent commands? I often use the terminal on ...
1
vote
3answers
47 views

ldd don't 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
22 views

cron not working with commands symlinked in custom PATH

I have a script job.sh in /home/user/scripts, which is then symlinked to /home/user/bin/job. The custom binaries path has been included in .bashrc, so whenever I issue the command job param1 etc from ...
1
vote
1answer
14 views

Should I set PAGER environment variable, alias or symbolic link?

I noticed that when using aliases, some programs launch pager directly (either from PATH or through PAGER). I'd like to define default pager for all cases, not just when I type the command. Should I ...
3
votes
1answer
42 views

Is it possible to add a single executable, rather than an entire directory, to my $PATH?

I have XAMPP installed in OSX, and by default it prepends the path to its own bin directory (full of various utilities) to my $PATH variable: # Add path to XAMPP PHP version export ...
0
votes
1answer
19 views

Mess with an export PATH

I have tried to include INTEL PARALLEL COMPOSER to my .bashrc.But something went wrong.Now I can not use gedit or vi editor. milenko@milenko-HP-Compaq-6830s:~$ gedit .bashrc Command 'gedit' is ...
-1
votes
2answers
37 views

Command passed as an argument to another command is not found in PATH

Generally when a command appears as an argument to another command e.g. command1 command2 how is command2's executable searched for? Is it searched in $PATH? Is it specific to how command1 ...
0
votes
1answer
37 views

PATH not getting exported from ~/.profile until manually sourced

I am trying to modify my PATH in ~/.profile: export PATH=$PATH:/opt/jdk1.8/bin echo "Path is exported." I will always login via SSH so that's why I have it in ~/.profile. I am using zsh (oh-my-zsh) ...
0
votes
1answer
17 views

Pitfalls to symlinking python2.7 to python?

I have a CentOS 6.7 machine with the "system" python (2.6.6) installed from an RPM at /usr/bin/python. We installed an additional version installed from source (2.7.11) used for development purposes ...
1
vote
2answers
42 views

executable wrapper, run original executable from tail of PATH

There's an executable /usr/bin/foo which I and other scripts use but it misbehaves a bit so I made a Bash wrapper of the same filename in /usr/local/bin/foo where I fixed its misbehaviour. My PATH is ...
1
vote
2answers
38 views

PATH configuration no effect

I have a question regarding the PATH variable and ways to configure it. The question stems from the fact that the installation of a software package am dealing with comes with a bash script which is ...
2
votes
3answers
125 views

Bash one-liner to temporarily append path for chained commands without additional bash invocation?

Consider this: $ cd /tmp $ echo "echo YES" >> prog/myprog $ chmod +x prog/myprog $ prog/myprog YES $ myprog myprog: command not found I can temporarily modify PATH to call myprog by name like ...
0
votes
1answer
30 views

.zshenv not sourced on ssh login?

According to the docs .zshenv is sourced on all invocations of the shell, unless the -f option is set. It should contain commands to set the command search path, plus other important environment ...
0
votes
1answer
47 views

Why is bash not respecting ${PATH} and/or symlinks? [duplicate]

I am on OSX and installed Homebrew to get the GNU coreutils. I wanted gsort to be used instead of the preinstalled sort command so I created a symlink to gsort. My limited experience tells me that ...
0
votes
1answer
14 views

Change which ssh path

Good day all, My #which ssh returns /usr/local/bin/ssh however I would like to return /usr/bin/ssh. Both /usr/local/bin/ and /usr/bin/ are in the $PATH. How do I achieve this?
1
vote
2answers
63 views

Why some commands don't load user environment when executed with ssh? (while other do)

On a target machine (OS X El Capitan) I have brew in /usr/local/bin. When I try to get brew's path I get no result: # ssh vagrant@127.0.0.1 -p 2222 which brew # Troubleshooting: brew is in ...
1
vote
3answers
44 views

.bashrc path problems

Can anyone tell me how to add a directory, say Idl, which contains many sub-directories to my IDL_PATH in .bashrc such that when I do source .bashrc, I will be able to it is able to run all the ...
0
votes
0answers
49 views

Command not found, only when used in a script

I installed pup on my mac using homebrew. When I try this command in my terminal cat index.html | pup -p 'div[class="quote"] text{}' >> quotes.txt it works fine but when I use it in a ...
0
votes
2answers
45 views

ls, mv, cp, cat, vi, command not found

I was trying to add a new path to my bashrc file but I have seemed to messed something up. after I $ source ~/.bashrc I no longer can use the commands ls, mv, cp, cat, vi, and probably others that I ...
1
vote
1answer
122 views

How to find files and act on them (find + exec)

I have downloaded about 3200 websites to the depth 2. So now I have one master folder (abc) that contains many folders, containing files for each website. So my folder abc contains 3200 folders and ...
0
votes
1answer
35 views

Editing the variable PATH

I want to start script just by typing script not the full path of the script for example ~/Desktop/name/script so i tried to edit variable PATH PATH="$PATH:~/Desktop/name" in the name folder i have ...
16
votes
2answers
1k views

What does ${PATH:+:${PATH}} mean?

I recently noticed the following in my cygwin profile, more precisely: /usr/local/bin:/usr/bin${PATH:+:${PATH}} What does it mean? Why is not just $PATH? Is this an 'if $PATH exists then add ...
4
votes
1answer
49 views

OSX 'env python' returns different interpreter than 'python' [duplicate]

I cannot figure out what is going on here. I have just installed Anaconda, and I am trying to get my #! /usr/bin/env python shebang to return the new interpreter. I have no python aliases, and ...
0
votes
1answer
28 views

No paths getting set on login - bash not loading correctly?

I don't know if this is because of virtualenv, but I ran the virtualenv command to set up a tensorflow environment. Now no paths get loaded at all. Nothing works. To do even basic commands (such as ...
0
votes
0answers
38 views

How to add the location of websocketd to your PATH variable?

I'm new to Linux environment (Mint), and recently I was trying to create a websocket for my HTML web app. Eventually I came across websocketd. As per installation steps, I'm supposed to add this ...
1
vote
2answers
38 views

Is it possible to specify a path in which a directory name is variable?

Asking this question on mpv player and dvds, I stumbled into a more generic question: is it generally possible to specify a path in which one of the directory names is variable? Let's say that I want ...
1
vote
2answers
43 views

Is it possible to play the VIDEO_TS DVD folder with a generic command (mpv)?

I want to use a command for mpv video player that would play the VIDEO_TS folder (which in the case of MPV means starting directly the main video of the DVD. The main advantage of this is that in ...
0
votes
1answer
78 views

I have the latest version of hping3 installed, but Bash says “command not found”

I'm trying to use the hping3 tool on Debian GNU/Linux (Jessie), and it doesn't want to play nice. When I run apt-get install hping3, it tells me that it's at the latest version already. When I run ...
3
votes
2answers
192 views

echo $PATH shows path to python scripts, but they cannot be executed

I am new to using the shell, and wanted to create a directory in $HOME where I can put all my python scripts, set a path to that directory, so that I can go into any folder on my Mac and execute those ...
0
votes
3answers
61 views

Add PATH to .bashrc

I am trying to install Anaconda on my Linux machine. Right or wrong, at the end of the instructions they say to add this line to the file .bashrc in your home directory: export ...
0
votes
1answer
41 views

$PATH variable for CRON in OpenSuse

I have a script written which works perfect on terminal however gives error when called through crontab. It took me a while that the problem is with the cron environment not my script. so I tried ...
0
votes
0answers
65 views

add android studio to PATH environmental variable?

I looked around some sites and yielded no success. I tried to modify .bashrc: # User specific aliases and functions export PATH="~/android-studio/bin/:$PATH" and after I typed studio.sh on the ...
0
votes
0answers
15 views

How to edit $PATH? [duplicate]

After searching, I can't still figure out how to edit $PATH. Now its value is: ...
0
votes
1answer
49 views

bash: /home/hadoopuser/hadoop/sbin: Is a directory

I am in Ubuntu 14.04 LTS. Based on how to set a Hadoop cluster I am executing this: # Add Hadoop bin and sbin directory to PATH export PATH=$PATH:$HADOOP_HOME/bin;$HADOOP_HOME/sbin where I know ...
2
votes
0answers
11 views

How can I add my program to system program list (Ubuntu 14.04)? [duplicate]

I made a my program in c++ and generated its executable but every time I need to use my program I need to change my directory to the folder and then execute it. How do I make my program run like an ...
0
votes
2answers
34 views

How to set the path for one cron command

I had programmed a cronjob to restart a service with an apparent memory leak weekly and got an email saying that the killproc command wasn't found. That's in /sbin/killproc and I don't want to ...
0
votes
2answers
35 views

Insert path in file

I have the a file.dat and would like to insert the path of this file as first line. Can anyone help me with this please ? Thanks in advance
3
votes
2answers
93 views

Handling duplicate programs names bash

I'm wondering if $PATH cascades entries. You'll all need to take a leap of faith with me here, but here it goes. Let's say we have a Java executable at /usr/bin/java but this version is very old and ...
1
vote
1answer
22 views

Add to path if in subdir

How can I add a file to the path if the working directory is the directory of the file or one of its subdirectories? So when I'm in /foo or in /foo/bar/ I'll have /foo/foo.foo in my path, but if I'm ...
1
vote
1answer
106 views

History of UNIX not including current directory in $PATH

In the UNIX world, it's well understood that you need to prefix binaries in the current directory with ./ in order to run them: . is not in $PATH by default. This is to avoid evil binaries overriding ...
0
votes
1answer
18 views

DMD (D Compiler) home folder location

this might be a pretty dumb question, I installed DMD (the official compiler of the D programming language) in Fedora via the .RPM package I downloaded from the official website. Well, all of this ...
0
votes
0answers
19 views

problem locating module in ubuntu, visible through Anaconda but not accesible

I have Ubuntu 12.04. I have installed Anaconda3 latest version. It has python3.5 which is default for the system now. Some of the programs require using python2.7 which I invoke as follows ...