Skip to content

Layer: Application

commandline_be edited this page Dec 14, 2017 · 3 revisions

Dependencies available to install for this layer

BASH

source: https://blog.rootshell.be/2009/02/28/bash-history-to-syslog/
add the below to /etc/profile

function log2syslog
{
declare command
command=$(fc -ln -0)
logger -p local1.notice -t bash -i — $USER : $command
}
trap log2syslog DEBUG

now systemctl restart rsyslog

Clone this wiki locally