Basic operation under Windows breaks common commands CMD (including Linux common instructions)] [science paste

1. Open a CMD window

方式1

WIN+R  // 打开运行输入cmd,点击确定

Here Insert Picture Description
方式2

在电脑左下角开始菜单上右键;
点击Windows PowerShell(	I)或 Windows PowerShell(管理员);
根据需求打开即可

Here Insert Picture Description
方式3

Click the Start menu, find the [Windows] following [accessories] or [Windows command prompt, the following system] [command prompt]
Here Insert Picture Description

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)
Here Insert Picture Description

(2) change directory (cd)

cd : Displays the current directory

cd . . : Returns the parent directory

Here Insert Picture Description
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
Here Insert Picture Description

(3) Clear the current screen display (csl)

Here Insert Picture Description

(4) view the file (dir)

Here Insert Picture Description

(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:
Here Insert Picture Description

(7) View Network Link Status (netstat)

I generally use netstat -ano

Here Insert Picture Description

(8) to view the current IP information about your computer (ipconfig)

Here Insert Picture Description

(9) to view the current computer information (systeminfo)

Here Insert Picture Description

(10) Create a folder (md)

Such as creating a test folder in D drive: md test
Here Insert Picture Description
Here Insert Picture Description

(11) to remove the folder (rd)

For example: remove the D drive test folder: rd test
Here Insert Picture Description

(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 /?)
Here Insert Picture Description

(14) traceroute (tracert)

Get personal support (find /?)
Here Insert Picture Description

(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


等等等等...太多了,先列举这些常用的~~~

Published 87 original articles · won praise 388 · views 70000 +

Guess you like

Origin blog.csdn.net/weixin_42881768/article/details/105045564