Timestamps for commands in `history` output is recorded randomly.

Solution Verified - Updated -

Issue

  • The users have HISTTIMEFORMAT variable exported in their .bash_profile file. But sometimes, the correct timestamp is recorded, whereas some times, it doesn't record the timestamp.
  • Is there any issues with the HISTTIMEFORMAT ?

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.