1、shell摘记

括号扩展
()
[]:
{}:

系统默认开启的文件

系统默认开启stdin stdout stderr 并以0、1、2的文件代码做连接

转向的运行优先级

先运行< <<,然后运行> >>

shell排错
bash -v 检查语法
bash -x 追踪程序运行

记录命令所产生的记录

/usr/bin/script 1.txt 

命令

exit

变量