---
title: "Timestamping your bash_history"
canonical: "https://kb.uconn.edu/space/IKB/10744071206/Timestamping%20your%20bash_history"
format: markdown
---
This is useful when trying to figure out what was done when. You can configure your profile to timestamp the bash_history.

To add a timestamp, simply execute the following:

```
echo ‘export HISTTIMEFORMAT=”%d/%m/%y %T “‘ >> ~/.bash_profile ; source ~/.bash_profile
```

Now the history command is more useful.

## Related Articles

> Macro (contentbylabel)