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
491 views

Meaning of `export PATH=…` in .bash_profile

I'm using a mac for some years now and as I'm currently learning ruby on rails, I felt like I should learn more about the system I'm using. I took a look at the ~/.bash_profile, it looks like this ...
1
vote
1answer
835 views

/etc/environment not working

I am using Ubuntu 12.04. Recently, I accidentatlly removed python, causing a huge number of packages to be uninstalled. I reinstalled them, but now I am having problems. $ echo $PATH ...
0
votes
1answer
73 views

Adding Postgres bins to PATH: should I `export`? [duplicate]

I'm on a Mac, but this seems like a UNIX/Linux question. I just installed Postgres.app, and the documentation says to add the /bin directory that ships with Postgres.app to your PATH by adding the ...
2
votes
1answer
107 views

difference between /var/www and /usr/local

I don't understand the difference between /var/www path and /usr/local path on linux command because for instance at the moment I can see my red5 server folder is in the latter path and within that ...
0
votes
1answer
230 views

java add to the path

I have some .jar files in a directory, /home/unix/dfernand/bin/picard/picard-tools-1.106. But when I add the directory to the PATH and CLASSPATH in my bashrc, java still does not recognize the .jar ...
1
vote
2answers
85 views

How can I clean out duplicate entries from my PATH? [duplicate]

Currently, my $PATH has two identical entries for /usr/local/bin and I'm curious whether there's a way to clean that up, or if I should just not worry about it. It looks like this (broken up into a ...
1
vote
1answer
74 views

Getting sudo to work for an alias

I installed Sublime Text 3 in Fedora 20 which has got GNOME, as I couldn't get it being called from terminal I created a .bash_aliases file which a line like this: alias sublime='sublime_text' And ...
2
votes
2answers
914 views

Why does sshd requires an absolute path?

Why does sshd require an absolute path when restarting, e.g /usr/sbin/sshd rather than sshd Are there any security implications? P.S the error message: # sshd sshd re-exec requires execution with ...
5
votes
1answer
538 views

How to identify executable path with its PID on AIX 5 or more

On AIX 5 or 6, `ps -ef` shows the executable full path randomly. Why and how to determine it? I find many thread through internet and also Unix & Linux and this stack overflow post about finding ...
2
votes
2answers
497 views

Removing a directory from PATH

I'm trying to compile wxWidgets using MingW, and I have cygwin in my path, which seems to conflict. So I would like to remove /d/Programme/cygwin/bin from the PATH variable and I wonder if there is ...
0
votes
0answers
29 views

Chromium OS Compiling Path [duplicate]

After following the steps at the Chromium OS Developer site, I would like to know how I could add the path to my .bashrc file so I could make it permanent? I am using Ubuntu 13.10
11
votes
1answer
479 views

Add a path in $PATH globally for every user

Do we have anyway to add a path globally so that each user gets it in $PATH. I want to add path of ANT so that each user doesn't need to add it in his $PATH variable.
1
vote
0answers
85 views

Map invalid file paths to valid file paths

I am running a program on linux which access an invalid location, say: /home/area/file. I know the valid location is /home/area/something_else/file. The problem is the input file for this program is ...
1
vote
1answer
47 views

Filepath: use same filepath on unix and winodws

I am working on application which work on both unix and windows environment. I have mapped my unix drive on windows using samba. On cygwin: ls -l /remote /remote -> //samba1 when I try ...
3
votes
2answers
78 views

Recently installed applications missing from $PATH

When I install apps using apt-get or NVM or NPM on Ubuntu, I can type the command and it works. Then I log out of the shell and log back in. Now none of the things I installed work when I ask for ...
5
votes
4answers
153 views

How do I use which(1) with the system's default $PATH?

I would like to use which with the system's default path, ignoring any embellishments from the user's shell configuration files. Motivation I am attempting to write a script to find the system's ...
2
votes
4answers
543 views

How can I find out where the firefox bin is?

I am trying to add Firefox to my PATH like in this tutorial. I have Firefox in the Applications folder of my GUI on my mac book air. I am familiar with adding locations to my path. But I don't know ...
2
votes
2answers
2k views

How to install a custom boost version in CentOS?

I'm trying to compile and install boost 1.54 from source in CentOS. The documentation is pretty straight forward and there are plenty of tutorials in the internet available (1) (2) (3). This is what ...
0
votes
0answers
33 views

Symbolic link path [duplicate]

Hi I want to find out the path of symbolic link. I want to make a script for that but I can not find a command that will print the path of symbolic link. I want to write a script with directory as a ...
1
vote
3answers
453 views

I don't see .bashrc in my home directory but want to make a permanent change to my path

I am trying to add a location to my $PATH variable on a Mac running OS X. I am following this tutorial, which says to edit the .bashrc file. I don't see this file in the home directory even when I do ...
2
votes
1answer
1k views

Crontab + Ruby on Rails: /usr/bin/env: ruby: No such file or directory

I have a ruby on rails app and I need to schedule a crontab for a rake task. */5 * * * * RAILS_ENV=production /usr/local/bin/rake -f /usr/local/www/mysite-web-production/current/Rakefile ...
1
vote
4answers
308 views

How can I force the use of a specific binary when running a script

How can I force a specific binary to be used when executing a bash script? I have a bash script which uses the "php" binary. There are several php versions on my computer. The main php binary, as ...
1
vote
2answers
111 views

Is there a problem if I add a non-existing path to `PATH` environment variable?

I have a following lines in my .bash_profile. if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi I think I found it somewhere in the internet. Is it also ok, if I write only ...
1
vote
2answers
319 views

Cannot change JAVA_HOME

When I run java -version in my terminal I get: user@ubuntu:~$ java -version java version "1.7.0_25" OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2) OpenJDK 64-Bit Server ...
3
votes
1answer
655 views

Find location of sourced shell script

Is it possible that a sourced shell script knows its location? I've read determining path to sourced shell script but the answers focus on bash and tcsh and fail if a POSIX shell is used. $0 is also ...
1
vote
2answers
2k views

Globally change path for all users, even in cron

We're setting up an SGE cluster with CentOS 6. My sysadmin is installing applications that are not installed via RPM (i.e. via other means like make install) should go in a non-standard directory, in ...
1
vote
2answers
327 views

why can't linux see my run.sh command?

I have a run.sh in a directory in ubuntu linux 12.04 LTS. I've been changing the Path variable so that it can "see" binaries elsewhere in the directory structure. But I am still getting a command not ...
3
votes
4answers
2k views

Running python script from Linux Terminal

I have downloaded this script named, pyAES.py and put it in a folder name codes, inside a Desktop directory of my Linux, According to this example, ...
1
vote
1answer
92 views

Java PATH issue when installing JDK7 on centos 32 bit

I have Installed JDK 7 on CentOS 32 bit virtual machine. I also have set the path for java. In one terminal it is showing java1.7 But when I open another terminal and look for, java -version It is ...
1
vote
1answer
206 views

find does not work on symlinked path?

If I run this command find $HOME/MySymlinkedPath -name "run*.sh" nothing happens, and gives no error ('MySymlinkedPath' is a symlinked path to another hard drive other then my $HOME one). These also ...
1
vote
1answer
149 views

Problem with LD_LIBRARY_PATH, program can't find a libraray.

I have already asked this question on stackoverflow, but it's also a linux related question and somebody here might know a solution. Hope it's okay. Problem is that I can't run 3D visualisation in ...
1
vote
1answer
772 views

Numpy module not found despite being in path

I am having trouble with the module on python. Here is my path variable, /opt/local/bin /opt/local/sbin /Developer/usr/bin /usr/local/git/bin /usr/X11/bin /Users/oskarniburski/.rvm/bin /usr/X11R6/bin ...
0
votes
2answers
54 views

While Linux is rebooting which directory is used to search for the executable system binaries?

While Linux is rebooting which sbin directory is used to execute the system binaries. As per my knowledge it used to load the binaries in the directory sbin directory . But in my system I find so ...
4
votes
3answers
509 views

Why is PATH reset in a sudo command?

After much frustrating head-brick-wall contact, I've discovered this: $ echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/steve/bin $ sudo bash # echo $PATH ...
3
votes
1answer
101 views

Why isn't the first executable in my $PATH being used? [duplicate]

I have a script called jsl in /usr/local/bin. Running which jsl finds it there. I want to temporarily use a different version, and when I echo $PATH I see that /usr/bin is earlier in the path. So I ...
1
vote
1answer
45 views

Compiled, can't access with sudo

So I compiled FFmpeg from this guide as a standard user and it works fine as the user I compiled with but if i do sudo ffmpeg the program can't be found. Is it possible to make it accessible by root ...
1
vote
2answers
635 views

$PATH not modified inside LXDE on Raspbian

I have a bin directory in home/pi. This is added to my $PATH when I login (by .profile), but when I go into LXDE and use LXTerminal my bin directory is no longer added to $PATH.
2
votes
1answer
306 views

Debian Wheezy 7.1 - can't launch Skype or Firefox [duplicate]

I've installed Skype by using dkpg and when I try to run it, this is what I get -bash: /usr/bin/skype: No such file or directory. Which is very strange since ls -l | grep skype shows this: -rwxr-xr-x ...
2
votes
2answers
124 views

Change PATH in Debian 7.1.0 for JAVA

I would like to change the PATH of my Debian 7.1.0 system to link the java version I want. If I insert into the terminal: java -version I get: java version "1.6.0_27" OpenJDK Runtime Environment ...
2
votes
2answers
406 views

Installed sqlite3 v3.8, but mac terminal still runs old version 3.6 by default

I have a Mac running OS X 10.6.8, which comes pre-installed with SQLite3 v3.6. I installed v3.8 using homebrew. But when I type "sqlite3" in my terminal it continues to run the old pre-installed ...
3
votes
1answer
289 views

How to set the path OSX applications use

I'm running Mountain Lion 10.8.4, and have my environment all customized through ~/.profile so that when I run GUI apps like Sublime Text or Eclipse from the command line open /Applications/Sublime\ ...
0
votes
1answer
103 views

Issue with path to .so libraries

I have an issue with path to .so files. I have a server with two accounts user1 and user2. There is wget program, that is installed to user1 and I need it from user2. When I run it from user2 I get ...
2
votes
2answers
1k views

How to make `sudo` preserve $PATH?

I need to run a program installed on /opt/godi/sbin (a custom directory). If I add that directory to my PATH, by adding the following line to my .bashrc file export ...
10
votes
2answers
628 views

Bash is not finding a program even though it's on my path

I have a program on my path. The program runs when executed with a full path specified. But the program cannot be found when I run it with just its name. Essentially, I want to understand how the ...
6
votes
3answers
1k views

How do I set the PATH or other environment variables so that X apps can access it?

How can I set env variables so that KDE recognizes them? How do you set the path in a non-shell environment (KDE)? Unlike the above two questions, I want to know how to do this for GNOME. Or better ...
3
votes
2answers
230 views

Should I use symlinks in /usr/bin or use the PATH variable instead?

I was looking to download some tool and it said to update your PATH variable, but I thought /usr/bin was the "standard".
19
votes
3answers
789 views

Show PATH in a human-readable way

I want to show my PATH environment variable in a more human-readable way. $ echo $PATH ...
2
votes
3answers
979 views

Why do 'ssh host echo $PATH' and printing the $PATH after ssh'ing into the machine give different results?

On a particular host, when I ssh into the machine and enter echo $PATH I get /home/wxy/bin64:/home/wxy/bin:/usr/kerberos/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin and if I ...
2
votes
1answer
58 views

Assigning static device path

I have 4 flash cards plugged in, sequentially named by system: /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 I want to assign static pathes to them, so every time the system boots up their pathes will ...
2
votes
4answers
107 views

$PATH duplication issues

If I do echo $PATH I get the following: ...