tail和head命令
2016-06-16 10:33
465 查看
[root@rhel7 ~]# cat rusky --cat命令查看文件内容 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 [root@rhel7 ~]# tail -n 3 rusky --查看最后3行内容 line8 line9 line10 [root@rhel7 ~]# tail -3 rusky --同上,另一种写法 line8 line9 line10 [root@rhel7 ~]# tail -3 n rusky --不能写成这两种方式 tail: option used in invalid context -- 3 [root@rhel7 ~]# tail -3n rusky tail: option used in invalid context -- 3 [root@rhel7 ~]# head -n 3 rusky --查看前3行内容 line1 line2 line3 [root@rhel7 ~]# head -3 rusky --同上,另一种写法 line1 line2 line3
相关文章推荐
- INS-35172 Target database memory(945MB) excessds the systems available shared memory({0}MB)
- 工作于内存和文件之间的页缓存, Page Cache, the Affair Between Memory and Files
- Paint House
- Openstack组件部署 — keystone(domain, projects, users, and roles)
- 2D Closest Pair Problem
- 朴素贝叶斯简易解释
- Intellij Idea essentails 翻译
- xiugai DNS
- 将main方法打成jar包,并引用第三方的maven jar包
- failed to load the JNI shared library
- Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536
- FATAL EXCEPTION: main,创建两个Activity,运行子Activity时程序崩溃的可能解决办法
- 等待通知机制 wait,notify,notifyAll
- git当移动文件与更改文件共存Please enter a commit message to explain why this merge is necessary
- The XLIFF file does not contain a target language
- AIDL跨进程通讯访问远程服务
- 李开复万字长文科普人工智能:AI是什么 将带我们去哪儿?
- Storyboard 上 ContainerView
- leetcode No11. Container With Most Water
- Xcode xxxx.a(Native_Sensors_Plugin.o)' does not contain bitcode