Shell

shell 编程100例

1. 编写 hello world 脚本 #! /bin/bash echo "hello world!" 2. 通过位置变量创建 Linux 系统账户及密码 #! /bin/bash # $1 是第一个参数 $2 是第二个参数 # 通过cat /etc/passwd 查看创建的新用...

shell script

Shell 脚本(shell script),是一种为 shell 编写的脚本程序。 First shell script #! /bin/bash echo "Hello shell" chmod + x first.sh ./first.sh #! 是一个约定的标记,它告诉系统这个脚本需要...