Skip to main content

Posts

Showing posts from March 2, 2017

How to check history of command which used in linux terminal

How to check all commands which I used Use this  command. # history history command example Obvious from output, the history command do not output the time stamp with the log of last executed commands. Any solution for this? Yeah! Run the below command. # HISTTIMEFORMAT="%d/%m/%y %T " # history Explanation of commands and switches. history – GNU History Library HISTIMEFORMAT – Environmental Variable   %d – Day %m – Month %y – Year %T – Time Stamp   source – in short send the contents of file to shell .bashrc – is a shell script that BASH runs whenever it is started interactively. history Command Logs Byrockatardevil