摘要: #!/bin/bash#read -p "Input username: " username while :;docat << EOFU|u) show UIDG|g) show GIDS|s) show SHELLQ|q) quit.R|r) Re-select the user.EOF jud 阅读全文
posted @ 2017-05-11 19:19 孤鸟的悲歌丶 阅读(341) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#function menu(){cat << EOFd|D) show disk usagesm|M) show memory usagess|S) show swap usagesq|Q) quit.EOF}while :;do menuread -p "Your choi 阅读全文
posted @ 2017-05-11 14:54 孤鸟的悲歌丶 阅读(199) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#function user {judge=`id -u $1 &>/dev/null` if [ $? -eq 0 ];then uid=`id -u $1` Shell=`grep "$1" /etc/passwd | awk -F : '{print $7}' ` ech 阅读全文
posted @ 2017-05-11 14:50 孤鸟的悲歌丶 阅读(3882) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash function detect(){ ping=`ping -c 1 $1 &>/dev/null`} for i in {0..254};do detect 193.168.1.$i if [ $? -eq 0 ];then echo -e "\033[32mIP 193. 阅读全文
posted @ 2017-05-11 11:47 孤鸟的悲歌丶 阅读(347) 评论(0) 推荐(0) 编辑