码迷,mamicode.com
首页 > 系统相关 > 详细

第六课 Linux文件系统文本操作命令

时间:2020-01-18 00:42:22      阅读:102      评论:0      收藏:0      [点我收藏+]

标签:ESS   文本操作   mic   系统   less   hello   bsp   mamicode   inf   

技术图片

cat       文本查看命令

more profile                 #查看profile文件,用空格键进行换页

less   profile               #查看profile 文件,用b键上翻、回车下翻、按q键返回命令

head  profile               #打印profile问价的前10行

head  -5 profile     #打印profile文件的前5行

tail -5 profile         #打印profile文件后5行

tail -f 123.log        #打印输出追加的内容实时输出123.log文件的内容变化  (echo “hello word”>>123.log

 

管道命令

cat hu | head -3           #打印hu文件的前3行

head -3 hu | tail -1        #打印输出hu问价的第三行(先输出hu文件的前3行,再从前3行输出倒数第1行) 

第六课 Linux文件系统文本操作命令

标签:ESS   文本操作   mic   系统   less   hello   bsp   mamicode   inf   

原文地址:https://www.cnblogs.com/huxiangyang/p/12207763.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!