国产宅男网站在线|亚洲A级性爱免费视频|亚洲中精品级在线|午夜福利AA毛

  • <dd id="gf5jf"><th id="gf5jf"></th></dd>

    <cite id="gf5jf"><label id="gf5jf"></label></cite>
  • <div id="gf5jf"><listing id="gf5jf"></listing></div>
    學習啦 > 學習電腦 > 操作系統(tǒng) > Linux教程 > linux合并命令

    linux合并命令

    時間: 佳洲1085 分享

    linux合并命令

      linux系統(tǒng)下可以通過相關命令讓我們合并文件或者合并命令,下面由學習啦小編為大家整理了linux合并命令的相關知識,希望對大家有所幫助。

      1.linux下合并文件命令

      在Windows下實現(xiàn)文件合并,用"copy"命令就能實現(xiàn):

      格式:copy /b ++…+

      其中/b是二進制合并

      在Linux下實現(xiàn)文件合并,用"cat"命令就能實現(xiàn):

      格式:cat filename.log.001 filename.log.002 > filename.log

      2.linux合并多個命令

      通過使用";"合并多個命令:

      例如:ls -l;more test.sh;touch abc;echo 'aaaaaaa' > abc

      無論命令執(zhí)行是否有錯誤,都會順序執(zhí)行

      通過使用"&&"合并多個命令:

      例如:ls -l&&more test.sh&&touch abc&&echo 'aaaaaaa' > abc

      只有當之前的命令是正確的時候才會繼續(xù)執(zhí)行下一條命令

      通過使用"||"合并多個命令:

      例如:ls -l||more test.sh||touch abc||echo 'aaaaaaa' > abc

      只有當之前的命令是錯誤的時候才會執(zhí)行下一條命令

    3597992