摘要: 功能说明:功能强大的网络工具语 法:nc[-hlnruz][-g<网关...>][-G<指向器数目>][-i<延迟秒数>][-o<输出文件>][-p<通信端口>][-s<来源位址>][-v...][-w<超时秒数>][主机名称][通信端口...]参 数:-g<网关>设置路由器跃程通信网关,最丢哦可设置8个。-G<指向器数目>设置来源路由指向器,其数值为4的倍数。-h在线帮助。-i<延迟秒数>设置时间间隔,以便传送信息及扫描通信端口。-l使用监听模式,管控传入的资料。-n直接使 阅读全文
posted @ 2013-05-31 17:32 sunsweet 阅读(385) 评论(0) 推荐(0) 编辑
摘要: yum installntpdatesudo crontab -e 添加01 6 * * * /usr/sbin/ntpdate asia.pool.ntp.org 每天6点1分同步时间hwclock --systohc硬件时钟与内核时钟同步,硬件时钟被内核时钟赋值hwclock --hctosys内核时钟与硬件时钟同步,内核时钟被硬件时钟赋值时间服务器:time.scau.edu.cn 阅读全文
posted @ 2013-05-31 14:44 sunsweet 阅读(201) 评论(0) 推荐(0) 编辑
摘要: [anonymous@localhost ~/shell_test/awk]>>awk 'BEGIN {print n}{if (n==1) print "reading the first file";if (n==2) print "reading the second file";}' n=1 file1 n=2 file2reading the first filereading the second filen=1 n=2是传递的变量,file1 file2是文件,内容只有一行解释下执行流程因为BEGIN{}里的语句 阅读全文
posted @ 2013-05-31 11:24 sunsweet 阅读(357) 评论(0) 推荐(0) 编辑