摘要: #!/bin/bash#author:byc ####echo后的引号可加可不加,单引号内的变量引用需要再加一层单引号#####echo "this is a test" #####$0当前执行程序,$1输入的第一个参数#echo $0#echo "your number is $1" ####数组 阅读全文
posted @ 2019-08-27 17:52 逸清尘 阅读(234) 评论(0) 推荐(0)
摘要: 1、su命令 su -root 切换成root身份和shell环境;su root 切换成root身份,但是shell环境没变 前者service命令可用,后者service命令不可用; 执行echo $PATH,显示环境变量不同 https://www.runoob.com/linux/linux 阅读全文
posted @ 2019-08-01 17:50 逸清尘 阅读(1081) 评论(0) 推荐(0)