摘要: 1.字符串判断 str1 = str2 当两个串有相同内容、长度时为真 str1 != str2 当串str1和str2不等时为真 -n str1 当串的长度大于0时为真(串非空) -z str1 当串的长度为0时为真(空串) str1 当串str1为非空时为真 2.数字的判断 int1 -eq i 阅读全文
posted @ 2018-03-14 17:02 leon_bin 阅读(114) 评论(0) 推荐(0) 编辑
摘要: /tmp 的permission是rwxrwxrwt chmod 0777 /abc rwxrwxrwx chmod 777 /abc rwxrwxrwx chmod 1777 /abc rwxrwxrwt The "t" character in your permission indicates 阅读全文
posted @ 2018-03-07 16:51 leon_bin 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 说明:vixie-cron 软件包是 cron 的主程序;crontabs 软件包是用来安装、卸装、或列举用来驱动 cron 守护进程的表格的程序。 二、配置 cron 是 linux 的内置服务,但它不自动起来,可以用以下的方法启动、关闭这个服务: 在CentOS系统中加入开机自动启动: 例子: 阅读全文
posted @ 2018-02-24 16:00 leon_bin 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 由于redhat的yum在线更新是收费的,如果没有注册的话不能使用,如果要使用,需将redhat的yum卸载后,安装CentOS yum工具,再配置其他源,以下为详细过程: 删除redhat原有的yum及RedHat订阅软件包 # rpm -qa | grep subscription-manage 阅读全文
posted @ 2018-02-02 13:15 leon_bin 阅读(1188) 评论(0) 推荐(1) 编辑
摘要: Job for smb.service failed because the control process exited with error code. CentOS 7 I have this problem with my CentOS 7.2 server which will not s 阅读全文
posted @ 2017-09-06 20:45 leon_bin 阅读(12345) 评论(0) 推荐(0) 编辑