Records all commands and outputs of an interactive session to a file. If no arguments are passed, the diary state is toggled.
To save outputs when running a script (non-interactive session), use outputlog.
Executes the shell command stringCommand. If executed in 'sync'mode or without additional inputs, the application waits until the execution is complete. If executed in 'async'mode, stringCommand is executed in a detached thread and control is returned to the application immediately.