1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時(shí)間:8:30-17:00
      你可能遇到了下面的問題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
      linux中rmdir命令使用實(shí)例分析

      本篇內(nèi)容介紹了“l(fā)inux中rmdir命令使用實(shí)例分析”的有關(guān)知識(shí),在實(shí)際案例的操作過程中,不少人都會(huì)遇到這樣的困境,接下來就讓小編帶領(lǐng)大家學(xué)習(xí)一下如何處理這些情況吧!希望大家仔細(xì)閱讀,能夠?qū)W有所成!

      成都創(chuàng)新互聯(lián)主營紅橋網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,成都app軟件開發(fā)公司,紅橋h5微信平臺(tái)小程序開發(fā)搭建,紅橋網(wǎng)站營銷推廣歡迎紅橋等地區(qū)企業(yè)咨詢

      rmdir是常用的命令,該命令的功能是刪除空目錄,一個(gè)目錄被刪除之前必須是空的。(注意,rm - r dir命令可代替rmdir,但是有很大危險(xiǎn)性。)刪除某目錄時(shí)也必須具有對父目錄的寫權(quán)限。

      1.命令格式:
      rmdir [選項(xiàng)]... 目錄...

      2.命令功能:
      該命令從一個(gè)目錄中刪除一個(gè)或多個(gè)子目錄項(xiàng),刪除某目錄時(shí)也必須具有對父目錄的寫權(quán)限。

      3.命令參數(shù):
      - p 遞歸刪除目錄dirname,當(dāng)子目錄刪除后其父目錄為空時(shí),也一同被刪除。如果整個(gè)路徑被刪除或者由于某種原因保留部分路徑,則系統(tǒng)在標(biāo)準(zhǔn)輸出上顯示相應(yīng)的信息。
      -v, --verbose  顯示指令執(zhí)行過程 
      4.命令實(shí)例
      實(shí)例一:rmdir 不能刪除非空目錄
      命令:
           rmdir doc
      輸出:

      復(fù)制代碼 代碼如下:

      [root@localhost scf]# tree
      .
      |-- bin
      |-- doc
      |   |-- info
      |   `-- product
      |-- lib
      |-- logs
      |   |-- info
      |   `-- product
      `-- service
          `-- deploy
              |-- info
              `-- product
       
      12 directories, 0 files
      [root@localhost scf]# rmdir doc
      rmdir: doc: 目錄非空
      [root@localhost scf]# rmdir doc/info
      [root@localhost scf]# rmdir doc/product
      [root@localhost scf]# tree
      .
      |-- bin
      |-- doc
      |-- lib
      |-- logs
      |   |-- info
      |   `-- product
      `-- service
          `-- deploy
              |-- info
              `-- product
       
      10 directories, 0 files

      說明:
      rmdir 目錄名 命令不能直接刪除非空目錄

      實(shí)例2:rmdir -p 當(dāng)子目錄被刪除后使它也成為空目錄的話,則順便一并刪除
      命令:
      rmdir -p logs
      輸出:

      復(fù)制代碼 代碼如下:

      [root@localhost scf]# tree
      .
      |-- bin
      |-- doc
      |-- lib
      |-- logs
      |   `-- product
      `-- service
          `-- deploy
              |-- info
              `-- product
       
      10 directories, 0 files
      [root@localhost scf]# rmdir -p logs
      rmdir: logs: 目錄非空
      [root@localhost scf]# tree
      .
      |-- bin
      |-- doc
      |-- lib
      |-- logs
      |   `-- product
      `-- service
          `-- deploy
              |-- info
              `-- product
       
      9 directories, 0 files
      [root@localhost scf]# rmdir -p logs/product
      [root@localhost scf]# tree
      .
      |-- bin
      |-- doc
      |-- lib
      `-- service
      `-- deploy
              |-- info
              `-- product
       
      7 directories, 0 files

      總結(jié):
      該命令用用來刪除空目錄,如果目錄非空,則會(huì)出現(xiàn)錯(cuò)誤。可以使用rm刪除目錄中的文件后,使用rmdir刪除目錄。也可以使用rm -rf替代rmdir命令。這是一個(gè)非常簡單的命令。

      “l(fā)inux中rmdir命令使用實(shí)例分析”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識(shí)可以關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實(shí)用文章!


      網(wǎng)頁標(biāo)題:linux中rmdir命令使用實(shí)例分析
      網(wǎng)站URL:http://ef60e0e.cn/article/piojeh.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        三都| 涪陵区| 车致| 三原县| 宁强县| 南充市| 嵊州市| 垣曲县| 建水县| 和龙市| 焦作市| 青川县| 女性| 育儿| 台湾省| 新闻| 钦州市| 鸡西市| 崇礼县| 玉门市| 泸溪县| 襄樊市| 桓仁| 乐都县| 闵行区| 达日县| 北辰区| 隆化县| 巍山| 固阳县| 临安市| 浪卡子县| 北安市| 昌吉市| 临沧市| 双流县| 长武县| 崇阳县| 珲春市| 寿光市| 枣庄市|