LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2005, 11:29 AM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
whereis kate


I wanted to make a icon to the kate editor, but I am not sure where the location of it is. It runs by typing the command, but I am not sure how it is in my path
Code:
shane@mainbox ~ $ whereis kate
kate:
shane@mainbox ~ $ kate
kbuildsycoca running...
ASSERT: "m_currentContainer==container" in kateviewmanager.cpp (196)
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
 
Old 09-15-2005, 11:39 AM   #2
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
It seems to be here
Code:
shane@mainbox ~ $ ls -l /usr/kde/3.4/bin/ | grep kate
-rwxr-xr-x  1 root root   4824 Sep 15 00:44 kate
which /usr/ke/3.4/bin is in my path, so why does not the whereis command find it?
 
Old 09-15-2005, 01:20 PM   #3
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
because /usr/kde/3.4/bin/ is not set in your $PATH variable(???). check it by:

echo $PATH

another command that doesn't require knowledge of what's in your $PATH, but does require you to keep you locate db up to date is:

locate kate
 
Old 09-15-2005, 01:29 PM   #4
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
Quote:
which /usr/ke/3.4/bin is in my path, so why does not the whereis command find it?
sorry that did not make much sense, I was trying to say it is in my path. the whereis command must not use the $PATH variable


Code:
shane@mainbox ~ $ echo $PATH
/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130:/usr/i386-pc-linux-gnu/gcc-bin/3.3.5:/opt/sun-jdk-1.4.2.08/bin:/opt/sun-jdk-1.4.2.08/jre/bin:/opt/sun-jdk-1.4.2.08/jre/javaws:/usr/qt/3/bin:/usr/kde/3.4/bin:/usr/kde/3.3/bin:/usr/games/bin:/home/shane/bin

I just found this last line in the whereis man page
Quote:
whereis has a hard-coded path, so may not always find what you're look-
ing for.
 
Old 09-15-2005, 02:42 PM   #5
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Re: whereis kate

Quote:
Originally posted by shanenin
I wanted to make a icon to the kate editor, but I am not sure where the location of it is. It runs by typing the command, but I am not sure how it is in my path
You don't need to know the location of it to make an icon for it. Create the launcher, and for command, just type kate.
 
  


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
using $PATH with whereis shanenin Programming 5 09-16-2005 09:28 AM
whereis Realplayer? mohapi Fedora 8 06-12-2004 02:00 PM
help : whereis mkinitrd? marsques Slackware 6 05-23-2004 03:52 PM
Kate Is Not Working, Kate editor is not starting in Redhat 9 apur Linux - General 4 05-11-2004 09:52 AM
diffenerce between whereis an which??????? iamthewind Linux - Software 3 10-10-2003 02:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:26 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