Day02 DOS basic commands

DOS command

All operations in CMD need to be switched to English input method

How to open CMD

  1. Start+system+command prompt
  2. Win key + R + enter CMD to open the console (recommended)
  3. Under any folder, hold down Shift+right mouse button to open the command line window here
  4. Add the CMD path in front of the address bar of the resource manager
  5. Choose to run as an administrator

Commonly used DOS commands

#盘符切换,输入目的磁盘+:
#查看当前磁盘下的所有文件 dir
#切换目录 cd(change directory) 磁盘切换需加/d,精确到某个文件需要在文件前面加\
#返回上一级文件 cd..
#清理屏幕 cls (clear screen)
#退出终端 exit
#查看电脑IP ipconfig
#打开应用
 calc(计算器) mspaint(画图) notepad(记事本)
 #ping命令
 ping www.baidu.com
 #创建目录
 md+空格+目录名
 #创建文件
 cd+>+文件名(需要有文件格式 例.xxx)
 #删除文件
 del+文件名
 #删除目录
 rd+空格+目录名(需要在所要删除目录的上级操作)

Guess you like

Origin blog.csdn.net/weixin_49911270/article/details/114260487