how to find which directory a program "Application" is hidden?

Asked by JP Dallaire on 2012-09-16

Need to download a torrent with KTorrent but only Transmission is the default application on the "What to do" box. When I click "Other Application" I do not see KTorrent since I do not know which directory it is. There was a command to find an application with terminal but do not remember how to do this.

Thank You for your help

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Mark Rijckenberg
Solved:
2012-09-16
Last query:
2012-09-16
Last reply:
2012-09-16

Here is the requested command, after installing ktorrent:

$ dpkg -L ktorrent
/.
/usr
/usr/bin
/usr/bin/ktorrent
/usr/bin/ktupnptest
/usr/lib
/usr/lib/kde4
/usr/lib/kde4/ktbwschedulerplugin.so
/usr/lib/kde4/ktdownloadorderplugin.so
/usr/lib/kde4/ktinfowidgetplugin.so
/usr/lib/kde4/ktipfilterplugin.so
/usr/lib/kde4/ktlogviewerplugin.so
/usr/lib/kde4/ktmediaplayerplugin.so
/usr/lib/kde4/ktscanfolderplugin.so
/usr/lib/kde4/ktscriptingplugin.so
/usr/lib/kde4/ktsearchplugin.so
/usr/lib/kde4/ktshutdownplugin.so
/usr/lib/kde4/ktstatsplugin.so
/usr/lib/kde4/ktsyndicationplugin.so
/usr/lib/kde4/ktupnpplugin.so
/usr/lib/kde4/ktwebinterfaceplugin.so
/usr/lib/kde4/ktzeroconfplugin.so
/usr/lib/libbtcore.so.12.3.0
/usr/lib/libktcore.so.10.2.0
/usr/lib/libktupnp.so.4.1.0
/usr/share
/usr/share/applications
/usr/share/applications/kde4
/usr/share/applications/kde4/ktorrent.desktop
/usr/share/kde4
/usr/share/kde4/services
/usr/share/kde4/services/ktbwschedulerplugin.desktop
/usr/share/kde4/services/ktdownloadorderplugin.desktop
/usr/share/kde4/services/ktinfowidgetplugin.desktop
/usr/share/kde4/services/ktipfilterplugin.desktop
/usr/share/kde4/services/ktlogviewerplugin.desktop
/usr/share/kde4/services/ktmediaplayerplugin.desktop
/usr/share/kde4/services/ktscanfolderplugin.desktop
/usr/share/kde4/services/ktscriptingplugin.desktop
/usr/share/kde4/services/ktsearchplugin.desktop
/usr/share/kde4/services/ktshutdownplugin.desktop
/usr/share/kde4/services/ktstatsplugin.desktop
/usr/share/kde4/services/ktsyndicationplugin.desktop
/usr/share/kde4/services/ktupnpplugin.desktop
/usr/share/kde4/services/ktwebinterfaceplugin.desktop
/usr/share/kde4/services/ktzeroconfplugin.desktop
/usr/share/kde4/servicetypes
/usr/share/kde4/servicetypes/ktorrentplugin.desktop
/usr/share/doc
/usr/share/doc/ktorrent
/usr/share/doc/ktorrent/README.Debian
/usr/share/doc/ktorrent/copyright
/usr/share/doc/ktorrent/NEWS.Debian.gz
/usr/share/doc/ktorrent/changelog.gz
/usr/share/doc/ktorrent/changelog.Debian.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/ktorrent.1.gz
/usr/share/man/man1/ktupnptest.1.gz
/usr/share/menu
/usr/share/menu/ktorrent
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/ktorrent
/usr/lib/libbtcore.so.12
/usr/lib/libktcore.so.10
/usr/lib/libktupnp.so.4

type:

which ktorrent

in a konsole and it will tell you the binary

JP Dallaire (tiger50ms) said : #3

Thanks Mark Rijckenberg, that solved my question.

JP Dallaire (tiger50ms) said : #4

I found the executable file in /USR/BIN thank you... although there was a way to find any file with a command like "where is ***" or "find ***" I tried but not a executable command on either. I know there is a way to find any file or folder with terminal, since Linux has a way to place files in different directories and sub directories, hard to follow... But for now it will do, since you pointed which directories KTorrent was. Thanks Again

andy@fileserver:~$ which leafpad
/usr/bin/leafpad

For example, works great...

As actionparsnip already wrote, try the command:

which ktorrent