2014年3月11日
摘要: mkdir, rm,find都是对tree结构的文件夹进行的操作,可以安装tree用tree命令直接打印出树的结构文件夹的操作分为只操作当前文件夹的集合数据和迭代操作的tree数据Bash迭代当前文件夹ls---list information about the FILES(the current directory by default)[du也统计文件大小,但是du使用的是tree的数据结构,ls则是数组的数据结构]ls -author #罗列文件信息包含作者ls -c -lt #根据访问时间倒序排列ls -c #list entries by columnsls -d #list d. 阅读全文
posted @ 2014-03-11 11:53 张海玉 阅读(2332) 评论(0) 推荐(0) 编辑
摘要: 一.打开文本文档,查看文本的内容,我们最直观的方式就是用编辑器,并且可以使用vi内部的查找命令查找[参见Vim文字编辑]vi test.txt#使用vi打开当前目录下的test.txt文本二.总结bash shell操作的方式bash读取文件的内容cat---concatenate files and print on the standard output(把文件内容串联打印到标准输出)tac---concatenate and print files in reverse(倒序打印文件内容)head---output the first part of files(输出文件的第一部分)ta 阅读全文
posted @ 2014-03-11 11:13 张海玉 阅读(2131) 评论(0) 推荐(0) 编辑