0

We want to monitor the user typing command using terminal . Where the command is saving (.bash-history) is only showing few of the command. Is it possible to get the command executed from the beginning

1 Answers1

1

You can increase the bash history size. Basically you can increase it to unlimited.

export HISTSIZE=
export HISTFILESIZE=

The above lines can be added in ~/.bashrc of the user or /etc/bash.bashrc

ztik
  • 448