探究操作系统 ls 乐趣 选项和参数 深入研究长格式输出 确定文件类型 用 less 浏览文件内容 less 就是 more(禅语:色即是空) 旅行指南 符号链接 硬链接 拓展阅读 探究操作系统 Now that we know how to move around the file system, it’s time for a...
1.1. Hello, World 1.1. Hello, World 我们以现已成为传统的“hello world”案例来开始吧,这个例子首次出现于1978年出版的C语言圣经《The C Programming Language》 (译注:本书作者之一Brian W. Kernighan也是《The C Programming Language》一...
键盘高级操作技巧 命令行编辑 移动光标 修改文本 剪切和粘贴文本 自动补全 利用历史命令 搜索历史命令 历史命令展开 总结归纳 拓展阅读 键盘高级操作技巧 I often kiddingly describe Unix as “the operating system for people who like to type.” O...
位置参数 访问命令行 确定参数个数 shift - 访问多个参数的利器 简单应用 Shell 函数中使用位置参数 处理集体位置参数 一个更复杂的应用 总结 拓展阅读 位置参数 One feature that has been missing from our programs is the ability to accept an...
读取键盘输入 read - 从标准输入读取数值 选项 IFS 校正输入 菜单 总结归纳 友情提示 拓展阅读 读取键盘输入 The scripts we have written so far lack a feature common in most computer programs — interactivity. That is...