奶头挺立呻吟高潮av全片,成人试看120秒体验区,性欧美极品v,A片高潮抽搐揉捏奶头视频

操作系統

linux系統中head命令使用說明

時間:2025-02-25 21:47:44 操作系統 我要投稿
  • 相關推薦

linux系統中head命令使用說明

  head 與 tail 就像它的名字一樣的淺顯易懂,它是用來顯示開頭或結尾某個數量的文字區塊,head 用來顯示檔案的開頭至標準輸出中,而 tail 想當然爾就是看檔案的結尾。

  1.命令格式:

  head [參數]... [文件]...

  2.命令功能:

  head 用來顯示檔案的開頭至標準輸出中,默認head命令打印其相應文件的開頭10行。

  3.命令參數:

  -q 隱藏文件名

  -v 顯示文件名

  -c<字節> 顯示字節數

  -n<行數> 顯示的行數

  4.使用實例:

  實例1:顯示文件的前n行

  命令:

  head -n 5 log2014.log

  輸出:

  [root@localhost test]# cat log2014.log

  2014-01

  2014-02

  2014-03

  2014-04

  2014-05

  2014-06

  2014-07

  2014-08

  2014-09

  2014-10

  2014-11

  2014-12

  ==============================

  [root@localhost test]# head -n 5 log2014.log

  2014-01

  2014-02

  2014-03

  2014-04

  2014-05[root@localhost test]#

  實例2:顯示文件前n個字節

  命令:

  head -c 20 log2014.log

  輸出:

  [root@localhost test]# head -c 20 log2014.log

  2014-01

  2014-02

  2014

  [root@localhost test]#

  實例3:文件的除了最后n個字節以外的內容

  命令:

  head -c -32 log2014.log

  輸出:

  [root@localhost test]# head -c -32 log2014.log

  2014-01

  2014-02

  2014-03

  2014-04

  2014-05

  2014-06

  2014-07

  2014-08

  2014-09

  2014-10

  2014-11

  2014-12[root@localhost test]#

  實例4:輸出文件除了最后n行的全部內容

  命令:

  head -n -6 log2014.log

  輸出:

  [root@localhost test]# head -n -6 log2014.log

  2014-01

  2014-02

  2014-03

  2014-04

  2014-05

  2014-06

  2014-07[root@localhost test]#

【linux系統中head命令使用說明】相關文章:

Linux系統中hexdump的命令匯總11-12

linux系統命令(經典)01-25

linux系統命令11-23

Linux系統中strace命令的使用代碼07-01

Linux系統中命令的學習方法05-29

linux系統命令大全08-16

Linux系統關機的命令09-07

Linux系統查看命令:od命令10-24

關于Linux系統命令中exit與exit的區別09-19

主站蜘蛛池模板: 靖远县| 绥棱县| 突泉县| 新疆| 通城县| 常宁市| 密云县| 长顺县| 滨海县| 个旧市| 新巴尔虎右旗| 新河县| 宁陵县| 白银市| 手机| 阳信县| 辽宁省| 宁强县| 巫溪县| 兴宁市| 台州市| 宜君县| 汽车| 乐都县| 塘沽区| 卢湾区| 诸暨市| 海宁市| 德清县| 大城县| 米林县| 仲巴县| 剑川县| 堆龙德庆县| 乌什县| 财经| 库车县| 浦北县| 崇州市| 长丰县| 万全县|