Hack 53. Execute a specific command from history
by Ramesh
In the following example, If you want to repeat the command #4, execute !4 as shown below.
- # history | more
- 1 service network restart
- 2 exit
- 3 id
- 4 cat /etc/redhat-release
- # !4
- cat /etc/redhat-release
- Fedora release 9 (Sulphur)
当前内容版权归 Ramesh Natarajan 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Ramesh Natarajan .