[20201112]time TIMEFORMAT格式.txt
[20201112]time TIMEFORMAT格式.txt--//time命令缺省显示如下:# time echo 2^1000000 | bc > /dev/nullreal 0m4.614suser 0m4.598ssys 0m0.006s--//实际上
[20201112]centos 7 rc.local shell script on systemd while booting Linux system.t
[20201112]centos 7 rc.local shell script on systemd while booting Linux system.txt--//centos 7开始全面使用systemd管理启动过程,说真的我自己非常不习惯,也许是老了,接受新生事物有点迟钝。--//而以前用户要加入一些特殊命令一般都是选择/etc/rc.d/rc.local.但是centos 7开始不会
[20201109]bash shell特殊算术方式.txt
[20201109]bash shell特殊算术方式.txt--//有时候工作需要写bash shell脚本,一般使用bash进行算术计算,我以前写过一个链接:--//http://blog.itpub.net/267265/viewspace-2286893/ =>[20181229]bash shell的算术运算 .txt--//我忽略一种特殊情况,可以直接写表达式,这样更加简单直观。通
[20201109]here-doc(EOF) in bash.txt
[20201109]here-doc(EOF) in bash.txt--//在bash shell使用her-doc个人习惯使用EPF作为结束符,自己工作中经常犯一些小错误,做一些例子:1.方法一:sqlplus -s -l scott/book <<EOFselect * from dept;quitEOF DEPTNO DNAME &
CentOS RHEL 7 Chrony Vs NTP (Differences Between ntpd and chronyd).txt
CentOS RHEL 7 Chrony Vs NTP (Differences Between ntpd and chronyd)--//翻译并转载链接:https://www.thegeekdiary.com/centos-rhel-7-chrony-vs-ntp-differences-between-ntpd-and-chronyd/CentOS / RHEL 7
[20201105]mtime, ctime and atime in Linux.txt
[20201105]mtime, ctime and atime in Linux.txt--//大家都知道linux 文件系统的文件存在3个时间mtime, ctime and atime。简单解析如下:--//https://linoxide.com/file-system/file-timestamps-mtime-ctime-atime-linux/mtime – Last modific
[20201104]关于稀疏文件(sparse files).txt
[20201104]关于稀疏文件(sparse files).txt--//前几天看链接:https://savvinov.com/2020/10/14/memory-fragmentation-via-buffered-file-i-o/--//里面提到/var/log/lastlog文件是稀疏文件。对方大小达到273G,拷贝时导致文件系统缓存紧张。--//家里没有这个环境,上班看看。--//问
[20201104]dstat使用迷惑.txt
[20201104]dstat使用迷惑.txt# df / -mFilesystem 1M-blocks Used Available Use% Mounted on/dev/mapper/VGExaDb-L
[20201103]Martian Packets.txt
[20201103]Martian Packets.txt--//生产系统大量出现如下信息:# dmesg | tail -10[186061055.708921] ll header: 00:10:e0:57:7d:85:0c:da:41:b6:4e:07:08:00[186061055.819286] martian source 192.168.XXX.XX from 192.1
[20201103]lsof显示link=0的文件.txt
[20201103]lsof显示link=0的文件.txt--//有时候一些文件某些进程打开了文件句柄,而使用rm删除是无法回收使用空间的,如果出现这样的情况,查看这些依然打开的文件,--//我以前的查询方式使用grep过滤。# lsof | egrep "COMMAND|deleted"COMMAND PID &nbs
[20201102]SSH2_MSG_UNIMPLEMENTED packet error with PuTTY.txt
[20201102]SSH2_MSG_UNIMPLEMENTED packet error with PuTTY.txt--//上班登录服务器发现提示:Disconnected Server protocol vioalation :unexpected SSH2_MSG_UNIMPLEMENTED packet 。--//这个问题以前就遇到过,链接:http://blog.itpub.net/2
[20200505]并不奇特的2020年.txt
[20200505]并不奇特的2020年.txt--//2020年注定会成为不寻常的一年,前几天做公交车上班,听到几个人的议论.今年的--//4.4,6.6,8.8,10.10,12.12都是星期6.而20200202这个数字非常独特.反活来也是20200202.--//上班好奇使用电脑查看一下:$ cal 2020  
[20200430]监测机房温度.txt
[20200430]监测机房温度.txt--//以前的一个需求,要求监测机房内温度,实际上间接测试硬盘的问题一样可以大致了解机房的温度。--//正好别人有这样的需求,我自己在新的测试环境测试看看。# fdisk -lDisk /dev/cciss/c0d0: 1800.2 GB, 1800280694784 bytes255 heads, 63 sectors/track, 218871 cyli
[20200422]了解相关进程的环境变量.txt
[20200422]了解相关进程的环境变量.txt--//昨天看链接:https://mdinh.wordpress.com/2020/04/16/how-to-check-oracle_home-is-being-used/--//自己前几天讨论http://www.itpub.net/thread-2133164-1-1.html=>在rac 环境中 sqlnet.ora 中众多参数如何
[20200417]xdate别名.txt
[20200417]xdate别名.txt--//工作需要,需要一个1970/1/1 + 微秒转换为时间的命令。--//1微秒等于一百万分之一秒(10-6秒),oracle dump 输出有这样的时间格式:PARSING IN CURSOR #139947943262104 len=2282 dep=0 uid=103 oct=3 lid=103 tim=1587138705191190 hv=6
[20200414]Linux下快速删除大量文件(补充).txt
[20200414]Linux下快速删除大量文件(补充).txt--//昨天看了链接https://www.modb.pro/db/23668=>Linux下面删除大量文件的效率.--//第一感觉这篇文章的内容我在那里看过,我找了原始链接:https://www.slashroot.in/which-is-the-fastest-method-to-delete-files-in-linux
[20200402]strace过滤使用awk问题.txt
[20200402]strace过滤使用awk问题.txt--//昨天使用strace跟踪io_submit,我想计算每次调用io_submit的平均值。遇到一些问题做1个记录。1.问题提出:# strace -f -e io_submit -Ttt -p 3831Process 3831 attached - interrupt to quit11:15:20.217558 io_s
[20200402]sar报表保存时间2.txt
[20200402]sar报表保存时间2.txt--//前几天前的修改,今天观察看看。连接:http://blog.itpub.net/267265/viewspace-2683271/=>[20200330]sar报表保存时间.txt # cat /etc/sysconfig/sysstat# sysstat-10.1.5 configuration file.# How long to
[20200330]sar报表保存时间.txt
[20200330]sar报表保存时间.txt--//今天想修改sar报表的保存时间,以前版本缺省时间7天有点短,需要保存更长的时间,便于事后分析问题。--//今天在centos 7上配置,发现以前配置的一个小问题。# cat /etc/redhat-releaseCentOS Linux release 7.7.1908 (Core)# rpm -qcf $(which sar)/etc/cro
[20200323]避免按ctrl+alt+del重新启动服务器(centos 7).txt
[20200323]避免按ctrl+alt+del重新启动服务器(centos 7).txt--//想在centos 7关闭按ctrl+alt+del重新启动服务器的功能,检查发现与centos 6不同。--//链接:http://blog.itpub.net/267265/viewspace-2638238/ => [20190313]避免按ctrl+alt+del重新启动服务器.txt#