Archives

Posts Tagged ‘audit’

Auditing shell commands in bash

Bash has a built in history function that records recent shell commands. But by default it only retains a raw list of those without attaching additional information. You can add a timestamps to each command by adding something like… 1 echo 'export HISTTIMEFORMAT="%F-%R%t"' >> ~/.bashrc … and then after reloading [More]