dan@ubuntu:~$ fooSo what do we do? There are two solutions that I've managed to come accross in Ubuntuforums:
bash: foo: command not found
1. If the said program is a GUI program, we can do this solution by caljohnsmith:
If the program name you are looking for is for a GUI app, one trick you can do is run the GUI app from the menus, and then in a terminal do:
Then click on the GUI app Window, and most of the time the "WM_CLASS" field of xprop will tell you the GUI app name that can be run in the terminal. Is that maybe what you are looking for?Code:xprop | grep WM_CLASS
2. Another is by lwsb
2.a You can use synaptic, search for the package, then click on the tab that says "installed files" Look for one that is in one of the bin directories. From the command line you can use something like
dpkg -L packagename|grep bin
2.b Use the "locate" command. For example, say you know that there is a command for tweaking linux filesystems that has the word "fox" in it, but can't remember the exact name.
locate bin/foo
2.c "man -k", used like "man -k foo" This will search all man pages for "keyword" and return a list of commands and short descriptions.
As usual I got this tip from Ubuntuforums.
Ubuntuforums is a great resource not only for Ubuntu specific concerns but also for General GNU/Linux concerns. It's awesome.
No comments:
Post a Comment