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
0answers
150 views

python3 no module named 'cv2'

I am running an Ubuntu 14.04. I installed opencv from the latest source with cmake to with install prefix usr/local. It seems to be on my path (note ...
2
votes
2answers
126 views

Why running command as sudo returns command not found?

Sample command: drush cc all works, but this: sudo drush cc all gives me: sudo: drush: command not found Why? How to fix this?
1
vote
2answers
42 views

'cd //; pwd' # What's happening here? [duplicate]

A coworker just pointed out something odd, and I'm curious what the explanation might be. On the systems I've tried, cd /', 'cd //', and 'cd ///' all have the effect of changing directory to the file ...
10
votes
4answers
1k views

Why is my program called “set” not being executed?

I've created a simple C program like so: int main(int argc, char *argv[]) { if (argc != 5) { fputs("Not enough arguments!\n", stderr); exit(EXIT_FAILURE); } And I have my ...
2
votes
1answer
108 views

How to add my MATLAB to PATH?

I have read this thread on how to correctly add the paths: How to correctly add a path to PATH? I have already exported path ...
1
vote
3answers
98 views

How to check for valid $PATH directories, and output them telling whether each one is valid or not?

Ok so I got this: check="${PATH//:/'\n'}" The above gets me each path in a simplified manner, and formats it nicely into a variable. Now how do I check each line for existence, and state that for ...
2
votes
1answer
42 views

building code from source and adding them to your path

Typically on Debian when you install things from the repository, they just work. It sets up things just fine and life is good. This is great for things that are up to date in the repository. I am ...
1
vote
3answers
41 views

How to control pathing when executing a string command using bash -c?

Background, I am trying to use a Python library that spawns a subprocess using arguments ["bash", "-c", "python someScript.py"]. What's happening is Python 2.6 is executed, but I want python2.7 ...
2
votes
1answer
18 views

Bizarre path description

I think this a silly question but I don't know the answer. I have a checked out a project with file hierarchy: REPO/project/src/multiple sub-directories here I am reading some documentation and at ...
7
votes
4answers
288 views

Execute a command where a file is found

How do I execute a command where a file is found? Consider I've an directory named testdir that contains the following: $ ls -R testdir/ testdir/: dir1 dir2 dir3 dir4 dir5 testdir/dir1: doc1.pdf ...
1
vote
0answers
22 views

how to set up path in .cshrc? [duplicate]

I am installing one software in linux. How to setup path in .cshrc. The directory of my software is /home/software. Now I want to set up its path in .cshrc file. Using vi .cshrc I extended the PATH ...
2
votes
2answers
515 views

How to set PATH for R installed in my directory

I would like to install “R” into my directory in the server, Here is what I have tried following the guidance here: Install R in my own directory wget ...
1
vote
0answers
14 views

How to make a terminal window open at a certain location by default [duplicate]

Running Linux Mint 17.1 & MATE 1.8.1 When I open the terminal window with ctrl+T, I want it to switch the path automatically to ~/workspace. How do I do this?
1
vote
0answers
288 views

Why Python cant import OpenSSL

I created a virtual env for a matrix home server installation on a shared hoster. $ virtualenv -p python2.7 /home/tristank/venv/synapse $ source /home/tristank/venv/synapse/bin/activate I installed ...
0
votes
1answer
125 views

If I set java bin PATH Dockerfile Jar Command runs but tomcat doesn't

I'm creating a Docker file that FROM's the official TOMCAT 8 docker file and also seeks to use the jar command to extract content from a WAR file so I install openjdk-7-jdk. If I don't set the PATH ...
0
votes
1answer
12 views

Obtain filepath of directories containing a particular filetype in alphabetical/numerical order [duplicate]

I have a directory that contains 800 subdirectories named disp-001 ... disp-800. All these sub-directories need to contain a specific file say stdout. One among them does not contain the file and I ...
2
votes
1answer
231 views

Change the default directory of one specific program without changing its path

I have two g++ programs located at /usr/local/bin/ and /usr/bin/ I would like to have the default g++ to be in /usr/local/bin/. However, I do not want to change my PATH environment variable because ...
3
votes
2answers
177 views

Complete view of where the PATH variable is set in bash

I've read in a couple of places that the PATH is set in /etc/profile or the .profile file that's in the home dir. Are these the only places that the path is set in? I want a better understanding of ...
3
votes
4answers
235 views

Help with bash script

I am teaching myself bash scripting with the book 'Learning the Bash Shell' by Newbam. I'm getting on OK with the book, but am a bit confused by the following script. It is a script which uses a for ...
1
vote
2answers
327 views

How to use ln -s to create a command line shortcut?

I have an sh file that I would like to be able to open from the terminal at any time. I would like to type "studio" into the terminal, and have android studio open I recall using ln -s to do this, ...
0
votes
4answers
186 views

Unable to add folder to PATH in .profile file

The following is my .profile file: # ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login # exists. # see ...
1
vote
1answer
151 views

Can't find folder after mv command

I was working on a backend, and decided to make a git repository for the whole app. After cloning into my home directory, this is the list of commands: ~$ mv PartySpotBackend /PartySpot mv: cannot ...
0
votes
0answers
140 views

Continuum Anaconda Fedora 22 Linux path

After an update to Windows 10 I encounter problems in my dual boot system so I had to re-install Fedora 22. So, starting with a fresh system I re-installed my work environment. The one installation ...
0
votes
0answers
177 views

Continuum Anaconda Fedora 22 path

After an update to Windows 10 caused problems in my dual boot system I had to reinstall Fedora 22. So, starting with a fresh system I reinstalled my work environment. The one installation that has ...
1
vote
2answers
561 views

How to reset $PATH on CentOS 6.5

I had a server restart and since then I am no longer able to run any commands under SSH. Any command will just return something like: -bash: ls: command not found I realize my $PATH must have been ...
0
votes
1answer
358 views

How to update .bashrc with PATH

I have installed a new JRE on my RedHat linux system. lsb_release -i -r Distributor ID: CentOS Release: 6.5 I have updated the symbolic links pointing to the desired Java installation: ls -l ...
4
votes
4answers
839 views

Add path to $PATH if not already in $PATH [duplicate]

I need to add a path in a bash script, but it may be executed several times: export PATH=${OPENSHIFT_HOMEDIR}/app-root/runtime/bin/:${PATH} I don't want that path to be added over and over. How can ...
2
votes
1answer
4k views

When I run “sudo su” I get --bash: command not found for everything

I'm not good with command lines or servers. But I needed to configure for work a AMI of EC2 AWS with LINUX So I've installed a lot of stuff, moved a lot of stuff around and then I realized that sudo ...
1
vote
1answer
8k views

Set environment variable $PATH globally on Ubuntu 14.04

I am trying to add environment path variable of composer globally. I've tried many ways but it does not seem to work. I searched other posts, but did not find matching answers. I am trying to ...
0
votes
0answers
81 views

How to put the current working directory into the PATH variable

Is it possible to put the current working directory into the $PATH variable? Perhaps something like: me@hostName:~$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/$(PWD) ...
0
votes
1answer
43 views

How to Install “remotely” Binary source from another path location

Suppose this I have a Bynary_Package.tar.gz When i unzipped this: zxvf Bynary_Package.tar.gz -C /path/dir/ Now, I move to cd /path/dir/Bynary_Package/ when I list this with ls -Al I have the ...
-2
votes
2answers
100 views

How is $HOME/bin added to my path? [duplicate]

I noticed that my path environment variable had the path for my home's binaries $HOME/bin. I did not add $HOME/bin directory to my path environment variable so how did $HOME/bin get added to the ...
0
votes
1answer
135 views

Where does Debian 8.1 install adduser?

Code and outputs apt-cache search adduser adduser - add and remove users and groups $ sudo apt-get install adduser Reading package lists... Done Building dependency tree Reading state ...
1
vote
1answer
73 views

Installing Geant4 alongside GEANT-3, and Root 6 alongside Root 5

Can I install Geant4 alongside GEANT-3 on my Ubuntu 15.04 (Vivid Vervet)? I have already installed GEANT-3 by the AliRoot installation method shown by Dario Berzano. How can I install Geant4 without ...
-2
votes
1answer
113 views

ls: No such file or directory [closed]

I have been messing around trying to install macvim to a higher version of 7.4. I finally got it working but now I get the error ls: No such file or directory when looking for a directory. I can ...
1
vote
2answers
177 views

Working with exporting PATH CentOS strange behaviour

I am trying to modify the PATH variable in two different scripts located in /etc/profile.d/ /etc/profile.d/php.sh #!/bin/sh PATH=$PATH:/usr/local/php/bin export PATH /etc/profile.d/mysql.sh ...
0
votes
1answer
65 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
244 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
827 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
150 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 ...
1
vote
1answer
72 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
222 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 ...
3
votes
2answers
597 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
378 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
90 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
1k 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
527 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 ...
1
vote
0answers
387 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 ...
6
votes
2answers
729 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 ...