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
1answer
42 views

Binary not accesible from Bash despite being in path

I am learning how to program in Racket. It's binary is in "/Applications/Racket v6.2/bin/racket". Let me show what happens: MacBook:~ enedil$ echo $PATH /Applications/Racket\ ...
2
votes
1answer
41 views

Relative path to anything not working (while running from initramfs)

I'm working in an embedded Linux system trying to get it booting its root file system in ram using initramfs. The system comes up for the most part but then has trouble in the init scripts. I've ...
1
vote
1answer
36 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
27 views

bash: Passing several space containing filenames

In a bash script I am rasterizing a PDF page by page into single files, in the end the single resulting PNGs are merged again into a PDF like this: convert -monitor /path/to/1.png /path/to/2.png ...
0
votes
2answers
68 views

PATH variable is not working [closed]

I'm trying to set up PATH like this: export AMBERHOME=/home/pablo/amber14 PATH=$AMBERHOME/bin:$PATH PATH=$PATH:/home/pablo/tinker/bin However the PATH variable seems not to work properly. I dont ...
1
vote
1answer
37 views

How do I add an installed program to my PATH so I can run it from the command line?

I installed jsx using npm: npm install -g jsx Now it installed jsx in this path: /node_modules/lib/node_modules/jsx/bin In the bin, I'm having jsx. Now if type ./jsx, it works fine as expected. ...
0
votes
2answers
36 views

How do I add Metasploit into my PATH variable?

I have Metasploit installed on my Mac in /usr/local/share/msf. Everytime I want to use it I have to cd into that directory and use msfconsole. If I try to /usr/local/share/msf/msfconsole in my home ...
2
votes
2answers
72 views

How do you add a bash script to your PATH variable using symlinks?

I run a gaming server called PocketMine. So basically I have a folder in my home directory that has a bash script to run the server: ~/PocketMine/start.sh Everytime I want to run the server I either ...
0
votes
2answers
42 views

Adding a new directory to PATH vs. a symlink for directory already in PATH

In setting it up so I could execute Sublime Text from bash, I discovered two methods of doing this via different tutorials: Method 1) Create a symlink from /usr/local/bin/subl to Sublime's bin dir: ...
2
votes
2answers
36 views

Add an application to the command search path in csh

Recently, I have installed an application (gnuplot) under user directory (/home/usr/bin). I want to run the application whenever I type 'gnuplot' in any directory. What could I do? I tried to set the ...
0
votes
3answers
43 views

Running remote script via ssh command

I have a script on remote Debian server machine and I want to run a command by invoking: ssh server "find.sh" My find.sh script is in in: /home/user/bin First of all, I ran ssh server "echo ...
0
votes
1answer
48 views

Setting LD_LIBRARY_PATH

I am trying to run a program in a server with Linux Ubuntu 3.16.0-31-generic and it gives me the following error: error while loading shared libraries: libmpich.so.3: cannot open shared object ...
0
votes
0answers
48 views

$PATH variable on Fish Shell OS X

I have somehow screwed up my path variables with Fish shell on OS X. Is this the proper $PATH variable in the config.fish? user@host ~> more ~/.config/fish/config.fish set -g -x PATH ...
4
votes
2answers
67 views

What does an @ symbol denotes in the beginning of a unix domain socket path in Linux?

When I run netstat --protocol unix or lsof -U I see that some unix socket paths are prepended with @ symbol, for example, @/tmp/dbus-qj8V39Yrpa. Then when I run ls -l /tmp I don't see file named ...
0
votes
0answers
19 views

What is the bash path difference if asterisk is inside doublequotes or outside doublequotes? [duplicate]

Task is to copy all the files (*). I have this command failed (no path found): cp -r "somedir with space/*" /tmp But this works fine: cp -r "somedir with space/"* /tmp So, what's wrong with path ...
0
votes
2answers
83 views

export PATH permanently [duplicate]

I have exported the PATH but once I switch to a different terminal or reboot Debian, $PATH is reset. Here are the steps I take: ~$ vim scripts.sh #!/bin/bash echo "Hello" I save it as mybash.sh ...
2
votes
2answers
99 views

Weird behaviour when setting environment variables with .bash_profile: only last export works properly

I am trying to export some environment variables in Unix using the .bash_profile It reads now like this: export PATH=${PATH}:/usr/local/cuda-6.0/bin/ export ...
3
votes
3answers
59 views

When to use XPG* version of a command?

I occasionally do work on an older Solaris machine whose default version of grep is non-POSIX-compliant. This causes problems in my rc files because the default grep on the machine doesn't support ...
2
votes
1answer
302 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 ...
2
votes
1answer
65 views

Script not run with cron [closed]

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
83 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
62 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
27 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 ...
2
votes
1answer
100 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
290 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
154 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
53 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
34 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 ...
1
vote
1answer
250 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
132 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
55 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
27 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
53 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
46 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
66 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
517 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
70 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
212 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
58 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
124 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
57 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
75 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
15 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
43 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
47 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
70 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
79 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
30 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
48 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 ...