[英]Run the last executed command in Windows command prompt
When using UNIX I use to type !!
使用UNIX时我用来键入!!
to run the last executed command. 运行最后执行的命令。
How could I do the similar kind of operation on Windows command prompt? 如何在Windows命令提示符下执行类似的操作?
↑紧接着是Enter
You can also use F7 to navigate the command history. 您还可以使用F7导航命令历史记录。 F1 will recover the last command character by character. F1将逐个字符地恢复最后一个命令。
Windows PowerShell Windows PowerShell
ihy
Invoke-History
Sometimes (if you didn't press F9 & didn't choose an older command and if you didn't navigate through history using the keys F5 / F7 ), the following keys can work in cmd : 有时 (如果您没有按F9并且没有选择较旧的命令,并且如果您没有使用F5 / F7键浏览历史记录),则以下键可以在cmd中工作:
A description for the functions above can be found on the Microsoft website . 有关上述功能的说明,请访问Microsoft网站 。
您可以使用向上和向下箭头或F3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.