5

How can I find the equivalent terminal command of some program I started from the GUI? For example, I open the start menu, go to accessories, and start the image viewer. Is there a way to find the equivalent terminal command for that action?

10

Right click the menu entry, select properties.

enter image description here

Select the Desktop Entry tab, command shows the terminal command, in this case 'gpicview'.

enter image description here

  • 4
    Nice succinct answer but can I suggest you clarify that, from this example, the %f is not part of the command that you might try running on the terminal but rather expanded to a filename by the menu entry. Other options are listed here developer.gnome.org/integration-guide/stable/… – Roger Jones Jan 25 at 9:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.