I am not sure if it is possible, but I was trying to discover / see / analyze if there is any correlation between the actions performed by a normal user on the GUI side with some records within the system (records, var or console).
I would like to know if I can see all the command lines that are executed when the user interacts with the graphical interface.
Let me give you an example.
On Mac OS X, if you want to add a new user to the system, use the System preferences > Users and groups > + add user > etc.
And more or less the same can be achieved with the use of a command line:
sudo dscl . -create /Users/username
sudo dscl . -create /Users/username UserShell /bin/bash
sudo dscl . -create /Users/username RealName "John Smith"
sudo dscl . -create /Users/username UniqueID 1001
My question is, is there any way to find the previous code somewhere? Above is just an example.
The user creates a new folder in his / her using the normal GUI. Right click on your desktop and create a new folder.
Can I see something in the system like:
I hope I was clear.
Thank you very much beforehand for your help.