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
2answers
580 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
343 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
111 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 ...
3
votes
3answers
2k 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
741 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
2k 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
268 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
812 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
1k 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
61 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
112 views

$PATH duplication issues

If I do echo $PATH I get the following: ...
3
votes
2answers
2k views

How does the path enviroment variable work in linux?

I'm confused how does the enviroment path work under linux, I'm a Linux Mint 15 user. First, I read about editing the /home/.bashrc file and doing a PATH=$PATH:/directory, but I also knew about ...
1
vote
2answers
144 views

Launcher for a Python program that requires extra libraries

I'm trying to get a launcher working for the WikidPad (python) program. I already have a python program, so I looked into the file /usr/share/applications/taskcoach.desktop. The exec line was simply ...
-3
votes
2answers
84 views

Find the location of /gnu [closed]

I'm working on my university server and trying to find the location of /gnu. I know that it is installed with the latest version as I get the correct version using:g++ --version On using find find ...
3
votes
3answers
616 views

Preventing duplicate entried in PATH (.cshrc)

I have little experience with Linux, so I will appreciate some help. I need to prepend directories to the path variable in my .cshrc file and I want to make sure that the entries are not repeated when ...
2
votes
1answer
235 views

Canonical paths: why are they needed?

The issue of resolving symlinks (symbolic links) is often addressed on this forum, and on others. Related are the concepts of relative, absolute (or full), and canonical (or resolved) pathnames. Two ...
2
votes
1answer
3k views

Solaris - permanently update PATH for all users

I have installed JDK and Groovy on my Solaris 11 machine. I would now like to set things up so that the PATH variable would contain the bin directories whenever I open a shell. It is my understanding ...
0
votes
1answer
193 views

Red5 can't find JAVA_HOME

I'm setting up a Red5 server on Cygwin I get this /usr/share/red5$ sh red5.sh Running on CYGWIN_NT-6.1-WOW64 Unable to locate Java. Please set JAVA_HOME environment variable. However, I can also ...
2
votes
4answers
111 views

find command: how to ignore pathname?

I have to find some type of files in a directory and it's subdirectories and I only have to print out the filenames. So here's the main command: find -type f -name "*.c" Now, how could I cut the ...
5
votes
2answers
209 views

awk + paste for cleaning up PATH?

I have seen this code in .cshrc init files on a few machines. I went through a few awk tutorials in trying to understand how it works, but I am still unable to decrypt it. setenv PATH `echo $PATH | ...
3
votes
1answer
58 views

Script not getting executed as per expectation

I have two Perl scripts at a predefined location in Unix. This predefined location is set in path variable ($PATH). Now when i try to run first script (from any location) the script runs successfully ...
1
vote
4answers
46 views

Ambiguously named executables

It appears that in tcsh if I have ambiguously named executables in two separate folders in the $PATH it directs to the one in the most recently created folder. Am I correct? And is this always true? ...
0
votes
0answers
158 views

Installing required libs/frameworks/packages for compilation on OSX

I'm trying to compile SmartSim for OSX Lion, and at the moment I'm at the ./configure stage. Here is a dump of what I've managed to get so far: $ ./configure checking for a BSD-compatible install... ...
2
votes
1answer
48 views

How to change which program is executed by default

Surely this is an easy question, that I just don't know how to search for, but if I have two identically named executable files, one in /usr and one in /usr/local (for example), how can I change which ...
0
votes
1answer
86 views

How to manually install a cpp library

I want to install the opengl sdk http://glsdk.sourceforge.net/docs/html/pg_build.html . I successfully built it but it has no install script. I am wondering where I have to put them in order for ...
-3
votes
1answer
180 views

Paths in my bash profile do not work!

export PATH=/usr/local/bin:/Users/rodrigoprugue/Desktop/CRUNCH:~/phreeqc/bin:$PATH export PARFLOW_DIR=~/parflow/parflow.r605/ export SILO_DIR=~/parflow/silo-4.7.2/ export ...
3
votes
2answers
906 views

/etc/ld.so.conf doesn't contain /usr/lib

I am using pkg-config to help supply the correct libs during c++ compilation. As I understand it, it searches in directories supplied by /etc/ld.so.conf. My ld.so.conf references the following lib ...
2
votes
1answer
207 views

Find out where $PATH got corrupted

I'm using OSX Mountain Lion 10.8.2 $echo $PATH prints this: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/myusername/.rvm/bin I've commented out everything in ~/.bash_profile ...
1
vote
2answers
644 views

Executable located in location A how to run it in location B?

So, I've an executable in my debian server and this executable located in /home/human/ExecuteIt, still i cant figure it out how to run my executable in another location. In my case it is ...
2
votes
2answers
49 views

PATH work with relative directories

I'm trying to get a program to work that isn't in my distro's package manager. It doesn't provide a makefile or sources, just binaries. If I copy the whole folder to /usr/local and then add that to ...
3
votes
4answers
319 views

Decomposition of path specs into longest-common-prefix + suffix

Given any two absolute Unix path specs1, one could decompose each spec as the concatenation of a longest common prefix and a specific suffix. E.g., /abc/bcd/cdf -> /abc/bcd + cdf ...
8
votes
4answers
287 views

Why does the “which” command give duplicate results?

which -a ruby gives me /usr/ruby /usr/ruby /usr/ruby It gives the same path three times. Why does this happen?
12
votes
2answers
2k views

Is it safe to add . to my PATH? How come?

I've seen people mention in other answers that it's a bad idea to include the current working directory ('.') in your $PATH environment variable, but haven't been able to find a question specifically ...
2
votes
3answers
415 views

How to make GNU grep the default in FreeBSD?

I'm running FreeBSD 9.1-RELEASE. I've installed GNU grep with portmaster textproc/gnugrep. However the "default" grep for users is still FreeBSD grep. # /usr/local/bin/grep -V /usr/local/bin/grep ...
4
votes
3answers
2k views

Add directory to path for all shells and users in SLES 11.1

I'm using a server running Suse Enterprise 11.1. I need to add some locations to the path for all users and for all the shells. Is there a nice and easy way to do this or do I have to modify the ...
1
vote
3answers
2k views

Cannot find lib in path

I am trying to start a program that relies on some libraries that are in my path, however, the program says it cannot find the files: 11:45:27 ~ > echo $PATH ...
2
votes
2answers
63 views

Why does “User Contributed Perl Documentation” show up when I look for 'man' pages

When I man -f <some string> in addition to the expected Unix man pages, I get a bunch of odd looking entries that all have the header "User Contributed Perl Documentation". For example man ...
1
vote
0answers
37 views

How do the various configuration files determine MANPATH on Darwin?

On Darwin (12.2.0, OS X 10.8.2, bash 3.2.48(1)) my MANPATH appears to be determined by my PATH rather than by the various configuration files associated with man and the man path, /etc/manpaths, ...
2
votes
1answer
215 views

How is the path to search for 'man' pages set?

I'm puzzled by how the path used for finding man pages is set. The "right thing" seems to happen magically. For example, if change my PATH from ...
5
votes
1answer
125 views

Correct handling of Python2 and Python3

What is the correct way running scripts that depend on python2.x but on a system where python3.x is aliased with python. The solution should take into account the following things : Python2 ...
7
votes
3answers
980 views

Is there a way to add a directory to my PATH in zsh only if it's not already present?

Is there an easy way in zsh to add a directory to my PATH only if it's not already present? (or, more generally, any environment variable). I've tried: PATH+=/my/directory ... but if that's ...
8
votes
3answers
443 views

Running an executable in PATH with the same name as an existing function

Sometimes I define a function that shadows an executable and tweaks its arguments or output. So the function has the same name as the executable, and I need a way how to run the executable from the ...
2
votes
2answers
40 views

Applying and linking all settings/binaries of one user to another user in Linux

In a linux machine, we may have to compile our programs with respect to that linux machine. Now, if we already have some other users (not root. A typical user.) who have already compiled many ...
4
votes
4answers
2k views

List all files / binaries in current PATH

Is there an "easy" way of running an "ls -la" style command for listing all files / executable binaries in the current PATH? (I intend to pipe the output into grep, for looking for commands with ...
6
votes
1answer
150 views

What's the difference between “command directory” and “command directory/”? [duplicate]

Possible Duplicate: When should I use a trailing slash on a directory? Does the slash make any difference?
0
votes
1answer
315 views

Add USB space in conky

I'm setting conky and I'd like to add the usb space, I use: $font${color DimGray}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}% ${fs_bar /} for the full hdd, what should I write ...
1
vote
1answer
2k views

Wallpapers' s folder in XFCE4

I've just installed XFCE4 on Arch Linux, now I'd like to add an image in the wallpaper folder, someone know the full path. I'm searching, but I haven't found yet.
5
votes
3answers
1k views

Create a command for a Linux executable file

I'm using a program called node-webkit, but I can't start the program without specifying the full path to the executable file. Is there any way to associate a command (such as node-webkit) with an ...
1
vote
0answers
355 views

How to install Ruby Test to Sublime Text 2

I am quite new to Ubuntu, so I am running into some problems. I was following this tutorial to install Ruby Tests for Sublime Text 2: https://github.com/maltize/sublime-text-2-ruby-tests There is ...
5
votes
1answer
1k views

Global /etc/profile setenv or export overwriting user settings in .profile

I need to call a modified version of a program in /home/user_name/bin rather than the (older) version in /opt/program_name/current on a CentOS 5.3 cluster. The program creates a tcsh script using ...