history with date
https://superuser.com/questions/397527/retrieve-linux-command-line-history-by-date
history with date [heat-admin@overcloud5b1-cc-0 ~]$ export HISTTIMEFORMAT='%F %T %t' [heat-admin@overcloud5b1-cc-0 ~]$ history | grep rabbitmq 239 2019-11-14 12:38:43 rabbitmqctl status 240 2019-11-14 12:38:43 sudo rabbitmqctl status 241 2019-11-14 12:38:43 cd /var/lib/rabbitmq/ 243 2019-11-14 12:38:43 sudo cd /var/lib/rabbitmq/ 244 2019-11-14 12:38:43 rabbitmqctl restart 245 2019-11-14 12:38:43 sudo rabbitmqctl restart 246 2019-11-14 12:38:43 sudo rabbitmqctl status 247 2019-11-14 12:38:43 sudo cd /var/lib/rabbitmq/ 252 2019-11-14 12:38:43 sudo cd /var/lib/rabbitmq/ 258 2019-11-14 12:38:43 ls /var/lib/rabbitmq/ 259 2019-11-14 12:38:43 sudo ls /var/lib/rabbitmq/ 262 2019-11-14 12:38:43 cd rabbitmq/ 263 2019-11-14 12:38:43 sudo cd rabbitmq/ 267 2019-11-14 12:38:43 cd rabbitmq/ 268 2019-11-14 12:38:43 sudo cd rabbitmq/ 283 2019-11-14 12:38:43 sudo rabbitmqctl status 303 2019-11-14 12:38:43 sudo rabbitmqctl status 304 2019-11-14 12:38:43 sudo rabbitmqctl start 305 2019-11-14 12:38:43 sudo systemctl start rabbitmq 308 2019-11-14 12:38:43 sudo rabbitmqctl start 309 2019-11-14 12:38:43 sudo rabbitmqctl status 312 2019-11-14 12:38:43 sudo rabbitmqctl status 313 2019-11-14 12:38:43 sudo rabbitmqctl start | |