<s>
Command	B-Application
history	I-Application
is	O
a	O
feature	O
in	O
many	O
operating	O
system	O
shells	O
,	O
computer	B-Algorithm
algebra	I-Algorithm
programs	O
,	O
and	O
other	O
software	B-Application
that	O
allows	O
the	O
user	O
to	O
recall	O
,	O
edit	O
and	O
rerun	O
previous	O
commands	B-Application
.	O
</s>
<s>
Command	O
line	O
history	O
was	O
added	O
to	O
Unix	B-Application
in	O
Bill	O
Joy	O
's	O
C	B-Operating_System
shell	I-Operating_System
of	O
1978	O
;	O
Joy	O
took	O
inspiration	O
from	O
an	O
earlier	O
implementation	O
in	O
Interlisp	B-Language
.	O
</s>
<s>
It	O
quickly	O
became	O
popular	O
because	O
it	O
made	O
the	O
C	B-Operating_System
shell	I-Operating_System
fast	O
and	O
easy	O
to	O
use	O
.	O
</s>
<s>
History	O
has	O
since	O
become	O
a	O
standard	O
feature	O
in	O
other	O
shells	O
,	O
including	O
ksh	B-Language
,	O
Bash	B-Operating_System
and	O
Microsoft	O
's	O
cmd.exe	B-Device
.	O
</s>
<s>
Executing	O
the	O
same	O
command	O
or	O
a	O
short	O
sequence	O
of	O
commands	B-Application
over	O
and	O
over	O
.	O
</s>
<s>
In	O
Joy	O
's	O
original	O
C	B-Operating_System
shell	I-Operating_System
,	O
the	O
user	O
could	O
refer	O
to	O
a	O
previous	O
command	O
by	O
typing	O
an	O
exclamation	O
,	O
!,	O
followed	O
by	O
additional	O
characters	O
to	O
specify	O
a	O
particular	O
command	O
,	O
only	O
certain	O
words	O
,	O
or	O
to	O
edit	O
it	O
in	O
some	O
way	O
before	O
pasting	O
it	O
back	O
into	O
the	O
command	O
line	O
.	O
</s>
<s>
But	O
some	O
implementations	O
are	O
menu-based	O
:	O
The	O
user	O
presses	O
a	O
certain	O
function	O
key	O
which	O
displays	O
a	O
menu	O
of	O
recent	O
commands	B-Application
,	O
which	O
the	O
user	O
can	O
select	O
one	O
by	O
typing	O
a	O
number	O
.	O
</s>
<s>
Some	O
implementation	O
such	O
as	O
Bash	B-Operating_System
support	O
to	O
record	O
command	B-Application
history	I-Application
to	O
a	O
file	O
(	O
history	O
command	O
)	O
.	O
</s>
