---
title: "Discussion on \"How to Stop Commands from Appearing in Bash History\" | Hashnode"
description: "Discussion on \"How to Stop Commands from Appearing in Bash History\". I usually don't want my secrets to show up in my bash history in the $HOME/.bash_history file. Long ago, folks told me that using a trailing space will solve this issue, but it didn't. Apparently, there's some extra stuff to do\nJust do\nHISTCONTROL=ig..."
url: "https://hashnode.com/posts/how-to-stop-commands-from-appearing-in-bash-history/662f93ebf70a0f44b2f2b15b"
---

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

Discussion

# [How to Stop Commands from Appearing in Bash History](https://karuppiah.dev/how-to-stop-commands-from-appearing-in-bash-history?utm_source=hashnode&utm_medium=feed)

I usually don't want my secrets to show up in my bash history in the $HOME/.bash\_history file. Long ago, folks told me that using a trailing space will solve this issue, but it didn't. Apparently, there's some extra stuff to do Just do HISTCONTROL=ig...

Apr 29, 2024 · 1 min read · karuppiah.dev  
Read the article

-   [#bash](https://hashnode.com/tag/bash)
-   [#bash-history](https://hashnode.com/tag/bash-history)
-   [#fzf](https://hashnode.com/tag/fzf)

## Written by

[Karuppiah Natarajan](https://hashnode.com/@karuppiah7890)

@karuppiah7890 · Chennai, India

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

Software Developer

I like learning new stuff - anything, including technology. I love tinkering with new tools, systems and services, especially open source projects

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
