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

1
vote
3answers
29 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
0answers
38 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
9 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
39 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
121 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
30 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
31 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
2answers
32 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
43 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
54 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
37 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
37 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
43 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
23 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
32 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
42 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
51 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
63 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
50 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
71 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
80 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
48 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
222 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
154 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
44 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
49 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
188 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
773 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
615 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
112 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 ...
2
votes
4answers
119 views

Change prompt when starting a terminal from bash script (but don't affect all terminals)

I have two terminals installed, gnome-terminal and xfce4-terminal. I would like to have only the xfce terminal showing a simple > as prompt when I start it. The gnome-terminal prompt should remain ...
1
vote
1answer
22 views

Maintain the path in installable UnixAPI

I am developing an API in Unix environment for virtual machines. Most of the modules are developed in python. I have few questions on this. Inside the API I am using absolute path like ...
3
votes
2answers
149 views

Basic steps to develop python API in Unix environment

I am developing an API in Unix environment for virtual machines. Most of the modules are developed in python. I have few questions on this. I have the file extension as abc.py. I would like to make ...
2
votes
2answers
41 views

Paths relevant to compiling from source

I am new to software development, and over the course of compiling about 20 programs and dependencies from source I have seen a rough pattern, but I don't quite get it. - I'm hoping you could shed ...
0
votes
2answers
380 views

trying to install curl with homebrew, getting “incompatible library version” for libcurl.4.dylib

I am on OSX 10.9.5. I would like to use a later version of CURL than what is bundled with OSX, but I do not want to remove the OSX binary just in case, so I wanted to opt to install it via homebrew. ...
2
votes
1answer
31 views

How can I use `find` with `-pattern` and also restrict depth?

This is as far as I've gotten: find . -path \*/pages/*/index.css Which will find: ./lib/pages/home/index.css ./lib/pages/home/lib/header/index.css What I really want is to only find: ...
-1
votes
1answer
22 views

How do I use export setu command [closed]

What is the difference between export and export setu command? I have searched online these command (export setu) but it's not found.
3
votes
5answers
86 views

search a command in PATH with the same name of the script

For example, my script is $HOME/bin/sudo. I'd like to search for an executable in $PATH with the same name, sudo, and run it - but not the script $HOME/bin/sudo itself, otherwise I will run into an ...
0
votes
4answers
179 views

how to execute a bash script without typing ./ [duplicate]

It has been bugging me for a very long time and I'm really sick of it. For example there's a script called testscript that compares two directories. In class the prof can just type testscript dir1 ...
0
votes
1answer
44 views

CRON path problems

I have a Python script that runs from the command line beautifully, but when I try and run it from CRON does strange things. The script generates, then runs an apk script file. The apk script file ...
0
votes
2answers
91 views

Adding to Profile.local in Ubuntu?

I was told to adjust the /etc/profile.local with following lines: (as user root) export PATH=$PATH:~/cmds:. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/lib export LIBRARY_PATH=$LIBRARY_PATH:~/lib ...
-4
votes
1answer
97 views

Environment Variable: PATH [closed]

Change the PATH variable in such way the command ls should not work. Restore the PATH variables content. Check whether ls is working or not.
2
votes
1answer
38 views

I Modified my PATH when installing git. What is the default path on Mac?

When I was troubleshooting a git install, I did a few things. I think that I modified my default path. Echo $path returns ...
1
vote
0answers
480 views

GIT on 'mountain lion' will not execute commands

Macbookpro Mountion Lion 10.8.5 I am not new to technology or programming but relatively new to Web Development. My Unix is rusty. Issue. I cannot get GIT to execute commands. I have been ...
-1
votes
1answer
534 views

Commands not found in shell script

I need to execute scp command without using expect command in script. How to use scp with password? I have tried with following code. HOST=lnx1 USERNAME=user PASSWORD=pwd PATH=/sample/data/ FILE=$1 ...
2
votes
2answers
71 views

Change path in sql script with sed

I'm trying to change the path in a oracle sql script from a bash script. read -e -p "Enter the ORACLE SID: " -i "orcl" ORACLE_SID_VALUE sed -i "DEFINE tsdir = '/u02/app/oracle/oradata/orcl';/c\DEFINE ...
1
vote
1answer
122 views

$PATH environment variable does not seem to be recognized

I've made a fresh install of Debian Wheezy, and installed zsh to it. Few days after, I've done a vanilla installation of TeX Live 2014, so I added the necessary binary paths to my $PATH. Now I started ...