24

I'm wonderering when this command was introduced and if it is part of some offical linux or is it ubuntu-specific ? How do I search my command-line history for commands I used before?

2 Answers 2

37

Old.

It's not a Linux thing. The feature you're talking of belongs to the bash shell via the readline library that it uses. It will work identically wherever you can get bash to run, including Windows, the BSDs, OSX, etc.

It's been part of Bash since at least version 1.14.7 (from 1995), since the manpage of that version mentions reverse-search-history much the same way today's manpages do. You can check the source from the GNU repository.

It's also mentioned in the FEATURES file of bash-1.05, which apparently is from 1990.

1
  • 10
    I would say, 1990 is very old. ;)
    – A.B.
    Nov 30, 2015 at 5:50
14

It originates with Emacs, not bash so it probably goes back to 1983 at least, if not 1975.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .