学习目标
Shell命令行书写规则

正文
对Shell命令行基本功能的理解有助于编写更好的Shell程序,在执行Shell命令时多个命令可以在一个命令行上运行,但此时要使用分号(;)分隔命令,例如:

root@ubuntu:~#  ls a* -l;free;df
 

长Shell命令行可以使用反斜线字符(\)在命令行上扩充,例如:

root@ubuntu:~# echo "this is \
> long command"
this is long command
 

注意:“>”符号是自动产生的,而不是输入的。

相关文章:

  • 2021-10-04
  • 2022-12-23
  • 2021-08-23
  • 2021-12-23
  • 2021-09-21
  • 2022-02-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案