Supposed you are implemented done with all your codes(c is the alias for cleartool): New version adds to exist file in VOB kco -c "comments" file cp file.updated file kci -c "comments" file Add new file element to VOB - also needs chec…
Memory Usage On linux, there are commands for almost everything, because the gui might not be always available. When working on servers only shell access is available and everything has to be done from these commands. So today we shall be checking th…
https://access.redhat.com/articles/1189123 Common administrative commands in Red Hat Enterprise Linux 5, 6, and 7 Updated April 12 2017 at 11:20 AM - English System basics Task RHEL5 RHEL6 RHEL7 View subscription information /etc/sysconfig/rhn/system…
前几天,发现从库挂了,具体报错信息如下: 分析思路 1. 因为我采用的是选择性复制,只针对以下几个库进行复制: card,upay,deal,monitor,collect.所以,不太可能出现对于sas_basic的操作能复制到该从库上. 2. 整个架构是1主2从,且都是选择性复制,上面这个从库是直接复制card,upay,deal,monitor,collect这几个数据库的数据,而另外一个从库则是忽略上述库,如下所示: 怀疑是在上述schema下,执行了DROP TABLE IF EXIST…
Some time I'd like check source code after macro expand. We can use -E option to stop after the preprocessing stage, do not run the compiler. ------------------------------------------------------------------------------------------------------------…
On the internet you will find plenty of tools for checking disk space utilization in Linux. However, Linux has a strong built in utility called ‘df‘. The ‘df‘ command stand for “disk filesystem“, it is used to get full summary of available and used d…
https://www.binarytides.com/linux-cpu-information/…
> ./zkCli.sh -server zk1host:port,zk2host:port,zk3host:port >help ZooKeeper -server host:port cmd args stat path [watch] set path data [version] ls path [watch] delquota [-n|-b] path ls2 path [watch] setAcl path acl setquota -n|-b val path history r…
用Python写运维脚本时,经常需要执行linux shell的命令,Python中的commands模块专门用于调用Linux shell命令,并返回状态和结果,下面是commands模块的3个主要函数: 1. commands.getoutput('shell command') 执行shell命令,返回结果(string类型) >>> commands.getoutput('pwd') '/home/oracle' 2. commands.getstatus('file') 该函数…