LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-24-2014, 06:24 AM   #1
johnpuppa
Member
 
Registered: Jun 2013
Distribution: Slackware
Posts: 44

Rep: Reputation: Disabled
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!
 
Old 01-24-2014, 06:33 AM   #2
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
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

Last edited by mancha; 01-24-2014 at 06:36 AM. Reason: Added fix
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
the "whereis" LINUX command Siaw Linux - Newbie 4 03-12-2013 09:40 AM
Requests to my ISP server are output in the middle of output by any command I run. stf92 Slackware 2 07-10-2012 08:38 AM
question about whereis command sidneyluo Linux - Newbie 2 05-03-2010 08:54 PM
'Whereis' output Ander Linux - Newbie 3 05-05-2006 05:18 AM
'whereis' finds a command but I can't execute it brunnopessoa Linux - Newbie 9 10-18-2004 01:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration