Command history

Command history

Command history is a feature in many operating system shells, computer algebra programs, and other software that allows the user to recall, edit and rerun previous commands.

History was first introduced by Bill Joy[1] in the C shell in 1978. It quickly became popular because it made the C shell fast and easy to use. History has since become a standard feature in other shells, including ksh, bash and Microsoft's cmd.exe. History addressed two important scenarios:

  1. Executing the same command or a short sequence of commands over and over. An example might be a developer frequently compiling and running a program.
  2. Correcting mistakes or rerunning a command with only a small modification.

In Joy's original C shell, the user could refer to a previous command by typing an exclamation, !, followed by additional characters to specify a particular command, only certain words, or to edit it in some way before pasting it back into the command line. For example:

!! meant the entire previous command.
!$ meant just the last word of the previous command.
!abc meant the command that started with abc.

The usual implementation today is to combine history with command-line editing. The cursor keys are used to navigate up and down through the history list and left or right to anyplace on the line, where the user can simply type a desired change. But some implementations are menu-based: The user presses a certain function key which displays a menu of recent commands, which the user can select one by typing a number.

See also

References


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Command Prompt — For other uses, see Command prompt (disambiguation). CMD redirects here. For other uses, see CMD (disambiguation). Command Prompt A component of Microsoft Windows …   Wikipedia

  • Command Prompt (Windows) — Infobox Windows component name = Command Prompt logo size = 64px caption = Command Prompt in Windows Vista| included with = Windows NT Windows CE OS/2 replaces = COMMAND.COM replaced by = related components = Windows PowerShell Batch filecmd.exe… …   Wikipedia

  • History of automated adaptive instruction in computer applications — Within the field of Human computer interaction there has long been interest in developing adaptive automated instruction software to facilitate learning of application programs. This software would monitor a computer user s behavior while he or… …   Wikipedia

  • Command & Conquer: Red Alert 3 — Red Alert 3 cover art Developer(s) EA Los Angeles Publisher(s) Elect …   Wikipedia

  • History of New Jersey — Colonial period American Revolution …   Wikipedia

  • History of Poland (1939–1945) — History of Poland This article is part of a series Chronology List of Polish monarchs …   Wikipedia

  • History of Somalia — Ancient Laas Geel Culture Kingdom of Punt Malaoites  · Oponeans …   Wikipedia

  • History of Germany (1945–1990) — History of Germany This article is part of a series …   Wikipedia

  • Command and Staff College — Emblem Motto Pir Sho Biyamooz Saadi Established 1905 Type Constituent college of the National Defence University, Islamabad …   Wikipedia

  • History of Libya under Muammar Gaddafi — History of Libya This article is part of a series Prehistory …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”