上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 63 下一页
摘要: 一、根据私钥生产公钥 ssh-keygen -y -f id_rsa.pem 二、 <1> i174 .ssh # ssh 192.168.5.121No RSA host key is known for 192.168.5.121 and you have requested strict ch 阅读全文
posted @ 2015-07-15 16:40 arun_yh 阅读(846) 评论(0) 推荐(0) 编辑
摘要: 研究下centos6.6的日志回滚!!!!========>[root@localhost mysql3306]# ls /etc/cron.daily/cups logrotate makewhatis.cron mlocate.cron prelink readahead.cron ... 阅读全文
posted @ 2015-07-14 17:31 arun_yh 阅读(415) 评论(0) 推荐(0) 编辑
摘要: ss是SocketStatistics的缩写。顾名思义,ss命令可以用来获取socket统计信息,它可以显示和netstat类似的内容。但ss的优势在于它能够显示更多更详细的有关TCP和连接状态的信息,而且比netstat更快速更高效。当服务器的socket连接数量变得非常大时,无论是使用netst... 阅读全文
posted @ 2015-07-14 17:00 arun_yh 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 一、diff实战 (1)递归比较文件夹下所有的文件及目录的不同 diff --brief -Nr dir1/ dir2/ Reference:https://stackoverflow.com/questions/4997693/given-two-directory-trees-how-can-i 阅读全文
posted @ 2015-07-14 15:40 arun_yh 阅读(967) 评论(0) 推荐(0) 编辑
摘要: d211 admin # for i in {3..254} ; do ping -c 1 192.168.1.$i &>/dev/null && echo 192.168.1.$i is alive ;done192.168.1.5 is alive192.168.1.7 is alivefpin... 阅读全文
posted @ 2015-07-14 11:43 arun_yh 阅读(1729) 评论(0) 推荐(0) 编辑
摘要: NAME users - print the user names of users currently logged in to the current hostSYNOPSIS users [OPTION]... [FILE]DESCRIPTION Outpu... 阅读全文
posted @ 2015-07-14 06:53 arun_yh 阅读(248) 评论(0) 推荐(0) 编辑
摘要: http://blog.chinaunix.net/uid-25120309-id-3801250.html一.AWK说明awk是一种编程语言,用于在linux/unix下对文本和数据进行处理。数据可以来自标准输入、一个或多个文件,或其它命令的输出。它支持用户自定义函数和动态正则表达式等先进功能,是... 阅读全文
posted @ 2015-07-14 00:45 arun_yh 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 这节详细介绍awk内置函数,主要分以下3种类似:算数函数、字符串函数、其它一般函数、时间函数一、算术函数:以下算术函数执行与 C 语言中名称相同的子例程相同的操作:函数名说明atan2( y, x )返回 y/x 的反正切。cos( x )返回 x 的余弦;x 是弧度。sin( x )返回 x 的正... 阅读全文
posted @ 2015-07-14 00:36 arun_yh 阅读(246) 评论(0) 推荐(0) 编辑
摘要: vim /sbin/service#!/bin/sh. /etc/init.d/functions #读取环境变量.VERSION="$(basename $0) ver. 0.91" #"service[获取的第一个参数] ver. 0.91"对应后面的"service -V"USAGE="Us... 阅读全文
posted @ 2015-07-13 16:44 arun_yh 阅读(518) 评论(0) 推荐(0) 编辑
摘要: ip="192.168.5.166"ssh $ip -o StrictHostKeyChecking=no //ssh登陆不用输入"yes"port="26092"pid=`netstat -anlp|grep $port|awk '{print $7}'|awk -F"/" '{prin... 阅读全文
posted @ 2015-07-13 15:31 arun_yh 阅读(4434) 评论(0) 推荐(0) 编辑
上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 63 下一页