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文档中怎么插入并集符号
  • 热门搜索
    小学生手抄报怎么做 关于书的手抄报内容 交通安全小报手抄报 有关动物的手抄报 手抄报花边边框大全 绿色环保手抄报资料 六年级手抄报大全 备战期中手抄报 读书手抄报的资料 安全与健康手抄报内容