Add Timestamp for history for bash shell prompt
Page 1 of 1
Add Timestamp for history for bash shell prompt
sudo gedit /etc/bash.bashrc
now look for shopt
and make this line
shopt -s checkwinsize
export HISTTIMEFORMAT= "%a%b%d - %r "
to test close terminal shell window and re open and type history
now look for shopt
and make this line
shopt -s checkwinsize
export HISTTIMEFORMAT= "%a%b%d - %r "
to test close terminal shell window and re open and type history
Similar topics
» How to: Change / Setup bash custom prompt (PS1)
» In BashUp Arrow To Get Command History On Linux In Bash
» Using Linux Play Synth Bash Shell Scripting
» Running Linux Bash Shell Commands From Inside PHP Web Server
» Make linux bash dot sh file executable shell script
» In BashUp Arrow To Get Command History On Linux In Bash
» Using Linux Play Synth Bash Shell Scripting
» Running Linux Bash Shell Commands From Inside PHP Web Server
» Make linux bash dot sh file executable shell script
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum