LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Output of whereis command (https://www.linuxquestions.org/questions/slackware-14/output-of-whereis-command-4175492403/)

johnpuppa 01-24-2014 06:24 AM

Output of whereis command
 
Hello Everyone,;)

It is not clear to me what the output of this command is giving back.
for instance:
Quote:

whereis java
java: /etc/java /usr/share/java /opt/jre1.7.0_45/bin/java /opt/jdk1.7.0_45/bin/java /opt/processing-2.0.3//java /opt/jdk1.7.0_45/bin//java
What's the meaning of those two "//" at the end of the jdk and processing program? It should not be a cause of the PATH.

Quote:

cat .bash_profile
#!/bin/bash
JAVA=/opt/jdk1.7.0_45
ARDUINO=/opt/arduino-1.0.5/
PATH=$PATH:/opt/processing-2.0.3/:$JAVA/bin/:$ARDUINO
Thanks!

mancha 01-24-2014 06:33 AM

It is due to the trailing slashes in some paths in your $PATH.

You can change to:
Code:

JAVA=/opt/jdk1.7.0_45
ARDUINO=/opt/arduino-1.0.5
PATH=$PATH:/opt/processing-2.0.3:$JAVA/bin:$ARDUINO

--mancha


All times are GMT -5. The time now is 10:35 PM.