Linux Tutorial:: Add Timestamp to Terminal | View Command Execution (History) Time

Video is ready, Click Here to View ×


Linux Tutorial:
Add Timestamp to Terminal and View Command Execution (History) Time.

Commands Used:
———————————————————-
1. Open ~/.bashrc and add the following:
export HISTTIMEFORMAT=”%d/%m/%y %T ”

$ source .bashrc
$ history

2. Open ~/.bashrc and add the following:
export PROMPT_COMMAND=”echo -n [$(date +%H:%M:%S:%3N)] ”

$ source .bashrc
——————————

Website:
Twitter:…

Be the first to comment

Leave a Reply

Your email address will not be published.


*