#查看网络地址
ifconfig ens33 | head -2 |tail -1
ifconfig ens33 | head -2 |tail -1 | awk '{print $2}'
#变量赋值
ip=$(ifconfig ens33 | head -2 |tail -1 | awk '{print $6}')
echo $ip
#系统变量
echo $PATH
echo $USER
#查看变量
set
#系统环境变量
env
ls -a /etc/skel/ #用户家目录的模板目录
#安全性,防止其他用户看到执行的命令
vi /home/usr/.bash_logout
history -c
rm -rf .bash_history
#根据时间创建文件
touch $(date -d today +"%Y-%m-%d").log