在线看毛片网站电影-亚洲国产欧美日韩精品一区二区三区,国产欧美乱夫不卡无乱码,国产精品欧美久久久天天影视,精品一区二区三区视频在线观看,亚洲国产精品人成乱码天天看,日韩久久久一区,91精品国产91免费

<menu id="6qfwx"><li id="6qfwx"></li></menu>
    1. <menu id="6qfwx"><dl id="6qfwx"></dl></menu>

      <label id="6qfwx"><ol id="6qfwx"></ol></label><menu id="6qfwx"></menu><object id="6qfwx"><strike id="6qfwx"><noscript id="6qfwx"></noscript></strike></object>
        1. <center id="6qfwx"><dl id="6qfwx"></dl></center>

            新聞中心

            EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > linux中的cat命令:檔案目錄管理

            linux中的cat命令:檔案目錄管理

            作者: 時(shí)間:2016-09-12 來源:網(wǎng)絡(luò) 收藏

            名稱:cat

            本文引用地址:http://www.biyoush.com/article/201609/304221.htm

            使用權(quán)限:所有使用者

            使用方式:cat [-AbeEnstTuv] [--help] [--version] fileName

            說明:把檔案串連接后傳到基本輸出(螢?zāi)换蚣?> fileName 到另一個(gè)檔案)

            參數(shù):

            -n 或 --number 由 1 開始對(duì)所有輸出的行數(shù)編號(hào)

            -b 或 --number-nonblank 和 -n 相似,只不過對(duì)于空白行不編號(hào)

            -s 或 --squeeze-blank 當(dāng)遇到有連續(xù)兩行以上的空白行,就代換為一行的空白行

            -v 或 --show-nonprinting

            范例:

            cat -n textfile1 > textfile2 把 textfile1 的檔案內(nèi)容加上行號(hào)后輸入 textfile2 這個(gè)檔案里

            cat -b textfile1 textfile2 >> textfile3 把 textfile1 和 textfile2 的檔案內(nèi)容加上行號(hào)(空白行不加)之后將內(nèi)容附加到 textfile3 里。

            范例:

            把 textfile1 的檔案內(nèi)容加上行號(hào)后輸入 textfile2 這個(gè)檔案里

            cat -n textfile1 > textfile2

            把 textfile1 和 textfile2 的檔案內(nèi)容加上行號(hào)(空白行不加)之后將內(nèi)容附加到 textfile3 里。

            cat -b textfile1 textfile2 >> textfile3

            cat /dev/null > /etc/test.txt 此為清空/etc/test.txt檔案內(nèi)容

            cat 也可以用來制作 image file。例如要制作軟碟的 image file,將軟碟放好后打

            cat /dev/fd0 > OUTFILE

            相反的,如果想把 image file 寫到軟碟,請(qǐng)打

            cat IMG_FILE > /dev/fd0

            注:

            1. OUTFILE 指輸出的 image 檔名。

            2. IMG_FILE 指 image file。

            3. 若從 image file 寫回 device 時(shí),device 容量需與相當(dāng)。

            4. 通常用在制作開機(jī)磁片。



            關(guān)鍵詞: linux cat命令 檔案目錄管理

            評(píng)論


            相關(guān)推薦

            技術(shù)專區(qū)

            關(guān)閉