Execute shortcut commands under CentOS6.6

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.