I am not sure if it is possible but I was trying to discover/view/analyze if there is any correlation between the actions that a regular user perform on the GUI side with some logs inside the system (logs, var, or console).
I would like to know if I can be able to see all the command line that are executed when the user interact with the Graphical Interface.
Let me give you an example.
In Mac OS X if you want to add a new user to the system, you use the System Preferences > Users and Groups > + add user > etc..
And more or less the same can be achieved with the usage 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 etc. etc.
My question is, there is any way for me to find the above code somewhere? Above it is just an example.
The user create a new folder on his/her by using the regular GUI. right click on his/her Desktop and create a new folder.
Can I see somewhere in the system something like:
I hope I was clear.
Thank you so much in advance for your help.