Netkiller Linux Shell 手札

netkiller Neo Chan

2009-11-15

版权声明

转载请与作者联系,转载时请务必标明文章原始出处和作者信息及本声明。

文档最近一次更新于 Wed Feb 24 05:07:15 UTC 2010


目录

About author
作者简介
联系作者
I. Shell
1. Commands
date and time
chsh - change login shell
2. processes
pid
ps
3. I/O 重定向
error 重定向
使用块记录日志
4. pipes (FIFOs)
5. xargs
6. grep, egrep, fgrep, rgrep - print lines matching a pattern
-v, --invert-match
II. Bash Shell
7. prompt
8. variable
9. conditions if and case
if
case
10. Loops for, while and until
for
while
until
11. Functions
Local variables
12. User interfaces
III. Z Shell
13. installing Z shell
14. Starting file
~/.zshrc
15. Prompting
16. Aliases
17. History
18. FAQ
Home/End key
19. Berkeley UNIX C shell (csh)
20. KornShell
21. TUI
dialog
tput
22. awk
23. sed
A. 附录
Linux 下载排名
to convert utf-8 from gb2312 code
使用内存的百分比
查找文件并删除
find and replace
合并apache被cronlog分割的log文件
参考文献

表格清单

9.1. 文件目录表达式
9.2. 字符串表达式
9.3. 组合表达式

范例清单

7.1. A "Power User" Prompt
7.2. A Prompt the Width of Your Term
7.3. The Elegant Useless Clock Prompt
9.1. Basic conditional example if .. then
9.2. Conditionals with variables
9.3. case
11.1. Functions with parameters sample
12.1. Using select to make simple menus
12.2. Using the command line
12.3. Reading user input with read