疑难排解 As our scripts become more complex, it’s time to take a look at what happens when things go wrong and they don’t do what we want. In this chapter, we’ll look at some of the ...
流程控制:if 分支结构 In the last chapter, we were presented with a problem. How can we make our report generator script adapt to the privileges of the user running the script? The soluti...
ls 的乐趣 选项和参数 深入研究长格式输出 确定文件类型 用 less 浏览文件内容 less 就是 more(禅语:色即是空) 旅行指南 符号链接 硬链接 拓展阅读 Now that we know how to move around the file system, it’s time for a guided tour of ...
归档和备份 压缩文件 gzip bzip2 归档文件 tar zip 同步文件和目录 在网络间使用 rsync 命令 拓展阅读 归档和备份 One of the primary tasks of a computer system’s administrator is keeping the system’s data secure...
通配符 mkdir - 创建目录 cp - 复制文件和目录 mv - 移动和重命名文件 rm - 删除文件和目录 ln — 创建链接 硬链接 符号链接 创建游戏场(实战演习) 创建目录 移动和重命名文件 创建硬链接 创建符号链接 移动文件和目录 总结 At this point, we are ready for some r...