摘要: raid 10 操作步骤:设置(mdadm, mkfs, mount),破坏(faulty,remove),修复(add) 0,编辑虚拟机,添加4块大小为20G的硬盘 [root@localhost Desktop]# ls -l /dev/sd*brw-rw . 1 root disk 8, 0 阅读全文
posted @ 2018-11-26 16:40 linux_ironman 阅读(315) 评论(0) 推荐(0)
摘要: 概要 vim /etc/fstab: UUID=88dbdde5-3cdd-4037-ac30-cb9e9436b1f6 /boot xfs defaults,uquota 1 2 详解 新硬盘使用: 分区-》格式化-》挂载(永久生效,包括重启) 1,关闭虚拟机,添加新硬盘,开机。 [root@lo 阅读全文
posted @ 2018-11-25 16:35 linux_ironman 阅读(408) 评论(0) 推荐(0)
摘要: lsattr 查看隐藏权限 chattr 设置隐藏权限 [root@localhost ~]# lsattr initial-setup-ks.cf initial-setup-ks.cf[root@localhost ~]# chattr +a initial-setup-ks.cf[root@l 阅读全文
posted @ 2018-11-24 21:48 linux_ironman 阅读(250) 评论(0) 推荐(0)
摘要: 1, case #!/bin/bash#caseread -p "enter the key you want: " KEYcase $KEY in[a-z]|[A-Z])echo "character";;[0-9])echo "Digit";;*)echo "Special"esac 2 定时任 阅读全文
posted @ 2018-11-19 16:45 linux_ironman 阅读(161) 评论(0) 推荐(0)
摘要: if else fi for do done while true do exit 0 done case ) ;; );; *) esac 1, 接收用户参数 #!/bin/bash#testecho "Name of this shell is $0"echo "Num of pare is $ 阅读全文
posted @ 2018-11-18 16:43 linux_ironman 阅读(162) 评论(0) 推荐(0)
摘要: ###1 重定向 [root@localhost tmp]# ls -l 1-parameter.sh -rw-rw-r--. 1 zhxu zhxu 50 Nov 7 11:51 1-parameter.sh[root@localhost tmp]# ls -l 1-parameter.sh > 阅读全文
posted @ 2018-11-17 15:34 linux_ironman 阅读(210) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-11-12 09:50 linux_ironman 阅读(5) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-11-11 10:04 linux_ironman 阅读(11) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-11-10 09:09 linux_ironman 阅读(12) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-11-10 05:33 linux_ironman 阅读(1) 评论(1) 推荐(0)