src_dir=$(pwd)/All_hdst_dir=$(pwd)/Alldiff_dir=$(pwd)/diffif [ ! -d $diff_dir ]then mkdir $diff_dirfifor src_full_entry in $src_dir/*do src_cat_entry=...
分类:
其他好文 时间:
2014-07-10 10:07:49
阅读次数:
241
文件查看主要有以下命令cat、more、less、head、tailcat命令:是一个文本文件查看和连接工具。从第一个字节开始正向查看文件的内容,适用于小文件以第一行开始,显示没有停顿,文件较长的话,只能看到最后一页内容在屏幕上当文件内容过多时,就带来一个问题,因为文本在屏幕上迅速地闪过,用户来不及...
分类:
系统相关 时间:
2014-07-07 20:30:16
阅读次数:
354
安装vmwaretools2.修改虚拟机vmx文件tools.syncTime改为"TRUE"3.重启虚拟机此时发现时间比系统时间少了10+个小时4.修改/etc/sysconfig/clock#cat/etc/sysconfig/clockZONE="America/Los_Angeles"UTC=trueARC=falseUTC为true表示RTC保存的时间是UTC时间,false表示保存的是本地..
分类:
系统相关 时间:
2014-06-28 06:40:40
阅读次数:
372
系统环境[root@localhost~]#cat/etc/redhat-releaseCentOSrelease6.5(Final)[root@localhost~]#uname-aLinuxlocalhost.localdomain2.6.32-431.el6.x86_64#1SMPFriNov2203:15:09UTC2013x86_64x86_64x86_64GNU/Linuxphp5.4yum源rpm-Uvhhttp://mirror.webtatic.com/yum/el6/latest..
分类:
Web程序 时间:
2014-06-27 06:39:44
阅读次数:
666
系统环境:[root@salt_serverhome]#ifconfigeth0|grep"inetaddr:"|awk-F:‘{print$2}‘|awk‘{print$1}‘
192.168.100.228
[root@salt_serverhome]#cat/etc/redhat-release
CentOSrelease6.3(Final)
[root@salt_serverhome]#uname-r
2.6.32-279.el6.x86_64
[root@salt_serverhome]#..
分类:
其他好文 时间:
2014-06-27 06:12:03
阅读次数:
311
Zabbix安装和监控系统环境[root@zabbix~]#cat/etc/redhat-releaseCentOSrelease6.3(Final)[root@zabbix~]#uname-aLinuxzabbix2.6.32-279.el6.x86_64#1SMPFriJun2212:19:21UTC2012x86_64x86_64x86_64GNU/LinuxYum安装nginx、php、mysql配置nginxyum源,php和mysql默认就用centos..
分类:
其他好文 时间:
2014-06-27 06:05:01
阅读次数:
528
马上进入工作自动化:[root@localhost ~]# cat svn_bbs.py import os,sys,commands,subprocess import re,timesvnUrl = "svn://xxx"svnExportCmdPre = "svn export svn://....
分类:
编程语言 时间:
2014-06-26 14:41:11
阅读次数:
227
自己学习《APUE》时写的linux下一些命令(大概40个左右)实现,仅当学习使用,这些命令包括cat cp echo head ls paste rmdir tail umask who chattr cut expand join mkdir pwd sed tee uniq chgrp date find last mkfifo reboot sort wc chmod df ln mv rename split touch which chown du grep lsattr od rm tac t...
分类:
编程语言 时间:
2014-06-26 10:51:39
阅读次数:
423
无意间在51首页上看到一篇关于“通过命令行制造CPU负载或压力”的文章,感觉不错,先记录下来,为将来的使用做好笔记记录!很简单,就一个命令:#cat/dev/urandom|md5sum然后通过top观察,cpu的值果然很高,说明测试成功!有图有真相^_^
分类:
其他好文 时间:
2014-06-26 06:27:02
阅读次数:
546