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

2
votes
1answer
55 views

Why is rsync not found?

rsync -avP /home/user/.profile hpux3:/home/user/.profile bash: rsync: command not found If I did ssh to hpux3 machine rsync version 3.1.1 protocol version 31 Copyright (C) 1996-2014 by Andrew ...
0
votes
1answer
28 views

Find all paths added to PATH [on hold]

I'm trying to uninstall some things from my system. I know that I can call them via the Terminal on Mac (bash) but I don't know where to find the files to remove them. I figured if there was some way ...
2
votes
1answer
50 views

Script not run with cron [on hold]

i have a python script when i launch my script all it's ok but when i lauchn my scrypt under crontab i have this errors: .. 2015-04-24 14:36:02,163 ERROR Problème dans le module ...
2
votes
2answers
53 views

Use alternatives or adding to PATH?

I'm a bit confused about the proper way to make a script globally available from the terminal, like a command. There are two ways, using the alternatives utility, basically making a symlink to ...
2
votes
0answers
44 views

Fixing my PATH variable

I am perplexed by the following problem and hoping someone can help me fix it: when I type echo $PATH, I get the output: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games However, I ...
0
votes
1answer
25 views

does not execute a file on os x with $PATH

I have dowloaded blat from here. I have also added in to executable path: PATH=$PATH:/Users/katja/Desktop/MyDocuments/Programms/blat But I can run the program only from the folder where it is ...
1
vote
0answers
34 views

Could not find compiler “ g++” in PATH? [closed]

I keep getting this error trying to compile hhvm. It is pointing to " g++" instead of "g++", how do i fix that as i am sure that g++ is in the path.
2
votes
1answer
90 views

About executing shell script

Suppose I have a shell script file foo.sh. I can do chmod + x foo.sh and change it into an executable file. In Kernighan-Pike: Unix Programming Environment (UP) they show that after this typing ...
4
votes
1answer
263 views

Why isn't this directory being added to my PATH when I use sudo?

Ive just compiled and installed apache webserver from sources, and now I want to add the apachectl script to PATH I know I need to add the directory to the root user's PATH (as the script needs to be ...
2
votes
4answers
125 views

How can I find the program I'm hiding in bash

Say I have PATH="home/bob/bin:/usr/bin". I am writing a bash script /home/bob/bin/foo that will do some munging and then call /usr/bin/foo. Of course I want to be able to use this script on ...
2
votes
1answer
40 views

Change Environment Path Variable Order

I am working on a CentOS box and trying to install a newer version of python. CentOS requires python 2.6.6 in order to run properly. To solve this I installed a second python (v 2.7.6) in ...
0
votes
1answer
23 views

Why doesn't commons-daemon ./configure recognize $JAVA_HOME? [closed]

I'm trying to install a tomcat 7 server. I'm following these instructions from the tomcat 7 docs. I also set my JAVA_HOME variable in ~/bashrc as well as ~/.bash_profile and /etc/profile. I can do ...
0
votes
1answer
83 views

How to use libraries installed by nix at run-time?

I'm using nix in "single-user mode" in a system where I'm not the root (see below for a description of my nix setup). I wanted to quickly run one of my binaries which is dynamically linked with a ...
0
votes
1answer
58 views

Adding commands in a shell script to add a python module path

I want to modify a linux shell script used to install a python module (setup.sh) to add the folder the an environment variable. This is needed so I can run the python module from a terminal. e.g. ...
1
vote
2answers
41 views

I changed my PATH and now for every command it returns “command not found” [closed]

I am on MacOSX, using the iTerm and I'm very new at all of this. I am trying to prepare for installing bioinformatics programs, so I made new directories for "Scripts" and "Programs" and wanted to add ...
1
vote
2answers
22 views

How do I add a program with a directory of dependencies to $PATH?

I want to add a program to my $PATH, but its code is split into various files that it imports at run-time from a lib/ in its root directory. projectRootDirectory ├ programBinary └ lib ├ someLibrary ...
0
votes
2answers
48 views

Cut a string up to a certain character [closed]

I've searched the site and I've seen similar questions but I couldn't get them to work. I tried to follow: Splitting a string up to a specific location but it didn't work. I working with Korn. I ...
1
vote
3answers
39 views

adding PATHs for a bunch of programs

I have a big list of programs (samtools,annovar,bra,bedtools etc) in a "Programs" folder. I have read lots of posts about exporting the path, so that I do not need to identify the whole path to the ...
1
vote
1answer
52 views

Bash cannot see PATH update

I am running Debian on a VM. I login to the GUI and go to Applications > Accessories > Terminal. # echo shell: /bin/bash I modified ENV_SUPATH, ENV_PATH inside of /etc/login.defs. I restarted ...
0
votes
2answers
90 views

How do I correct the path for pip?

I'm trying to get pip to point to a different install rather than the default. It is currently pointing to /usr/bin/pip, but I want it to point to /usr/local/bin/pip. I believe I have the path set ...
1
vote
1answer
52 views

How can I get $PATH to always include $(pwd)/sub_directory/.bin

If the path ~/dev/project1/node_modules/.bin/ionic exists, and my working directory is ~/dev/project1, I would like to be able to just type ionic and hit enter. I could include all those ...
6
votes
5answers
148 views

execute a command in $PATH matching a wildcard

I'd like to find and execute a command in the current $PATH matching this wildcard libreoffice?.? (eg. libreoffice4.0, libreoffice4.3, etc.) EDIT: if multiple matches are found, you can pick one ...
-1
votes
2answers
31 views

Split of path in an order [closed]

Help me in splitting an path in this way /sandy/user1/user2/abc.txt /sandy/user1/user2 /sandy/user1 /sandy /
0
votes
1answer
39 views

Where to “install” node application and best way to launch

I'm pretty new to the Linux world, I have a Node application that I would like to distribute through an apt repository, this is what I do for now: Put the node binary inside the Node application ...
2
votes
1answer
49 views

Change my profile's PATH environment variable on Cygwin

Sadly, I am not at all experienced in coding. I am attempting to use a program to work with GRIB files, here: http://www.nws.noaa.gov/mdl/degrib/compile.php?os=windows. I am compiling as there are ...
0
votes
2answers
44 views

Different PATH formats for .bash_profile [duplicate]

There are few different formats I have seen so far: With quotes and brackets: PATH="/usr/local/bin:${PATH}" With quotes only: PATH="/usr/local/bin:$PATH" None: PATH=/usr/local/bin:$PATH ...
2
votes
2answers
61 views

How do I allow privileged commands to fail but respond?

I am reading up on several commands, some of which are privileged and some that may or may not be installed. My system (gentoo) will respond with command not found sometimes when the program in the ...
0
votes
0answers
14 views

Changing log paths for specific Packages - Raspbian

I am currently running bind9 with logging enabled via cmd rndc querylog This begins storing logs for bind9 in /var/log/syslog How can I tell bind9 to store the logs in a different file, ...
3
votes
1answer
38 views

Puzzle over sudo and paths

I have a couple of programmes which are in /usr/local/bin which require root privileges to run. If I run sudo my_prog I get sudo: my_prog: command not found I have to write sudo ...
0
votes
2answers
41 views

Locate specific file from script

I've written a script file in which, one function searches for another script and if found, executes that script. Script extract #!/bin/bash ... service_status() { local my_script=`which ...
2
votes
1answer
44 views

how to change git path?

So I just installed the latest git, with the official mac installer. I'm on Mavericks. Sadly, git --version is still git version 1.9.3 (Apple Git-50) and which git gives me: /usr/bin/git ...
1
vote
2answers
58 views

Do programs source .bashrc when run?

I append to my PATH environment variable in my .bashrc file (Ubuntu v12). I also have a service (Atlassian Bamboo) that relies on the modifications to PATH. When I restart the service (which runs as ...
1
vote
1answer
27 views

Resolving the location/registration of an executable in the system?

I am on Ubuntu 11.04, Gnome 2. I had at a certain point installed Adobe Reader (acroread), however "off-tree" (at a non-standard location) - and I just noticed something weird about this executable. ...
0
votes
1answer
39 views

How and where should I add a PATH? [duplicate]

I need to add a new directory to my PATH so that SublimeText can find it. I assume this should be added to either .bash_profile, .bashrc, or .profile. Which one should I add it to? .bash_profile ...
1
vote
1answer
72 views

Should I replace my system binary of PHP in /usr/bin with a self compiled one? [closed]

I had PHP version 5.4 installed on my Mac 10.9 machine and wanted to upgrade to 5.6. I downloaded the source files and ran ./configure, make and make install. I looked and it seems to have compiled ...
0
votes
0answers
3 views

What potential trouble may arise by copying module directly from one python sys path to another?

Our server is CentOS and sys python is in version 2.6, meanwhile there is also a python2.7 under /usr/local/bin I did yum install MySQL-python, but in python2.7 I can't import this module. So I ...
-1
votes
1answer
84 views

perl env path in .bashrc

I am running Manjaro Linux and perl 5.20.1, which came pre-installed. I have started learning perl and need to get it in my path in ~/.bashrc. (Manjaro uses .bashrc and not .bash_profile). I should ...
0
votes
5answers
72 views

Difference between including / at the end of a directory path and and omitting it

I am just wondering is there a difference in what happens when I leave / at the end of a file path for example: root /var/www/website.com/ And omitting it like: root /var/www/website.com How is ...
2
votes
1answer
65 views

Executable cannot be found

I installed gradle in /opt/gradle-2.2.1 I edited /etc/environment to look like this GRADLE_HOME="/opt/gradle-2.2.1" ...
0
votes
1answer
84 views

need help with a a symlink and the PATH variable

I tried to install drush with composer from a script that is runing with sudo $nameofuser `logname` #drush installation getcomposer(){ # Composer Global installation curl -sS ...
5
votes
3answers
94 views

Find latest copy of same file in folder structure

I need to get the path of foo.txt in a folder structure. There are multiple foo.txt files in this structure but I need an automated to find the latest. Suggestions?
1
vote
1answer
55 views

let script find path of itself

I want to have a bash-script discover its own path. The background is that I have a script called process_scanned_text.sh, which itself uses the script curves. I put curves in the same directory as ...
4
votes
2answers
390 views

Compiler cannot find header file, do I add the directory to PATH?

I am trying to work with gtk which is located at /usr/include/gtk-3.0/gtk/ .., but all of the header files in the toolkit have #include <gtk/gtk.h>. Aside from adding /usr/local/gtk-3.0 to ...
0
votes
0answers
240 views

How should I manage this Homebrew warnings?

I am new to the world of Unix and I own a MacBook Pro. Recently, as I want to learn Lisp, I downloaded MIT Scheme following the directions I found here . I created a new folder using this command: ...
1
vote
0answers
63 views

Nginx wordpress and its wrong path

I've a Raspberry and I installed nginx and over this I put Wordpress. Wordpress installation come from an old backup of a websites that I hosted somewhere else. The URL was mydomain.com/home, now in ...
2
votes
1answer
63 views

Adding a new path in PATH

On a server I own; Git was not working. I found that Git is installed in /usr/local/cpanel/3rdparty/bin/git. So, to make Git available to be used without full path; I logged into ssh as root. Then I ...
0
votes
1answer
445 views

Command not found when run with sudo bash

I ssh into my machine and then, in order to run some commands, I need to sudo bash first. In an interactive terminal session, if I do this: [vagrant@33 ~]$ sudo bash [root@33 vagrant]# which bundle ...
4
votes
2answers
1k views

Basic commands in Unix 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 ...
8
votes
8answers
762 views

Grep for pattern at start or middle of a line

I'll start by saying that I think this problem is a little less innocent than it sounds. What I need to do: check for a folder within the PATH environment variable. It could be at the start or ...
2
votes
4answers
255 views

Make WGET available without path

I have ready bash script, which extensively uses wget command. Unfortunately wget is not available at standard path, but available at: /usr/custom/bin/wget I was able to make it usable w/o path in ...