Skillfully learning skillfully using shortcut commands
1,!$ The last parameter of a command, do not have to repeat the input long parameters
For example:
[[Email protected]~]# cat/etc/sysconfig/network-scripts/ifcfg-eth0device=eth0hwaddr=00:0c:29:aa:77:84type= Ethernetuuid=7260d0db-35da-43f2-a0bd-c2d4edc24db2onboot=yesnm_controlled=yesbootproto=noneipaddr= 192.168.20.10netmask=255.255.255.0gateway=192.168.20.1dns1=192.168.1.17[[email protected] ~] #vi!$!$ equals/etc/syscon Fig/network-scripts/ifcfg-eth0vi/etc/sysconfig/network-scripts/ifcfg-eth0
2. ! The file name or! command executes the most recent command that starts with a file name or command, without repeatedly entering a long command or long parameter;
#! /etc/run a recent command that starts with/etc/
#! Cat runs the last command that starts with cat, with no spaces in the middle;
For example:
[Email protected]~]# cat/etc/resolv.conf; Generated By/sbin/dhclient-scriptnameserver 192.168.1.1nameserver 192.168.1.1[[email protected]~]#!catcat/etc/ resolv.conf; Generated By/sbin/dhclient-scriptnameserver 192.168.1.1nameserver 192.168.1.1
This article is from the "Model Student's Learning blog" blog, please be sure to keep this source http://8802265.blog.51cto.com/8792265/1619011
Execute shortcut commands under CentOS6.6