'Can we know exactly time and date occured any user activity by using history command?

Two ways to check Linux user history with date and time

  • Temporary: HISTTIMEFORMAT="%d/%m/%y %T "
  • Permanent: 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source