
!$:显示上一条命令最后一个参数
![]()

$?: 上个命令的退出状态,或函数的返回值。

alias xxx="命令":给命令取别名 xxx
通过 vim ~/.bashrc 里编辑,可以来修改别名。

<, <<:重定向输出 、>, >>:重定向到文件


管道:|

命令排序

shell通配符


子shell:重新开一个shell执行。 (注:souch script.sh 或 . script.sh 在当前shell里执行)
- /script.sh
- bash script.sh
- (命令)
集合:{}


颜色输出

