[Solved] From User to system

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
flesh-drive

[Solved] From User to system

Post 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 .
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
karlchen
Level 23
Level 23
Posts: 18231
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: From User to system

Post 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
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
User avatar
secureIT
Level 4
Level 4
Posts: 471
Joined: Wed Dec 05, 2018 1:26 pm

Re: From User to system

Post 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
.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: From User to system

Post 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.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Locked

Return to “Cinnamon”