bash中获得最近一次命令的参数

比如
cat /etc/my.cnf
vi /etc/my.cnf

!$可以代替上一次命令的参数

这时可以使用
cat /etc/my.cnf
vi !$

猜你喜欢

转载自kabike.iteye.com/blog/2021871