Hack 54. Execute previous command that starts with a specific word
by Ramesh
Type ! followed by the starting few letters of the command that you would like to re-execute. In the following example, typing !ps and enter, executed the previous command starting with ps, which is ‘ps aux | grep yp’.
- # !ps
- ps aux | grep yp
- root 16947 0.0 0.1 36516 1264 ? Sl 13:10 0:00 ypbind
- root 17503 0.0 0.0 4124 740 pts/0 S+ 19:19 0:00 grep yp
当前内容版权归 Ramesh Natarajan 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Ramesh Natarajan .