Skip to content

Commit

Permalink
i
Browse files Browse the repository at this point in the history
  • Loading branch information
billie66 committed Oct 14, 2014
1 parent 3583fb8 commit 4ed04b9
Show file tree
Hide file tree
Showing 33 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion book/chap03.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,4 +340,4 @@ later.
>4. 虽然 Linux 支持长文件名,文件名可能包含空格,标点符号,但标点符号仅限
使用 “.”,“-”,下划线。最重要的是,不要在文件名中使用空格。如果你想表示词与
词间的空格,用下划线字符来代替。过些时候,你会感激自己这样做。
{: .single}

2 changes: 1 addition & 1 deletion book/chap04.md
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ OpenOffice.org 文档 编辑器创建的文件。这些文件,和简单的 ASC
系统,许多文件 以文本格式存储,也有许多 Linux 工具来处理文本文件。甚至 Windows
也承认这种文件格式的重要性。著名的 NOTEPAD.EXE 程序就是一个 ASCII
文本文件编辑器。
{: .single}


Why would we want to examine text files? Because many of the files that contain system
settings (called configuration files) are stored in this format, and being able to read them
Expand Down
6 changes: 3 additions & 3 deletions book/chap05.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ desktop so powerful.
>
> 最初源于命令行界面中的想法,在图形界面中也适用。这就是使 Linux 桌面系统
如此强大的众多原因中的一个
{: .single}


### mkdir — Create Directories

Expand Down Expand Up @@ -840,7 +840,7 @@ replace the ls with rm.
> _小贴士。_ 无论什么时候,rm 命令用到通配符(除了仔细检查输入的内容外!),
用 ls 命令来测试通配符。这会让你看到要删除的文件列表。然后按下上箭头按键,重新调用
刚刚执行的命令,用 rm 替换 ls。
{: .single}



### In — Create Links
Expand Down Expand Up @@ -1326,7 +1326,7 @@ copying, moving, or linking the file.
在 GNOME 里面,当拖动文件时,同时按下 Ctrl+Shift 按键会创建一个链接,而不是
复制(或移动)文件。在 KDE 中,无论什么时候放下一个文件,会弹出一个小菜单,
这个菜单会提供复制,移动,或创建链接文件选项。
{: .single}


### Summing Up

Expand Down
2 changes: 1 addition & 1 deletion book/chap06.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ read it and it all makes sense.
>
> 另一方面,bash 参考手册的内容非常简明精确,同时也非常完善。所以,如果你有胆量就查看一下,
并且期望有一天你能读懂它。
{: .single}


### info – Display A Program's Info Entry

Expand Down
4 changes: 2 additions & 2 deletions book/chap07.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ see the Wikipedia article on “/dev/null”.
> 位存储桶是个古老的 Unix 概念,由于它的普遍性,它的身影出现在 Unix 文化的
许多部分。当有人说他/她正在发送你的评论到/dev/null,现在你应该知道那是
什么意思了。更多的例子,可以阅读 Wikipedia 关于"/dev/null"的文章。
{: .single}


### Redirecting Standard Input

Expand Down Expand Up @@ -711,4 +711,4 @@ shape of your imagination. It does what you want.
more satisfying?
>
> 当然,选择哪一个玩具,是你的事情,那么你觉得哪个玩具更令人满意呢?
{: .single}
2 changes: 1 addition & 1 deletion book/chap08.md
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ we can create a primitive countdown timer:
> 我们也可以这样做:
>
> _sleep 10; echo "Time's up" $\'\a\'_
{: .single}

### Summing Up

Expand Down
6 changes: 3 additions & 3 deletions book/chap09.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ Readline 程序的开发者们,不能确定一个专用多余的控制键的
控制键,并把它叫做"元"("meta")。然而在现代的键盘上,Alt 键作为元键来服务。
如果你仍然在使用终端(在 Linux 中,你仍然可以得到一个终端),你也可以按下和
释放 Esc 键来得到如控制 Alt 键一样的效果。
{: .single}


### Completion

Expand Down Expand Up @@ -442,7 +442,7 @@ in later chapters. If you are curious, try:
> and see if you can find them. Not all distributions include them by default.
>
> 查看一下如果你能找到它们的话。默认情况下,并不是所有的发行版都包括它们。
{: .single}


### Using History
Expand Down Expand Up @@ -722,7 +722,7 @@ complete list of the program’s options and features.
>
> 命令中的 file 是指用来存储 shell 会话记录的文件名。如果没有指定文件名,则使用文件
typescript。查看脚本的手册页,可以得到一个关于 script 程序选项和特点的完整列表。
{: .single}



### Summing Up
Expand Down
6 changes: 3 additions & 3 deletions book/chap10.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ be very useful...
>
> 现在,十六进制表示法(经常叫做“hex”)比八进制更普遍,但是我们很快会看到,用八进制
来表示3个二进制数非常有用处...
{: .single}



With octal notation we use octal numbers to set the pattern of desired permissions. Since
Expand Down Expand Up @@ -797,7 +797,7 @@ Here are some examples. First, a program that is setuid:
> 设置了 sticky 位的目录:
>
> drwxrwxrwt
{: .single}


### Changing Identities
Expand Down Expand Up @@ -1002,7 +1002,7 @@ similar powers to subsequent user accounts.
> 当引进 Ubuntu 的时候,它的创作者们采取了不同的策略。默认情况下,Ubuntu 不允许用户登录
到 root 帐号(因为不能为 root 帐号设置密码),而是使用 sudo 命令授予普通用户超级用户权限。
通过 sudo 命令,最初的用户可以拥有超级用户权限,也可以授予随后的用户帐号相似的权力。
{: .single}


### chown – Change File Owner And Group

Expand Down
2 changes: 1 addition & 1 deletion book/chap12.md
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ preserving the information it contains.
> 最后三行是有效的被注释掉的别名定义。如果你删除这三行开头的 "#" 符号,此技术程称为
uncommenting (不注释),这样你就会激活这些别名。相反地,如果你在一行的开头加上 "#" 符号,
你可以注销掉这一行,但会保留它所包含的信息。
{: .single}


Activating Our Changes

Expand Down
2 changes: 1 addition & 1 deletion book/chap13.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ missing features. If this is the case, install the full version of vim.
> 不同的 Linux 发行版其 vim 软件包也迥然不同。一些发行版只是安装了 vim 的最小版本,
其默认只支持有限的 vim 特性。当练习随后的课程时,你可能会遇到缺失的功能。
如果是这种情况,就安装 vim 的完整版。
{: .single}


Editing Modes

Expand Down
2 changes: 1 addition & 1 deletion book/chap14.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ codes.
> 为了努力使所有的终端都讲某种通用语言,美国国家标准委员会(ANSI)制定了
一套标准的字符序列集合来控制视频终端。原先 DOS 用户会记得 ANSI.SYS 文件,
这是一个用来使这些编码解释生效的文件。
{: .single}



Character color is controlled by sending the terminal emulator an ANSI escape code
Expand Down
2 changes: 1 addition & 1 deletion book/chap15.md
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ items.
也不发布技术文档来让某人创建它。这意味着硬件供应商试图保密此设备的程序接口。因为我们
不想在计算机中使用保密的设备,所以我建议删除这令人厌恶的软件,
把它和其它无用的项目都仍到垃圾桶里。
{: .single}



Further Reading
Expand Down
4 changes: 2 additions & 2 deletions book/chap17.md
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ option rather than the “-X” option to do this.
>
> 这个 xload 命令在远端执行之后,它的窗口就会出现在本地。在某些系统中,你可能需要
使用 “-Y” 选项,而不是 “-X” 选项来完成这个操作。
{: .single}


#### scp And sftp

Expand Down Expand Up @@ -832,7 +832,7 @@ for the scp and sftp programs.
> PuTTY is available at <http://www.chiark.greenend.org.uk/~sgtatham/putty/>
>
> PuTTY 可在链接 <http://www.chiark.greenend.org.uk/~sgtatham/putty/> 处得到。
{: .single}


### Further Reading
Expand Down
2 changes: 1 addition & 1 deletion book/chap31.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ more careful development.
但这个脚本只能被其作者使用一次。这类脚本很常见,为了节省气力也应该被快速地开发出来。
所以这些脚本不需要太多的注释和防错检查。相反,如果一个脚本打算用于生产使用,也就是说,
某个重要任务或者多个客户会不断地用到它,此时这个脚本就需要非常谨慎小心地开发了。
{: .single}


### Testing

Expand Down
2 changes: 1 addition & 1 deletion book/chap34.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ It also led to the following Fortran-based witticism:
因为当需要一个临时变量(正如循环变量)的时候,使用它们工作量比较少。这也引出了如下基于 fortran 的俏皮话:
>
> “神是真实的,除非是声明的整数。”
{: .single}


### for: C Language Form
Expand Down
2 changes: 1 addition & 1 deletion book/chap37.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ home directory, with a line of code such as this:
通过像这样的一行代码:
>
> [[ -d $HOME/tmp ]] \|\| mkdir $HOME/tmp
{: .single}


### Asynchronous Execution
Expand Down
2 changes: 1 addition & 1 deletion book/zh/chap01.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Linux 不仅是一款软件,也是 Unix 文化的一小部分,它有自己
也就是说,整个 Linux 生态系统,不只有 GNU 项目软件。在操作系统商界,好像喜欢使用单个词的名字,
比如说 DOS, Windows, MacOS, Solaris, Irix, AIX. 所以我选择用流行的命名规则。然而,
如果你喜欢用 “GNU/Linux”,当你读这本书时,可以在脑子里搜索并替换 “Linux”。我不介意。
{: .single}


### 拓展阅读

Expand Down
2 changes: 1 addition & 1 deletion book/zh/chap03.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@ ls 命令还能完成许多有趣的事情。在下一章节,我们将介绍
>4. 虽然 Linux 支持长文件名,文件名可能包含空格,标点符号,但标点符号仅限
使用 “.”,“-”,下划线。最重要的是,不要在文件名中使用空格。如果你想表示词与
词间的空格,用下划线字符来代替。过些时候,你会感激自己这样做。
{: .single}

2 changes: 1 addition & 1 deletion book/zh/chap04.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ OpenOffice.org 文档 编辑器创建的文件。这些文件,和简单的 ASC
系统,许多文件 以文本格式存储,也有许多 Linux 工具来处理文本文件。甚至 Windows
也承认这种文件格式的重要性。著名的 NOTEPAD.EXE 程序就是一个 ASCII
文本文件编辑器。
{: .single}



为什么我们要查看文本文件呢? 因为许多包含系统设置的文件(叫做配置文件),是以文本格式存储的,阅读它们
Expand Down
6 changes: 3 additions & 3 deletions book/zh/chap05.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ title: 操作文件和目录
>
> 最初源于命令行界面中的想法,在图形界面中也适用。这就是使 Linux 桌面系统
如此强大的众多原因中的一个。
{: .single}


mkdir 命令是用来创建目录的。它这样工作:

Expand Down Expand Up @@ -398,7 +398,7 @@ rm 命令用来移除(删除)文件和目录:
> _小贴士。_ 无论什么时候,rm 命令用到通配符(除了仔细检查输入的内容外!),
用 ls 命令来测试通配符。这会让你看到要删除的文件列表。然后按下上箭头按键,重新调用
刚刚执行的命令,用 rm 替换 ls。
{: .single}


### ln — 创建链接

Expand Down Expand Up @@ -688,7 +688,7 @@ ls 命令的输出结果,比较容易理解。
在 GNOME 里面,当拖动文件时,同时按下 Ctrl+Shift 按键会创建一个链接,而不是
复制(或移动)文件。在 KDE 中,无论什么时候放下一个文件,会弹出一个小菜单,
这个菜单会提供复制,移动,或创建链接文件选项。
{: .single}


### 总结

Expand Down
2 changes: 1 addition & 1 deletion book/zh/chap06.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ whatis 程序显示匹配特定关键字的手册页的名字和一行命令说
>
> 另一方面,bash 参考手册的内容非常简明精确,同时也非常完善。所以,如果你有胆量就查看一下,
并且期望有一天你能读懂它。
{: .single}



### info - 显示程序 Info 条目
Expand Down
4 changes: 2 additions & 2 deletions book/zh/chap07.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ ls 程序不把它的错误信息输送到标准输出。反而,像许多写
> 位存储桶是个古老的 Unix 概念,由于它的普遍性,它的身影出现在 Unix 文化的
许多部分。当有人说他/她正在发送你的评论到/dev/null,现在你应该知道那是
什么意思了。更多的例子,可以阅读 Wikipedia 关于"/dev/null"的文章。
{: .single}


### 重定向标准输入

Expand Down Expand Up @@ -396,4 +396,4 @@ tail 有一个选项允许你实时的浏览文件。当观察日志文件的进
你想要的模型。
>
> 当然,选择哪一个玩具,是你的事情,那么你觉得哪个玩具更令人满意呢?
{: .single}
4 changes: 2 additions & 2 deletions book/zh/chap08.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ title: 从 shell 眼中看世界
命令能够提供一份正确的隐藏文件清单:
>
> ls -A
{: .single}


### 波浪线展开
Expand Down Expand Up @@ -407,7 +407,7 @@ shell 使用的特殊字符,除了 $,\\ (反斜杠),和 \`(倒引号
> 我们也可以这样做:
>
> _sleep 10; echo "Time's up" $\'\a\'_
{: .single}


### 总结归纳
Expand Down
6 changes: 3 additions & 3 deletions book/zh/chap09.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Readline 程序的开发者们,不能确定一个专用多余的控制键的
控制键,并把它叫做"元"("meta")。然而在现代的键盘上,Alt 键作为元键来服务。
如果你仍然在使用终端(在 Linux 中,你仍然可以得到一个终端),你也可以按下和
释放 Esc 键来得到如控制 Alt 键一样的效果。
{: .single}


### 自动补全

Expand Down Expand Up @@ -222,7 +222,7 @@ shell 函数是一种小巧的 shell 脚本,我们会在后面的章节中讨
> _set \| less_
>
> 查看一下如果你能找到它们的话。默认情况下,并不是所有的发行版都包括它们。
{: .single}

### 利用历史命令

Expand Down Expand Up @@ -360,7 +360,7 @@ bash 会把 "!88" 展开成为历史列表中88行的内容。还有其它的历
>
> 命令中的 file 是指用来存储 shell 会话记录的文件名。如果没有指定文件名,则使用文件
typescript。查看脚本的手册页,可以得到一个关于 script 程序选项和特点的完整列表。
{: .single}


### 总结归纳

Expand Down
6 changes: 3 additions & 3 deletions book/zh/chap10.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Linux 系统的多用户性能,不是最近的“创新”,而是一种特
>
> 现在,十六进制表示法(经常叫做“hex”)比八进制更普遍,但是我们很快会看到,用八进制
来表示3个二进制数非常有用处...
{: .single}


通过八进制表示法,我们使用八进制数字来设置所期望的权限模式。因为每个八进制数字代表了
3个二进制数字,这种对应关系,正好映射到用来存储文件模式所使用的方案上。下表展示了
Expand Down Expand Up @@ -440,7 +440,7 @@ Figure 2: KDE 3.5 File properties Dialog
> 设置了 sticky 位的目录:
>
> drwxrwxrwt
{: .single}


### 更改身份
Expand Down Expand Up @@ -545,7 +545,7 @@ sudo 命令,从而允许一个普通用户以不同的身份(通常是超级
> 当引进 Ubuntu 的时候,它的创作者们采取了不同的策略。默认情况下,Ubuntu 不允许用户登录
到 root 帐号(因为不能为 root 帐号设置密码),而是使用 sudo 命令授予普通用户超级用户权限。
通过 sudo 命令,最初的用户可以拥有超级用户权限,也可以授予随后的用户帐号相似的权力。
{: .single}


### chown-更改文件所有者和用户组

Expand Down
2 changes: 1 addition & 1 deletion book/zh/chap12.md
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ valign="top">创建一个新命令,叫做'l.',这个命令会显示所有以
> 最后三行是有效的被注释掉的别名定义。如果你删除这三行开头的 "#" 符号,此技术程称为
uncommenting (不注释),这样你就会激活这些别名。相反地,如果你在一行的开头加上 "#" 符号,
你可以注销掉这一行,但会保留它所包含的信息。
{: .single}


### 激活我们的修改

Expand Down
2 changes: 1 addition & 1 deletion book/zh/chap13.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ shell 提示符应该返回。如果由于某种原因,vi 不能退出(通
> 不同的 Linux 发行版其 vim 软件包也迥然不同。一些发行版只是安装了 vim 的最小版本,
其默认只支持有限的 vim 特性。当练习随后的课程时,你可能会遇到缺失的功能。
如果是这种情况,就安装 vim 的完整版。
{: .single}


### 编辑模式

Expand Down
2 changes: 1 addition & 1 deletion book/zh/chap14.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ title: 自定制 shell 提示符
> 为了努力使所有的终端都讲某种通用语言,美国国家标准委员会(ANSI)制定了
一套标准的字符序列集合来控制视频终端。原先 DOS 用户会记得 ANSI.SYS 文件,
这是一个用来使这些编码解释生效的文件。
{: .single}


字符颜色是由发送到终端仿真器的一个嵌入到了要显示的字符流中的 ANSI 转义编码来控制的。
这个控制编码不会“打印”到屏幕上,而是被终端解释为一个指令。正如我们在上表看到的字符序列,
Expand Down
2 changes: 1 addition & 1 deletion book/zh/chap15.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ Hat 企业版,和 CentOs 都是使用 yum。其它基于 Red Hat 风格的发
也不发布技术文档来让某人创建它。这意味着硬件供应商试图保密此设备的程序接口。因为我们
不想在计算机中使用保密的设备,所以我建议删除这令人厌恶的软件,
把它和其它无用的项目都仍到垃圾桶里。
{: .single}



### 拓展阅读
Expand Down
Loading

0 comments on commit 4ed04b9

Please sign in to comment.