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
3answers
26 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
25 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
21 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
16 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
21 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
29 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
85 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
21 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 ...
3
votes
1answer
89 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
13 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
13 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 ...
1
vote
1answer
30 views

How to change PATH priority for specified command in zsh

I installed vim by using brew, but because /usr/bin have higher priority than /usr/local/bin/ the /usr/bin/vi is called by default. which -a vi /usr/bin/vi /usr/local/bin/vi I can create a alias in ...
1
vote
2answers
39 views

Metasploit Directory Doesn't Run Executables Without ./

I have Metasploit installed on OSX in /usr/local/share/msf Metasploit's executables can't be run outside it's directory thus would give a command not found error. msfbinscan msfconsole msfd ...
0
votes
2answers
79 views

echo $PATH does not show added path in .bash_profile or /etc/profile

I have just installed LaTEX and need to add the path to my $PATH variable so I can use the command. I have tried adding path (/usr/local/texlive/2015/bin/x86_64-linux) to my .bash_profile and when I ...
0
votes
1answer
47 views

why Whereis not able to show command path, while which is working correctly? [duplicate]

I have created a executable bash shell script file command. I added directory path of my custom command to $PATH variable, but whereis not showing the command path but which shows correctly. I am ...
2
votes
3answers
22 views

Managing packages, directories and PATH in Unix (OSX)

I'm a PhD in bioinformatics, mostly self-taught, and I'm coming to a point where I want to clean up my various directory structures (i.e. my data), but I'm also thinking about how I'm storing the ...
3
votes
2answers
78 views

How to know why and where the $PATH env variable is set?

I'm using zsh 5.0.8 version in iterm2 on OSX. I start my computer and printenv shows me the $PATH variable: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin from my understanding, ...
0
votes
0answers
79 views

python3 no module named 'cv2'

I am running an Ubuntu 14.04. I installed opencv from the latest source with cmake to with install prefix usr/local. It seems to be on my path (note ...
2
votes
2answers
62 views

Why running command as sudo returns command not found?

Sample command: drush cc all works, but this: sudo drush cc all gives me: sudo: drush: command not found Why? How to fix this?
0
votes
2answers
38 views

'cd //; pwd' # What's happening here? [duplicate]

A coworker just pointed out something odd, and I'm curious what the explanation might be. On the systems I've tried, cd /', 'cd //', and 'cd ///' all have the effect of changing directory to the file ...
10
votes
4answers
1k views

Why is my program called “set” not being executed?

I've created a simple C program like so: int main(int argc, char *argv[]) { if (argc != 5) { fputs("Not enough arguments!\n", stderr); exit(EXIT_FAILURE); } And I have my ...
2
votes
1answer
53 views

How to add my MATLAB to PATH?

I have read this thread on how to correctly add the paths: How to correctly add a path to PATH? I have already exported path ...
1
vote
3answers
90 views

How to check for valid $PATH directories, and output them telling whether each one is valid or not?

Ok so I got this: check="${PATH//:/'\n'}" The above gets me each path in a simplified manner, and formats it nicely into a variable. Now how do I check each line for existence, and state that for ...
2
votes
1answer
32 views

building code from source and adding them to your path

Typically on Debian when you install things from the repository, they just work. It sets up things just fine and life is good. This is great for things that are up to date in the repository. I am ...
1
vote
3answers
33 views

How to control pathing when executing a string command using bash -c?

Background, I am trying to use a Python library that spawns a subprocess using arguments ["bash", "-c", "python someScript.py"]. What's happening is Python 2.6 is executed, but I want python2.7 ...
2
votes
1answer
18 views

Bizarre path description

I think this a silly question but I don't know the answer. I have a checked out a project with file hierarchy: REPO/project/src/multiple sub-directories here I am reading some documentation and at ...
7
votes
4answers
266 views

Execute a command where a file is found

How do I execute a command where a file is found? Consider I've an directory named testdir that contains the following: $ ls -R testdir/ testdir/: dir1 dir2 dir3 dir4 dir5 testdir/dir1: doc1.pdf ...
1
vote
0answers
22 views

how to set up path in .cshrc? [duplicate]

I am installing one software in linux. How to setup path in .cshrc. The directory of my software is /home/software. Now I want to set up its path in .cshrc file. Using vi .cshrc I extended the PATH ...
2
votes
2answers
200 views

How to set PATH for R installed in my directory

I would like to install “R” into my directory in the server, Here is what I have tried following the guidance here: Install R in my own directory wget ...
1
vote
0answers
14 views

How to make a terminal window open at a certain location by default [duplicate]

Running Linux Mint 17.1 & MATE 1.8.1 When I open the terminal window with ctrl+T, I want it to switch the path automatically to ~/workspace. How do I do this?
0
votes
0answers
187 views

Why Python cant import OpenSSL

I created a virtual env for a matrix home server installation on a shared hoster. $ virtualenv -p python2.7 /home/tristank/venv/synapse $ source /home/tristank/venv/synapse/bin/activate I installed ...
0
votes
1answer
73 views

If I set java bin PATH Dockerfile Jar Command runs but tomcat doesn't

I'm creating a Docker file that FROM's the official TOMCAT 8 docker file and also seeks to use the jar command to extract content from a WAR file so I install openjdk-7-jdk. If I don't set the PATH ...
0
votes
1answer
12 views

Obtain filepath of directories containing a particular filetype in alphabetical/numerical order [duplicate]

I have a directory that contains 800 subdirectories named disp-001 ... disp-800. All these sub-directories need to contain a specific file say stdout. One among them does not contain the file and I ...
1
vote
1answer
120 views

Change the default directory of one specific program without changing its path

I have two g++ programs located at /usr/local/bin/ and /usr/bin/ I would like to have the default g++ to be in /usr/local/bin/. However, I do not want to change my PATH environment variable because ...
3
votes
2answers
109 views

Complete view of where the PATH variable is set in bash

I've read in a couple of places that the PATH is set in /etc/profile or the .profile file that's in the home dir. Are these the only places that the path is set in? I want a better understanding of ...
3
votes
4answers
209 views

Help with bash script

I am teaching myself bash scripting with the book 'Learning the Bash Shell' by Newbam. I'm getting on OK with the book, but am a bit confused by the following script. It is a script which uses a for ...
1
vote
2answers
165 views

How to use ln -s to create a command line shortcut?

I have an sh file that I would like to be able to open from the terminal at any time. I would like to type "studio" into the terminal, and have android studio open I recall using ln -s to do this, ...
0
votes
4answers
139 views

Unable to add folder to PATH in .profile file

The following is my .profile file: # ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login # exists. # see ...
1
vote
1answer
110 views

Can't find folder after mv command

I was working on a backend, and decided to make a git repository for the whole app. After cloning into my home directory, this is the list of commands: ~$ mv PartySpotBackend /PartySpot mv: cannot ...
0
votes
0answers
122 views

Continuum Anaconda Fedora 22 Linux path

After an update to Windows 10 I encounter problems in my dual boot system so I had to re-install Fedora 22. So, starting with a fresh system I re-installed my work environment. The one installation ...
0
votes
0answers
169 views

Continuum Anaconda Fedora 22 path

After an update to Windows 10 caused problems in my dual boot system I had to reinstall Fedora 22. So, starting with a fresh system I reinstalled my work environment. The one installation that has ...
1
vote
2answers
299 views

How to reset $PATH on CentOS 6.5

I had a server restart and since then I am no longer able to run any commands under SSH. Any command will just return something like: -bash: ls: command not found I realize my $PATH must have been ...
0
votes
1answer
222 views

How to update .bashrc with PATH

I have installed a new JRE on my RedHat linux system. lsb_release -i -r Distributor ID: CentOS Release: 6.5 I have updated the symbolic links pointing to the desired Java installation: ls -l ...
4
votes
4answers
617 views

Add path to $PATH if not already in $PATH [duplicate]

I need to add a path in a bash script, but it may be executed several times: export PATH=${OPENSHIFT_HOMEDIR}/app-root/runtime/bin/:${PATH} I don't want that path to be added over and over. How can ...
2
votes
1answer
2k views

When I run “sudo su” I get --bash: command not found for everything

I'm not good with command lines or servers. But I needed to configure for work a AMI of EC2 AWS with LINUX So I've installed a lot of stuff, moved a lot of stuff around and then I realized that sudo ...
1
vote
1answer
5k views

Set environment variable $PATH globally on Ubuntu 14.04

I am trying to add environment path variable of composer globally. I've tried many ways but it does not seem to work. I searched other posts, but did not find matching answers. I am trying to ...
0
votes
0answers
76 views

How to put the current working directory into the PATH variable

Is it possible to put the current working directory into the $PATH variable? Perhaps something like: me@hostName:~$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/$(PWD) ...
0
votes
1answer
40 views

How to Install “remotely” Binary source from another path location

Suppose this I have a Bynary_Package.tar.gz When i unzipped this: zxvf Bynary_Package.tar.gz -C /path/dir/ Now, I move to cd /path/dir/Bynary_Package/ when I list this with ls -Al I have the ...