#!/bin/bash #This script is used to check the server #system info system_info() { echo "**********************************************" echo "system info:" echo echo &
#!/bin/bash ssl=`netstat -ant |grep "0.0.0.0:22"|awk '{print $4}'|awk -F: '{print $2}'` if [ ${ssl}x = 22x ] then echo "ssh is running" else &nbs
#!/bin/bash directory () { let "filenum=0" let "dirnum=0" echo "Input your directory" read "dirnums" for file in $(ls
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号