我的Redhat版本为:Red Hat Enterprise Linux Server release 7.5 (Maipo) 1.列出原装rpm包。

rpm -qa | grep yum

2.卸载列出的rpm包:

rpm -e yum-utils-1.1.31-[......]

阅读全文

之前整理的shell中的if判定:

shell中if判定的常用逻辑表示方式
https://shipengliang.com/software-exp/shell%e4%b8%adif%e5%88%a4%e5%ae%9a%e7%9a%84%e5%b8%b8%e7%9[……]

阅读全文

有时写shell,双引号之中如何引用变量?
其实昨天的文章已经介绍了,假设存在OLD的变量,那么如下这样引用即可:

"Its:${OLD}"

这样就实现了双引号之间的变量引用[……]

阅读全文