Shell Command History

The cluster focuses on bash and other shells' command history features, including searching with Ctrl+R, tools like fzf, mcfly, and atuin for enhanced navigation, and debates on default behaviors versus custom enhancements.

➡️ Stable 0.6x DevOps & Infrastructure
3,217
Comments
20
Years Active
5
Top Authors
#7222
Topic ID

Activity Over Time

2007
1
2008
9
2009
36
2010
83
2011
80
2012
158
2013
233
2014
134
2015
165
2016
211
2017
194
2018
137
2019
143
2020
212
2021
276
2022
272
2023
224
2024
349
2025
285
2026
15

Keywords

PATH LLM ML uucp.hu digitalocean.com sysop.user content.md FZF HISTSIZE TIL history command bash shell commands ctrl zsh alias match text

Sample Comments

bandie91 Apr 2, 2025 View on HN

shameless plug: http://sysop.user.uucp.hu/bash-extended-history/content.md

andrewfromx May 24, 2016 View on HN

i wonder why this isn't default bash history behavior? Wouldn't it be way more useful this way?

necovek Mar 25, 2024 View on HN

When dealing with bash history, I find that too many people are still unaware of C-r (Ctrl+R or Command+R): press it and start typing unique bits of your past commands. If multiple commands match, cycle through them with repeated C-r presses.The usual reaction is :mindblown: :)

v_lisivka Feb 1, 2018 View on HN

In bash, you can type ^R, then text, to search that text in history interactively. Hit ^R again, if you want to see another match of same text. It saves lot of typing.

myroon5 Nov 30, 2020 View on HN

Wish history of previous commands and output were kept like a standard shell to scroll through and copy-paste things

jonfw Sep 22, 2020 View on HN

Check out FZF for fuzzy finding through your command history in this manner- it is absolutely the superior way to search command history

manaskarekar Oct 26, 2019 View on HN

> With Fish I never have to ask you again. I just remember part of it, and suddenly I've got it.Are you referring to something other than cycling through history?In bash, hit `Ctrl+R`, then type whatever part of the command to cycle through history.You may choose to adjust the size of the history file in `.bashrc` as needed.A good reference: <a href="https://www.digitalocean.com/community/tutorials/how-to-use-bash-history-commands-and-expansions-on-a-

kittikitti Feb 17, 2025 View on HN

I usually copy and paste my bash history to a LLM and ask questions. But I also use Ctrl (Cmd) + R for a exact keyword search.

jarin Oct 3, 2014 View on HN

Er, why not just use the `history` command (or hit the up arrow)?

thayne Nov 29, 2025 View on HN

What advantage does it have over zsh (or bash) native history?