当前位置:网站首页>Common CMD instructions
Common CMD instructions
2022-07-26 07:00:00 【Favour72】
Catalog
Directory related instructions
The catalog represents compliance
cd Directory name Switch to the corresponding directory
Create directory md Directory name
View the contents of the catalog file dir
type text file View the contents of the text file
del Directory name Delete all files in the directory , But don't delete the directory
rd Directory name /s /q Delete the directory with content
Command history On the keyboard ↑ Next ↓ key
help help Check all commands help command View command usage
View Unicom ping + The name of the plane ping www,baidu.com
.cmd Command run
Press on the computer keyboard at the same time win and R key ( stay alt The left side of the key ), A window will pop up

Input cmd,anenter Or confirm to enter cmd In the operation panel

Access disk
If you want to quickly access your computer D Disk or E disc , You can input d: e:( Case insensitive )
( In the following example, the system cannot find the specified drive because my computer does not d disc )

Directory related instructions
The catalog represents compliance
| / | representative root directory |
| ./ | Current directory |
| ../ | Previous Directory |
Toggle directory
cd Instructions
cd Directory name Switch to the corresponding directory
| cd ../ | Switch to the previous Directory |
| cd / | Switch to the root directory |
| cd Users | Switch to Users Catalog |
| cd Users\Administrator | Switch to Users\Administrator Catalog |
Take a chestnut :
Pay attention to the path problem in the red box

Tips
If the file character is too long, you can use the following prompt
The first letter +tab You can complete the corresponding documents / Folder name
Create directory md Directory name
md my Create a name my The catalog of

At this time, we can see in C A file named my Folder
We create a folder called my Of txt file , Now to use cmd Command to check him
View the contents of the catalog file dir

About this my.txt file , You should know the following two instructions
type text file View the contents of the text file
The text is as follows

see text file The content of ( When there is no content written, it will be displayed as empty )

Now delete this my.txt file
del file Delete file

Folder my Medium my.txt The document was deleted

del Directory name Delete all files in the directory , But don't delete the directory
(y yes yes ,N yes no, Ask if you want to delete )

rd Directory name /s /q Delete the directory with content
rd /s /q quiet Mode delete directory and content
First switch to the upper level and then delete , Otherwise I can't find it

Command history
On the keyboard ↑ Next ↓ key
It is very convenient when instructions need to be reused
help
help Check all commands
help command View command usage
If you forget how to use an instruction , It would be help

Find an instruction alone
help rd see rd Tutorial on the use of commands 
cls Clear the screen
There are too many instructions and data , Clear the screen
View this machine ip
ipconfig

View Unicom
ping + The name of the plane
ping www,baidu.com
Used to test whether the network is unblocked ping ip( Host name )
calc Turn on the calculator

边栏推荐
- MySQL Foundation (II) -- MySQL Foundation
- QT listens for socket events and uses qsocketnotifier class
- shape 和 size() 区别
- "Niuke | daily question" inverse Polish expression
- 问题:Can‘t download sh shellcheck. Please install it manually及shell脚本的一些命令使用
- XSS labs (1-10) break through details
- Can you learn fast and well with dual stream network? Harbin Institute of Technology & Microsoft proposed a distillation dual encoder model for visual language understanding, which can achieve fast an
- Drools(2):Drools快速入门
- MySQL table write lock
- IDEA——使用@Slf4j打印日志
猜你喜欢

buuReserve(4)

Can you learn fast and well with dual stream network? Harbin Institute of Technology & Microsoft proposed a distillation dual encoder model for visual language understanding, which can achieve fast an

File server fastdfs

vulnhub Lampião: 1

Log rotation logrotate

opengauss简易版安装报错

常用的cmd指令

问题:Can‘t download sh shellcheck. Please install it manually及shell脚本的一些命令使用

软考可以查成绩了,2022年上半年软考成绩查询入口已开通

【硬十宝典】——7.1【动态RAM】DDR硬件设计要点
随机推荐
敏捷整洁之道
Click "Niuke | daily question" to eliminate it
28. Implement strstr() implement strstr()
【Star项目】小帽飞机大战(四)
哈夫曼编码原理
从Architecture带你认识JVM
SQL shell (PSQL) tool under PostgreSQL
[QT] how to obtain the number of rows and columns of qtableview and qtablewidget
Rectification ideas for the previous article
Docker modifying the MySQL configuration file attached to the host does not take effect?
Do you know what "parts" MySQL contains?
【QT】怎样获得QTableView和QTableWidget的行数和列数
Command line artifact for operating database: mycli
[Star Project] small hat aircraft War (III)
IV Actual combat - global unified return result class
openssl: error while loading shared libraries: libssl.so.1.1
Shared lock
Intention lock
C # use log4net plug-in to output logs to files
【QT】详解 *.pro、*.pri、*.prf、*.prl文件