Show commands run with sudo from the journal
sudo command history all users | who ran sudo commands | sudo log journalctl | journalctl | sudo | auditjournalctl _COMM=sudo --since "7 days ago" --no-pager | grep 'COMMAND='sudo logs every call with the calling user, working directory, target user and full command. The filter shows only these command lines from the selected time range. Useful for attributing system changes to a person and a point in time.
Note: Commands inside a root shell opened with sudo -i or sudo su are not recorded individually this way. With rsyslog, the entries are also in /var/log/auth.log.
Also searched as
- sudo command history all users
- who ran sudo commands
- sudo log journalctl