1

In a bash shell, history will list commands in the order of starting time.

Can I list commands in the order of terminating time? One possible application is that it will help to retrieve those commands recently terminated but started long time ago, without searching in history.

  • 2
    It's not possible, you have only HISTCONTROL, HISTFILESIZE, HISTIGNORE, HISTSIZE, HISTTIMEFORMAT. You can have only the starting time ( HISTTIMEFORMAT) and not the finishing time. – V. Michel Dec 22 '16 at 7:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.