table of Contents
- 1. Open a CMD window
- 2. Command
- (1) Switching letter
- (2) change directory (cd)
- (3) Clear the current screen display (csl)
- (4) view the file (dir)
- (5) `delete files (rm-rf *)`
- (6) is unobstructed view network (ping)
- (7) View Network Link Status (netstat)
- (8) to view the current IP information about your computer (ipconfig)
- (9) to view the current computer information (systeminfo)
- (10) Create a folder (md)
- (11) to remove the folder (rd)
- (12) Copy the folder (xcopy)
- (13) search (find)
- (14) traceroute (tracert)
- (15) termination command (Ctrl + C)
- (16) arrow keys on the keyboard
- (17) automatic shutdown
- (18) Control Panel
1. Open a CMD window
方式1
:
WIN+R // 打开运行输入cmd,点击确定
方式2
:
在电脑左下角开始菜单上右键;
点击Windows PowerShell( I)或 Windows PowerShell(管理员);
根据需求打开即可
方式3
:
Click the Start menu, find the [Windows] following [accessories] or [Windows command prompt, the following system] [command prompt]
Added: commands may be run directly by way cmd / c and the command cmd / k command.
/ c represents Close Window After Run cmd; / k represents retention after executing the command cmd window.
2. Command
(1) Switching letter
Format: "letter name + colon ("
eg: C from the disc to the other transducer disk, input to the corresponding letter (e.g., D drive)
(2) change directory (cd)
cd
: Displays the current directory
cd . .
: Returns the parent directory
If I have a test folder, and this time, I want to go in this folder, you can do this in the D drive:
① first into the D drive
② using the cd command, space, plus a file name
③ Enter into
(3) Clear the current screen display (csl)
(4) view the file (dir)
(5)删除文件(rm-rf*)
Delete all files directory, the deleted files are generally not be restored! ! ! Caution, or not.
I do not demonstrate Ha ...
(6) is unobstructed view network (ping)
ping command is used to view the different networks is smooth.
Format: ping IP or host name.
For example Baidu:
(7) View Network Link Status (netstat)
I generally use netstat -ano
(8) to view the current IP information about your computer (ipconfig)
(9) to view the current computer information (systeminfo)
(10) Create a folder (md)
Such as creating a test folder in D drive: md test
(11) to remove the folder (rd)
For example: remove the D drive test folder: rd test
(12) Copy the folder (xcopy)
E.g:
A copy of the test folder, named test2, the code is:xcopy test test2
(13) search (find)
Get personal support (find /?)
(14) traceroute (tracert)
Get personal support (find /?)
(15) termination command (Ctrl + C)
Sometimes a command has been printouts: run (eg ping 192.168.1.0 -t), this time we want to terminate this command, you can press Ctrl + C.
(16) arrow keys on the keyboard
Arrow-up: the replicate command
(17) automatic shutdown
600 seconds after the automatic shutdown represents: shutdown -s -t 600
shutdown -a: cancel time off
Represents restart automatically after 600 seconds: shutdown -r -t 600
(18) Control Panel
control: Open the Control Panel
等等等等...太多了,先列举这些常用的~~~