文件名通配符:
能够匹配符合指定特征的字符
* 任意长度的字符
?任意单个字符
[ ] 代表指定范围的单个字符
命令别名:
alias cmdalias=‘command [option] [argument]'
alias :查看定义的别名
定义别名:
[root@localhost ~]# alias if1='ifconfig ens33'
[root@localhost ~]# if1
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.101.180 netmask 255.255.255.0 broadcast 192.168.101.255
inet6 fe80::f808:4364:4457:bace prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:7d:33:fe txqueuelen 1000 (Ethernet)
RX packets 2376 bytes 202831 (198.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1359 bytes 138863 (135.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@localhost ~]# ls -a
. .. anaconda-ks.cfg .bash_history .bash_logout .bash_profile .bashrc .cshrc .tcshrc
将命令别名添加到用户环境配置文件
[root@localhost ~]# vi .bashrc
添加命令别名对所有用户生效
[root@localhost ~]# vi /etc/bashrc