windows常用命令(檔案操作篇)

來源:互聯網
上載者:User

標籤:操作   目錄   顯示   統計   命令   切換   複製檔案   常用命令   檔案   

  • 切換盤符:
    根目錄:d:上級目錄:cd  ..相對路徑:cd  test絕對路徑:cd  c:\test查看目前的目錄:echo  %cd%
  • 查看檔案/檔案夾:
    不含隱藏檔案:dir隱藏檔案:dir  /a排序:dir  /on
  • 顯示/隱藏檔案/檔案夾:
    隱藏:attrib  +h  test顯示:attrib  -h  test
  • 建立檔案:
    空檔案:echo.  >  test.txt帶內容:echo  abc  >  test.txt
  • 建立檔案夾:
    單個檔案夾:md  test多個檔案夾:md  test1  test2多級目錄:md  test1/test2/test3...
  • 複製檔案:
    單個:copy  /y  a.txt  a.txt.back多個:copy  /y  *.txt  *.txt.back
  • 複製檔案夾:
    不含隱藏檔案:xcopy  test1  test2隱藏檔案:xcopy  /h  test1  test2
  • 刪除檔案:
    單個:del  /q  a.txt多個:del  /q  *.txt
  • 刪除檔案夾:
    rd  /s  /q  test
  • 重新命名檔案/檔案夾:
    單個:move  a  aa多個:ren  *.txt  *.bat
  • 移動檔案/檔案夾:
    move  /y  test1  test2
  • 尋找/統計檔案:
    顯示行號:find  /n  "str"  test.txt統計行數:find  /c  "str"  test.txt查看檔案內容:findstr  "."  test.txt
  • windows常用命令(檔案操作篇)

    相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.