摘要: [root@foundation0 ~]# yum install mariadb-server.x86_64 -yLoaded plugins: langpacks, product-id, search-disabled-repos, subscription-managerThis syste 阅读全文
posted @ 2019-03-24 16:30 Josh_Xie 阅读(1882) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash if [ $# -eq 1 ] ; then if [ -f "$1" ] ; then while read username ; do user add -s /bin/false $username &>/dev/null done < $1 else echo "In... 阅读全文
posted @ 2019-03-24 15:16 Josh_Xie 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 编写一个简单的bash脚本hello.sh,提供如下特性: 1. 当运行./hello.sh student , 输出为 teacher 2. 当运行./hello.sh teacher, 输出为 student 3. 当没有任何参数,或参数不是teache 或者 student 时,在控制台打印输 阅读全文
posted @ 2019-03-24 11:36 Josh_Xie 阅读(132) 评论(0) 推荐(0) 编辑