Comments on: How to Run a Linux Command Without Saving It in History https://www.tecmint.com/run-linux-command-without-saving-in-history/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Fri, 14 Jul 2023 00:20:13 +0000 hourly 1 By: Aaron Kili https://www.tecmint.com/run-linux-command-without-saving-in-history/comment-page-1/#comment-1807487 Fri, 27 May 2022 08:09:54 +0000 https://www.tecmint.com/?p=46287#comment-1807487 In reply to Alexey.

@Alexey

It seems the variable is not set in Debian by default. You can add it manually using this command:

echo "HISTCONTROL=ignoreboth" >>~/.bashrc
]]>
By: Aaron Kili https://www.tecmint.com/run-linux-command-without-saving-in-history/comment-page-1/#comment-1807485 Fri, 27 May 2022 07:59:16 +0000 https://www.tecmint.com/?p=46287#comment-1807485 In reply to Alexey.

@Alexey

You are most welcome. Thanks for the feedback.

]]>
By: Alexey https://www.tecmint.com/run-linux-command-without-saving-in-history/comment-page-1/#comment-1796967 Mon, 16 May 2022 05:56:46 +0000 https://www.tecmint.com/?p=46287#comment-1796967 “But this depends fully on the value of the $HISTCONTROL shell variable defined in the ~/.bashrc Bash startup file.” – unfortunately, it doesn’t work in Debian 11 Bullseye since there is no related information about $HISTCONTROL in the ~/.bashrc file.

Where can I find this variable $HISTCONTROL in that OS?

Thank you!

]]>
By: Alexey https://www.tecmint.com/run-linux-command-without-saving-in-history/comment-page-1/#comment-1796956 Mon, 16 May 2022 05:30:58 +0000 https://www.tecmint.com/?p=46287#comment-1796956 Great article, thank you!

Does it work in both Debian and Redhat-based versions?

]]>