[root@localhost sh]#vi hello.sh             //编辑 .sh 文件
#The first program
#!/bin/bash
echo 'hello world'
[root@localhost sh] chmod 755 hello.sh     //赋予执行权限
[root@localhost sh] ./hello.sh             //执行sh

hello world

  

相关文章:

  • 2021-12-11
  • 2021-06-06
  • 2021-05-24
  • 2021-11-14
  • 2021-12-31
  • 2021-10-09
猜你喜欢
  • 2021-08-02
  • 2021-08-16
  • 2022-12-23
  • 2021-11-17
  • 2021-09-20
  • 2021-12-19
相关资源
相似解决方案