Linux系统下运用命令行查看文件的开头/结尾部分
1、运用head/tail输出文件的前10行或者最后10行
2、实例1,输出test文件的前十行,因为默认情况下,head输出前十行:liyi@liyi:~/Desktop > head test
3、实例2,输出test文件的前五行:liyi@liyi:~/Desktop > head -n 5 test
4、实例3,输出test文件的后十行,因为默认情况下,tail输出前十行:liyi@liyi:~/Desktop > tail test
5、实例2,输出test文件的后五行:liyi@liyi:~/Desktop > tail -n 5 test
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:64
阅读量:90
阅读量:27
阅读量:85
阅读量:38