当前位置:网站首页>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

边栏推荐
- Kernel pwn 入门 (5)
- Download, installation and development environment construction of "harmonyos" deveco
- npm 命令
- Multi-objective collaborative decision-making in supply chain
- Esxi 7.0 installation supports mellanox technologies mt26448 [connectx en 10gige, PCIe 2.0 5gt/s] driver, and supports the cheapest 10GB dual fiber network card
- How strong is the working ability of a project manager with a monthly salary of 50000?
- MySql 执行计划
- 哈夫曼编码原理
- 你了解MySQL都包含哪些“零件“吗?
- < II> ObjectARX development: create and edit basic graphic objects
猜你喜欢

How to use Hyper-V in win10 Home Edition

常用的cmd指令
![[today in history] July 18: Intel was founded; The first photo was posted on the world wide web; EBay spins off PayPal](/img/7d/7a01c8c6923077d6c201bf1ae02c8c.png)
[today in history] July 18: Intel was founded; The first photo was posted on the world wide web; EBay spins off PayPal

AcWing-每日一题

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

Heap parsing and heap sorting

npm 命令

Do you know what "parts" MySQL contains?

XSS-labs(1-10)闯关详解

Binary tree knowledge summary
随机推荐
28. Implement strStr()实现 strStr()
MySQL isolation level transactions
[today in history] July 18: Intel was founded; The first photo was posted on the world wide web; EBay spins off PayPal
字符串和内存函数
Leetcode question brushing 1: topic classification
The results of the soft test can be checked, and the entry to query the results of the soft test has been opened in the first half of 2022
LeetCode刷题1:题目分类
mySql建表的基本操作 与常见的函数
Heap parsing and heap sorting
shape 和 size() 区别
[hard ten treasures] - 7.2 [dynamic RAM] analysis of the difference between DDR4 and DDR3
Go language configuration vscade
20220724 三角函数系的正交性
日志轮转logrotate
Multi-objective collaborative decision-making in supply chain
How to use Hyper-V in win10 Home Edition
“蔚来杯“2022牛客暑期多校训练营1补题记录(ACDGIJ)
7. Reverse Integer整数反转
On stock price prediction model (3): are you falling into the trap of machine learning
vulnhub Lampião: 1