how to know the time of execution of previous commands
linux的bash中,history命令可以看到1000行历史命令,但是没有执行时间。
如果想添加历史命令时间,可以这样做。
Try to run this command from terminal:
HISTTIMEFORMAT="%d/%m/%y %T "
Then now run history:
history
linux的bash中,history命令可以看到1000行历史命令,但是没有执行时间。
如果想添加历史命令时间,可以这样做。
Try to run this command from terminal:
HISTTIMEFORMAT="%d/%m/%y %T "
Then now run history:
history