Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 07-13-2009, 12:56 AM   #1
LQ Newbie
Registered: Mar 2009
Distribution: Ubuntu 9.04
Posts: 11

Rep: Reputation: 0
GUI to Command interpreter


I think there is a way to see commands in the Terminal while using GUI,anyone knows how to do that?
For example, you open Terminal and when you open a folder it will show in the terminal "cd folder" and so on.
Old 07-13-2009, 01:44 AM   #2
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
If I understand you correctly, wouldn't starting the gui app from a terminal give you that result?
Old 07-13-2009, 02:05 AM   #3
Senior Member
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Most will not show the commands but the only the standard out or error of the commands if your lucky. I think most commands will be in a sub shell or function (start do what they do and exit) and cannot be "monitored" in your current shell. There may be a way but I'm not aware of it.

Last edited by micxz; 07-13-2009 at 02:56 AM.
Old 07-13-2009, 02:50 AM   #4
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,072

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
Nope, in general terms. To start with, GUI programs don't work that way usually. It would be a complete nonsense and a waste of resources. Programs use system calls, code contained within libraries like libc or whatever is applicable to the language.

In C, for example, you would use opendir() or a similar function.

You can use something like strace, though. That will show you a lot of info about what the program is doing. You have to know how to read it though.
Old 07-13-2009, 07:06 AM   #5
LQ Newbie
Registered: Mar 2009
Distribution: Ubuntu 9.04
Posts: 11

Original Poster
Rep: Reputation: 0
yes, something like strace, but it was not that detail..



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
simple command interpreter Ayman.mashal Programming 7 06-04-2007 08:06 AM
MySmartCI - The Simple and Small command interpreter MaaSTaaR General 0 07-25-2006 08:47 PM
Command Line Interpreter prady Linux - Newbie 1 02-19-2006 09:58 PM
taming python's interpreter 'help()' command southsibling Programming 7 06-04-2005 06:58 PM
scheme interpreter w/ command-line editing nazdrowie Programming 1 12-03-2004 08:20 AM

All times are GMT -5. The time now is 06:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration