If I attempt to open a file without an associated application I am asked to browse to the appropriate executable. I have learned to find these in /usr/bin, however I can't always find them. I have three questions related to this dilemma:
1. Where is the exectuable for pupctorrent? There is a file in /usr/bin by the name of ctorrent, although it does not run the program.
2. Why are so many common filetypes without association from within SeaMonkey? SM doesn't even know what to do with a bmp.
3. In general, how can find out where the executables are for any application? Icons on the desktop give a "show location" function when right-clicked, but not so with links in the menu.
Regards,
weevil
How to find executables for files?
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
Re: Finding executables
If they are not in /usr/bin then they are elsewhere.weevilpup wrote:If I attempt to open a file without an associated application I am asked to browse to the appropriate executable. I have learned to find these in /usr/bin, however I can't always find them.
Look into:
Code: Select all
echo $PATH
weevilpup wrote:I have three questions related to this dilemma:
1. Where is the exectuable for pupctorrent? There is a file in /usr/bin by the name of ctorrent, although it does not run the program.
Code: Select all
defaulttexteditor /usr/bin/pupctorrent
Code: Select all
# pupctorrent
bash: pupctorrent: command not found
#
If you type the executable name incomplete, and then hit the TAB key, i.e:.
#pupctorre[TAB]
the bash completion system will complete the name if the program it's installed and found in the path.
Then with:
#which pupctorrent
will show something like
#/usr/bin/pupctorrent
that's where the executable is.
#pupctorre[TAB]
the bash completion system will complete the name if the program it's installed and found in the path.
Then with:
#which pupctorrent
will show something like
#/usr/bin/pupctorrent
that's where the executable is.
Thanks for the help. The executable path is
/usr/sbin/pctorrent
After learning about whereis command and failing to find pupctorrent, I knew to try pctorrent because that is how it is labeled in the GUI menu.
If I hadn't thought to try pctorrent, how would I have found the name of the executable? Is there a way to do this through the GUI? Is there a database online? What do you do if you don't know the executable filename?
/usr/sbin/pctorrent
After learning about whereis command and failing to find pupctorrent, I knew to try pctorrent because that is how it is labeled in the GUI menu.
If I hadn't thought to try pctorrent, how would I have found the name of the executable? Is there a way to do this through the GUI? Is there a database online? What do you do if you don't know the executable filename?