In Ubuntu, applications can be opened from a terminal. But sometimes it isn't clear what the appropriate command is to do this.
So, having an application open, how can I get the command used to launch it, without having to search anywhere (just by looking at it)?