My current history file looks like this:501  ls502  uname503  pwd504  whoami505  historyI would like to include the the sudo'd user and timestamp in each line.It should look something like this501  Tue Apr 25 10:20:51 alex ls502  Tue Apr 25 10:20:53 uname503  Tue Apr 25 10:20:56 pwd504  Tue Apr 25 10:21:01 whoami505  Tue Apr 25 10:21:03 historyI know that the user that was used to get sudo can be achieved with logname how can I prefix all history lines with this info?Thanks,
Inject/prefix all lines in bash history with user / timestamp
bash;history