摘要: while do done, until do done (不定循环)while [ condition ] $s"for...do...done (固定回圈)for 这种语法,则是『 已经知道要进行几次回圈』的状态!他的语法是:for var in con1 con2 con3 ...do... 阅读全文
posted @ 2014-09-20 16:47 wuhn 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 利用 if .... then单层、简单条件判断式if [ 条件判断式 ]; then 当条件判断式成立时,可以进行的命令工作内容;fi {$0 someword}"else echo "The only parameter is 'hello', ex> {$0 hello}"finetst... 阅读全文
posted @ 2014-09-20 16:26 wuhn 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 善用判断式利用 test 命令的测试功能我要检查 /dmtsai 是否存在时,使用:[root@www ~]# test -e /dmtsai[root@www ~]# test -e /dmtsai && echo "exist" || echo "Not exist"Not exist $0... 阅读全文
posted @ 2014-09-20 08:58 wuhn 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 简单的 shell script 练习简单范例 对谈式脚本:变量内容由使用者决定[root@www scripts]# vi sh02.sh#!/bin/bash# Program:# User inputs his first name and last name. Program shows... 阅读全文
posted @ 2014-09-20 07:57 wuhn 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 什么是 Shell scriptsshell script (程序化脚本) :shell script 是针对 shell 所写的『脚本!』shell script 是利用 shell 的功能所写的一个『程序 (program)』,这个程序是使用纯文字档,将一些 shell 的语法与命令(含外部命... 阅读全文
posted @ 2014-09-20 07:46 wuhn 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Boot Loader: Grub『 boot loader 是加载核心的重要工具』!没有 boot loader 的话,那么 kernel 根本就没有办法被系统加载!boot loader 的两个 stage在 BIOS 读完资讯后,接下来就是会到第一个启动装置的 MBR 去读取 boot loa... 阅读全文
posted @ 2014-09-20 02:32 wuhn 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 核心与核心模块在整个启动的过程当中,是否能够成功地驱动我们主机的硬件配备, 是核心 (kernel) 的工作!而核心一般都是压缩档,因此在使用核心之前,就得要将它解压缩后, 才能加载主内存当中。另外,为了应付日新月异的硬件,目前的核心都是具有『可读取模块化驱动程序』的功能, 亦即是所谓的『 modu... 阅读全文
posted @ 2014-09-20 02:23 wuhn 阅读(287) 评论(0) 推荐(0) 编辑