list accounts of /etc/passwd
#统计当前 Linux 系统中可以登录计算机的账户有多少个 grep "bash$&quo… 继续阅读 list accounts of /etc/passwd
#统计当前 Linux 系统中可以登录计算机的账户有多少个 grep "bash$&quo… 继续阅读 list accounts of /etc/passwd
# 显示本机 Linux 系统上所有开放的端口列表 ss -nutlp | awk '{p… 继续阅读 show all open ports and usage
#将文件中所有的小写字母转换为大写字母 tr "[a‐z]" "[A‐… 继续阅读 tr replace a-z to A-Z in full txt
#MySQL 数据库连接数量 mysqladmin -u "$user" -p … 继续阅读 mysql get connect counts
# 查看有多少远程的 IP 在连接本机 # sort 可以按数字大小排序,最后使用 uniq 将多余… 继续阅读 get remote host counts of tcp
echo 'eth0 网卡发送的数据包流量 ' ifconfig eth0 | … 继续阅读 get RX/TX pack of eth0
#每隔0.1秒ping一次,一共ping100次,并以1毫秒为单位设置ping的超时时间 ping … 继续阅读 ping set interval
#!/bin/bash # 提取根分区剩余空间 以 Kb 为单位 disk_size=$(df / … 继续阅读 linux get disk and mem free kb