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.
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
history � GNU History Library
HISTIMEFORMAT � Environmental Variable
%d � Day
%m � Month
%y � Year
%T � Time Stamp
%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.
.bashrc � is a shell script that BASH runs whenever it is started interactively.
history Command Logs
Byrockatardevil
No comments:
Post a Comment