JAVA基礎–cmd命令

常用cmd命令行,很簡單

  1.     md(make directory):創建文件夾 如:md test1;
  2.     rd(remove directory):刪除空文件夾 如:rd test1;若文件夾包含其他文件,則無法刪除;
  3.    del : 刪除單個文件 如 del 1.doc;刪除 所有doc後綴的文件  如del *.doc;刪除包含文件的文件夾 del test1 再選擇 Y;
  4.     cd.. 返回上一級;注意cd後帶兩點;
  5.     返回當前目錄的根目錄 cd/
  6.      cd  進入當前目錄某文件夾 cd test1
  7.      進入某盤,直接輸入盤符 如 d:
  8.      查看當前目錄含有哪些文件夾及文件,直接輸 dir
  9.       當前文件夾下創建單個文件 :type nul>1.txt  創建1.txt文件,內容為null;或者 echo null>2.doc 創建名為2的doc文件,內容為空;

    

    

Tags: