[code]for i in /opt/config/*.sh ; do if [ -r "$i" ]; then if [ "${-#*i}" != "$-" ]; then . "$i" else . "$i" >/dev/null fi fi done
[code]#拷貝本地文件(目錄)到遠程服務器指定目錄,命令參數調換則為遠程拷貝到本地 scp localfile username@ip:folder scp -r folder username@ip:folder #安裝開發環境 yum groupinstall "Development Tools" #安裝ifconfig工具 yum install net-tools