Linux命令详解:[15]head/tail开头结尾显示

 时间:2024-10-13 04:44:48

1、进入root目录,在该目录下打印Linux.txt文件的前十行,命令:head Linux.txt 。

Linux命令详解:[15]head/tail开头结尾显示

2、打印Linux.txt文件的后十行,命令:tail Linux.txt 。

Linux命令详解:[15]head/tail开头结尾显示

3、打印Linux.txt文件的前五行,命令:head -n 5 Linux.txt 。

Linux命令详解:[15]head/tail开头结尾显示

4、打印Linux.txt文件的后五行,命令:tail -n 5 Linux.txt。

Linux命令详解:[15]head/tail开头结尾显示

5、实时显示/var/log/message日志的内容,命令:tail -f /var/log/message 。

Linux命令详解:[15]head/tail开头结尾显示
  • ∧在键盘上怎么打出来
  • 怎么在电脑上输入数学公式
  • Word中如何打异或号即⊕
  • 解决matlab的xlsread与xlswrite调用excel报错
  • word文档中怎么插入并集符号
  • 热门搜索
    小英雄手抄报 中国板报网手抄报 尊敬老人手抄报 民族民风手抄报 安全小报手抄报图片 科技创新手抄报资料 我爱我校手抄报内容 生活处处有语文手抄报 讲普通话手抄报内容 地震手抄报内容