Shell编程(三)Shell特性

Shell编程(三)Shell特性

!$:显示上一条命令最后一个参数

Shell编程(三)Shell特性

Shell编程(三)Shell特性

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

Shell编程(三)Shell特性

alias xxx="命令":给命令取别名 xxx

通过 vim ~/.bashrc 里编辑,可以来修改别名。

Shell编程(三)Shell特性

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

Shell编程(三)Shell特性

Shell编程(三)Shell特性

管道:|

Shell编程(三)Shell特性

命令排序

Shell编程(三)Shell特性

shell通配符

 Shell编程(三)Shell特性

Shell编程(三)Shell特性

子shell:重新开一个shell执行。 (注:souch script.sh  或  .   script.sh 在当前shell里执行)

  •  /script.sh 
  • bash script.sh
  • (命令)

集合:{}

Shell编程(三)Shell特性

Shell编程(三)Shell特性

颜色输出

Shell编程(三)Shell特性

Shell编程(三)Shell特性

 

 

posted @ 2019-02-10 23:31 douzujun 阅读(...) 评论(...) 编辑 收藏

相关文章:

  • 2021-05-19
  • 2021-12-04
  • 2021-08-14
  • 2021-12-19
  • 2021-09-18
  • 2021-07-28
  • 2021-06-09
  • 2021-06-21
猜你喜欢
  • 2021-11-24
  • 2022-12-23
  • 2021-04-28
  • 2021-10-31
  • 2021-08-21
  • 2021-06-18
相关资源
相似解决方案