12 2016 档案

摘要:1 、rm -f *.sh2、grep -rn "xian" * 查找文件内容包含xian的文件(注意:文件名有xian的不会查询出)3、find . ! -name "*.sh" find . -type d -name abc**.*:表示所有文件 find: paths must preced 阅读全文
posted @ 2016-12-19 17:16 萱娃 阅读(194) 评论(0) 推荐(0) 编辑
摘要:head用法: head 参数 文件名 -cn:显示前n个字节 -n:显示前n行 例子:head -c20 1.txt 显示1.txt文件中前20个字符 ls | head -20:显示前20个文件 head -20 1.txt:显示前20行的内容 tail用法: tail -20 1.txt 显示 阅读全文
posted @ 2016-12-12 16:07 萱娃 阅读(1760) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示