Page 1 of 1

[Solved] From User to system

Posted: Tue Jun 11, 2019 10:00 am
by flesh-drive
How can I see what command has been written when I click on a program and How can I see directly what command was sent from me to linux mint OS system .

Re: From User to system

Posted: Tue Jun 11, 2019 10:28 am
by karlchen
Hello, flesh-drive.

There is e.g. gnome-system-monitor (Cinnamon desktop), mate-system-monitor (Mate desktop), xfce4-taskmanager (xfce desktop).
They all offer a Process View. Inside this process view you can inspect the commandlines, which are being executed.

Image
(Gnome System Monitor. Click screenshot to enlarge. Press <Alt><Cursor Left> to return here.)

HTH,
Karl

Re: From User to system

Posted: Tue Jun 11, 2019 11:51 am
by secureIT
Also look here :

https://unix.stackexchange.com/question ... ing-in-gui

and the answer of akid (extension of artistoex's answer) in this thread :

https://superuser.com/questions/143602/ ... e-ui-click

Re: From User to system

Posted: Tue Jun 11, 2019 12:05 pm
by Flemur
flesh-drive wrote:
Tue Jun 11, 2019 10:00 am
How can I see what command has been written when I click on a program and How can I see directly what command was sent from me to linux mint OS system .
Great question. In addition to gnome-system-monitor "lxtask" is simple, lightweight; sort the processes by PID and your recent commands/menu-choices will be at the top.

Similar also in a terminal:

Code: Select all

ps aux | grep username
Also

Code: Select all

grep "Part of Menu Prompt" /usr/share/applications/*.desktop | grep Name
then look for "Exec" in those files:

Code: Select all

$ grep erminal *.desktop | grep Name
exo-terminal-emulator.desktop:Name=Terminal Emulator
gksu.desktop:Name=gksu x-terminal-emulator
..snip some names...
xfce4-terminal.desktop:GenericName=xfce4-terminal
$
$ grep Exec xfce4-terminal.desktop
Exec=xfce4-terminal
$ grep Exec gksu.desktop
Exec=gksu /usr/bin/x-terminal-emulator
Exec=the stuff you'd type in the terminal to run the program.