---
title: "Discussion on \"Show Timestamps in Bash History\" | Hashnode"
description: "Discussion on \"Show Timestamps in Bash History\". The default Bash history is fine. But when you’re trying to remember when you ran a command or debug a past session, t’s basically useless.\nHere’s how to fix that.\nAdd Timestamps to Your Bash History\nAppend this line to your ~/.bashrc:\nHISTTIMEFORMAT..."
url: "https://hashnode.com/posts/show-timestamps-in-bash-history/68815f8654ad71fa4b3b7bbc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Show Timestamps in Bash History](https://rh-scripts.hashnode.dev/show-timestamps-in-bash-history?utm_source=hashnode&utm_medium=feed)

The default Bash history is fine. But when you’re trying to remember when you ran a command or debug a past session, t’s basically useless. Here’s how to fix that. Add Timestamps to Your Bash History Append this line to your ~/.bashrc: HISTTIMEFORMAT...

Jul 23, 2025 · 1 min read · rh-scripts.hashnode.dev  
Read the article

-   [#shellscripting-bashscripting-filerenaming-automation-devops-linuxcommands](https://hashnode.com/tag/shellscripting-bashscripting-filerenaming-automation-devops-linuxcommands)
-   [#shell-script](https://hashnode.com/tag/shell-script)
-   [#bash](https://hashnode.com/tag/bash)
-   [#history](https://hashnode.com/tag/history)

## Written by

[Roy Hayden](https://hashnode.com/@rhayden)

@rhayden

  
[View profile](https://hashnode.com/@rhayden)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
