1.只有承认无知,才能装下新的东西; 2.进步来自一点点滴滴的积累; 3.广博让你更优秀,而专业让你无法替代; 4.挫折和失败能够转换为一种财富。
访问量(1038243) 积分(1523) 等级(核心会员) 排名(6)
cd C:/Program Files/Oracle/VirtualBox C:/Program Files/Oracle/VirtualBox>VBoxManage list hdds C:/Program Files/Oracle/VirtualBox>VBoxManage closemedium disk "F:/vbox/tdsql03/tdsql03_1.vdi" --delete 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
2023-08-20 10:12 797 0
yum -y install yum-utils epel-release createrepo #!/bin/bash reporpms=`yum list all --disablerepo="*" --enablerepo="epel" | grep -Ev "Loaded|Loading|Installed" | awk '{print $1}'` mkdir -p yum for rpm in ${reporpms} do repotrack ${rpm} -p yum done
2023-06-30 09:15 729 0
Abstract How to use imcl command to view the list of the packages, updates, and features in a source repository Body During installing Products and Fixes with IBM Installation Manager, Installation Manager searches open repositories where Packages and Fixes exist. But how can you verify the applicab
2023-05-26 10:59 1068 0
启动IM工具 ### 00:00.56 ERROR [main] com.ibm.cic.agent.internal.ui.AgentUI reportStatus Could not load SWT library. Reasons: /[User home]/IBM_IM/InstallationManager/eclipse/configuration/org.eclipse.osgi/132/0/.cp/libswt-pi-gtk-4630.so (libgtk-x11-2.0.so.0: cannot open shared object file: No such fil
2023-05-25 20:53 945 0
1.单独执行shell脚本没有任何问题,但是在使用crontab调用的时候,就会无法执行,可以打印具体的日志到mylog.log文件中,帮助排查问题。 00 * * * * bash /home/xx/xxx/get_table.sh >> /home/xxx/xxx/mylog.log 2>&1
2023-04-27 13:26 1236 0
REDHAT系统启动时出现Failed to mount /sysroot错误,一般是主机文件系统损坏引起的,可使用xfs-repair命令进行修复 xfs_repair -v -L /dev/dm-0 reboot 注:-L 选项指定强制日志清零,强制xfs_repair将日志归零,即使它包含脏数据(元数据更改)。然后再重启下虚拟机即可
2023-02-15 10:07 1611 0
test> rm -rf *.test ksh: /usr/bin/rm: arg list too long 结合 xargs 删除 通过 ls 来配合 xargs 删除 test 目录下的所有文件: ls | xargs rm -r
2023-01-25 10:40 766 0
Shell脚本定时抓取H3C交换机设备信息 #!/bin/sh ############################################################################################################### #Script name: get_net_info.sh #Script description: ssh login another system. #Current Release Version: 1.0.0 #Script Owner: hbhe0316 #Latest editor: h
2022-08-24 08:33 1173 0
1.安装sshpass yum install sshpass -y 2.远程登录ssh [root@node01:/tmp]$ sshpass -p 'wwwwww' ssh test@node02 Last login: Tue Aug 23 10:39:52 2022 from xx.xx.xx.xxx 3.查看远程服务器信息 [root@node01:/tmp]$ sshpass -p 'wwwwww' ssh test@node02 'hostname' node02 4.更多选项 man sshpass
2022-08-23 11:39 857 0
rpm下载地址: https://www.ibm.com/support/pages/node/883796#S [test@root/home/test/install]#rpm -ivh apr-1.5.2-1.aix5.2.ppc.rpm apr ################################################## [test@root/home/test/install]#rpm -ivh expat-2.2.9-1.aix5.1.ppc.rpm expat
2022-07-22 13:37 1066 0
select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_objects b where b.object_id = a.object_id; select b.username,b.sid,b.serial#,logon_time from v$locked_object a,v$session b where a.session_id = b.sid order by b.logon_time; select * from v$sqltext where sql_id i
2022-05-26 18:08 1034 0
查看文件编码 在Linux中查看文件编码可以通过以下几种方式: 1.在Vim中 可以直接查看文件编码 :set fileencoding 即可显示文件编码格式。 如果你只是想查看其它编码格式的文件或者想解决 用Vim查看文件乱码的问题,那么你可以在 ~/.vimrc 文件中添加以下内容: set encoding=utf-8 fileencodings=ucs-bom,utf-8,cp936 这样,就可以让vim自动识...
2022-05-19 17:55 2309 0
新增附件使用-a添加其余的附件部分 #cat sendmail.sh #!/bin/sh mailaddress="1234@qq.com,2345@qq.com" mutt -s "Linux Health Check" -a /home/test/a.txt -a /home/test/winCheckLog/$(date +%y%m%d)/b.txt-- ${mailaddress} < test.txt
2022-05-17 16:15 1064 0
END_TIME=$(date -d -150seconds "+%Y-%m-%d %H:%M:%S.%N"|cut -c1-23) [root@cmdb ~]# date --help Usage: date [OPTION]... [+FORMAT] or: date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]] Display the current time in the given FORMAT, or set the system date. Mandatory arguments to long options
2022-04-08 18:32 1138 0
VSS – Virtual Set Size 虚拟耗用内存(包含共享库占用的内存) RSS – Resident Set Size 实际使用物理内存(包含共享库占用的内存) PSS – Proportional Set Size 实际使用的物理内存(比例分配共享库占用的内存) USS – Unique Set Size 进程独自占用的物理内存(不包含共享库占用的内存) RSS(Resident set size),使用top命令可以查询...
2022-04-07 20:53 1234 0