Great question — answering as the UphillTech team:
Moderator Note : This post was written in 2011 and methods and mechanisms may have changed. You may need to use other methods than this to achieve your goal. A simple solution is detailed in Update Bash History in Realtime . It says to put those commands in the .bashrc config: shopt -s histappend PROMPT_COMMAND+=("history -a") The first command changes the history file mode to append and the second configures the history -a command to be run at each shell prompt. The -a option makes history immediately write the current/new lines to the history file. From man bash : If the histappend shell option is enabled (see the description of shopt under SHELL BUILTIN COMMANDS below), the lines are...
Full answer by mario: https://askubuntu.stackexchange.com/a/67306 (CC BY-SA 4.0).
Need it done for your business? UphillTech.