Show terminal commands for running GUI application
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Show terminal commands for running GUI application
Hi,
If I open a gui application via the menu is it possible to subsequently display a terminal window for this application?
i.e. I have just opened unison-gtk from the menu and I am scanning 2 directories. I'd really like to now open up a terminal to see the messages being output. It'd be very cool if I could even see the commands being executed (such as pressing the left to right button would show what terminal command would achieve the same).
I figure it'll be a helpful learning tool for myself, for any application have the option to display a terminal window, somehow, to see what's going on behind the prettiful GUI
Matt, as far as I know there's no application available which show you the excution process of an application in terminal, at the same time when appln. is running in GUI.
On terminal you can see the corressponding process running for that appln., but not the execution process.
For your learning, instead of launching the application from GUI, you can run that same appln. on command line in verbose or interactive mode to see the processing, but this is limited and practically not so uesful.
Matt, I understand where you're coming from; I've played with the idea of writing some applications for system maintenance that will display which files are actually modified when you save a configuration; e.g. for networking.
Another example, I'd like to see the apt-get commands that correspond to actions done in Synaptic...
The problem here would be that Synaptic does not launch apt-get at all, it is directly corresponding with the package management system, using libapt for this purpose.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.