Hack 52. Repeat previous command quickly using 4 different methods
by Ramesh
Sometime you may end up repeating the previous commands for various reasons. Following are the 4 different ways to repeat the last executed command.
- Use the up arrow to view the previous command and press enter to execute it.
- Type !! and press enter from the command line.
- Type !-1 and press enter from the command line.
- Press Control+P will display the previous command, press enter to execute it.
当前内容版权归 Ramesh Natarajan 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Ramesh Natarajan .