Command history (original) (raw)
命令行历史记录是许多操作系统的命令行界面和一些软件中的功能,允许用户调用、编辑和重新运行以前的命令。 命令行历史记录最早出现在比尔·乔伊开发的C Shell中,这个功能的灵感来自于Interlisp的使用。 它简便了很多操作,并且使C Shell易于使用,因此很快地流行起来。如今,命令行历史记录已成为Shell中的标准功能,包括ksh、bash和Microsoft的cmd.exe 。它的快捷体现在两个方面: 1. * 一遍又一遍地执行相同的命令或一系列短命令,例如,开发人员经常编译和运行程序。 2. * 只需稍加修改即可纠正错误或重新运行命令。 在最初的C shell中,用户可以通过键入感叹号来引用上一个命令 ! ,然后是其他字符,用于输入特定命令,或者在将其粘贴回命令行之前对其进行编辑。例如: !! 意味着整个以前的命令。!$只是上一个命令的最后一个字。! abc表示以abc开头的命令。 现在常见的做法是将历史记录与命令行编辑结合起来。方向键用于在历史列表中上下导航,并向左或向右导航到行中的任何位置,用户只需输入所需的更改即可。除此之外,还有一种使用菜单导航的历史记录:用户按下某个功能键来显示最近命令,用户通过输入数字来选择相应的命令。
Property | Value |
---|---|
dbo:abstract | 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. Command line history was added to Unix in Bill Joy's C shell of 1978; Joy took inspiration from an earlier implementation in Interlisp. 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. Some implementation such as Bash support to record command history to a file (history command). (en) 命令行历史记录是许多操作系统的命令行界面和一些软件中的功能,允许用户调用、编辑和重新运行以前的命令。 命令行历史记录最早出现在比尔·乔伊开发的C Shell中,这个功能的灵感来自于Interlisp的使用。 它简便了很多操作,并且使C Shell易于使用,因此很快地流行起来。如今,命令行历史记录已成为Shell中的标准功能,包括ksh、bash和Microsoft的cmd.exe 。它的快捷体现在两个方面: 1. * 一遍又一遍地执行相同的命令或一系列短命令,例如,开发人员经常编译和运行程序。 2. * 只需稍加修改即可纠正错误或重新运行命令。 在最初的C shell中,用户可以通过键入感叹号来引用上一个命令 ! ,然后是其他字符,用于输入特定命令,或者在将其粘贴回命令行之前对其进行编辑。例如: !! 意味着整个以前的命令。!$只是上一个命令的最后一个字。! abc表示以abc开头的命令。 现在常见的做法是将历史记录与命令行编辑结合起来。方向键用于在历史列表中上下导航,并向左或向右导航到行中的任何位置,用户只需输入所需的更改即可。除此之外,还有一种使用菜单导航的历史记录:用户按下某个功能键来显示最近命令,用户通过输入数字来选择相应的命令。 (zh) |
dbo:wikiPageID | 667190 (xsd:integer) |
dbo:wikiPageLength | 2623 (xsd:nonNegativeInteger) |
dbo:wikiPageRevisionID | 1084767367 (xsd:integer) |
dbo:wikiPageWikiLink | dbr:Menu_(computing) dbr:Bash_(Unix_shell) dbr:Bill_Joy dbr:Unix dbr:Command_(computing) dbr:Comparison_of_command_shells dbr:Computer_algebra dbr:Computer_software dbr:Cmd.exe dbr:Command-line_completion dbr:C_shell dbr:DOSKEY dbr:HISTORY_(CONFIG.SYS_directive) dbc:User_interfaces dbr:Autocomplete dbr:Interlisp dbr:KornShell dbr:Microsoft dbr:IntelliSense dbr:Command-line_interpreter |
dbp:wikiPageUsesTemplate | dbt:Reflist dbt:Short_description |
dcterms:subject | dbc:User_interfaces |
gold:hypernym | dbr:Feature |
rdf:type | dbo:Work yago:WikicatUserInterfaces yago:Abstraction100002137 yago:Code106355894 yago:CodingSystem106353757 yago:Communication100033020 yago:Interface106575227 yago:Program106568978 yago:Writing106359877 yago:WrittenCommunication106349220 yago:Software106566077 |
rdfs:comment | 命令行历史记录是许多操作系统的命令行界面和一些软件中的功能,允许用户调用、编辑和重新运行以前的命令。 命令行历史记录最早出现在比尔·乔伊开发的C Shell中,这个功能的灵感来自于Interlisp的使用。 它简便了很多操作,并且使C Shell易于使用,因此很快地流行起来。如今,命令行历史记录已成为Shell中的标准功能,包括ksh、bash和Microsoft的cmd.exe 。它的快捷体现在两个方面: 1. * 一遍又一遍地执行相同的命令或一系列短命令,例如,开发人员经常编译和运行程序。 2. * 只需稍加修改即可纠正错误或重新运行命令。 在最初的C shell中,用户可以通过键入感叹号来引用上一个命令 ! ,然后是其他字符,用于输入特定命令,或者在将其粘贴回命令行之前对其进行编辑。例如: !! 意味着整个以前的命令。!$只是上一个命令的最后一个字。! abc表示以abc开头的命令。 现在常见的做法是将历史记录与命令行编辑结合起来。方向键用于在历史列表中上下导航,并向左或向右导航到行中的任何位置,用户只需输入所需的更改即可。除此之外,还有一种使用菜单导航的历史记录:用户按下某个功能键来显示最近命令,用户通过输入数字来选择相应的命令。 (zh) 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. Command line history was added to Unix in Bill Joy's C shell of 1978; Joy took inspiration from an earlier implementation in Interlisp. 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: (en) |
rdfs:label | Command history (en) 命令行历史记录 (zh) |
owl:sameAs | freebase:Command history yago-res:Command history wikidata:Command history dbpedia-zh:Command history https://global.dbpedia.org/id/4hdt2 |
prov:wasDerivedFrom | wikipedia-en:Command_history?oldid=1084767367&ns=0 |
foaf:isPrimaryTopicOf | wikipedia-en:Command_history |
is dbo:wikiPageDisambiguates of | dbr:History_(disambiguation) |
is dbo:wikiPageRedirects of | dbr:Command_History |
is dbo:wikiPageWikiLink of | dbr:Qshell dbr:Bash_(Unix_shell) dbr:Uncontrolled_format_string dbr:Vim_(text_editor) dbr:GNU_Readline dbr:Command-line_completion dbr:Z_shell dbr:Take_Command_Console dbr:Almquist_shell dbr:AmigaDOS dbr:4DOS dbr:DOSKEY dbr:DR-DOS dbr:Exclamation_mark dbr:Fish_(Unix_shell) dbr:History_(command) dbr:List_of_DOS_commands dbr:Tcsh dbr:Joe's_Own_Editor dbr:CLS_(command) dbr:Spyder_(software) dbr:KornShell dbr:History_(disambiguation) dbr:Command_History dbr:Outline_of_human–computer_interaction |
is foaf:primaryTopic of | wikipedia-en:Command_history |