alias
定义一个别名:
alias NAME=“commond”
[root@localhost ~]# alias net ="vi /etc/sysconfig/network-scripts/ifcfg-eth0"
取消别名:
[root@localhost ~]# unalias net
跳过别名(:转义符)
[root@localhost ~]# \net
让别名永久生效:
[root@localhost ~]# vi /etc bashrc
在最低下添加
"alias net="vi /etc/sysconfig/network-scripts/ifcfg-ens33""
[root@localhost ~]# source /etc bashrc
标准输入、输出重定向:
标准输入:0;标准输出:1;错误输出:2
标准输出到文件:> filename (覆盖)
[root@localhost ~]# ls > file1
[root@localhost ~]# cat file1
anaconda-ks.cfg
apr-1.7.0.tar.gz
ceu
dev
err
errlog
file1
httpd-2.4.39
httpd-2.4.39.tar.bz2
null