Some useful commands in cmd

Some useful commands in cmd

nameexplanation
CDDisplays the name of or changes the current directory.
CD [/D] [drive:][path]or CD [..]
CHKDSKChecks a disk and displays a status report.
COMPCompares the contents of two files or sets of files.
COMP [path1] [path2]
COPYCopies one or more files to another location.
DATEDisplays or sets the date.
DELDeletes one or more files.
/F:Force deleting of read-only files.
DIRDisplays a list of files and subdirectories in a directory.
EXITQuits the CMD.EXE program (command interpreter).
FORMATFormats a disk for use with Windows.
HELPProvides Help information for Windows commands.
command name+ -help:the same function.
MD/MKDIRCreates a directory.
MOVEMoves one or more files from one directory to another directory.
RD/RMDIRRemoves a directory.
REN/RENAMERenames a file or files.
REPLACEReplaces files.
SHUTDOWNAllows proper local or remote shutdown of machine.
/s Shutdown the computer.
/r Full shutdown and restart the computer.
/g Full shutdown and restart the computer.After the system is rebooted,restart any registered applications.
/a Abort a system shutdown.
/p Turn off the local computer with no time-out or warning.
/h Hibernate the local computer.
/o Go to the advanced boot options menu and restart the computer.Must be used with /r option.
/t xxx Set the time-out period before shutdown to xxx seconds. The valid range is 0-315360000 (10 years), with a default of 30.
STARTStarts a separate window to run a specified program or command.
TASKLISTDisplays all currently running tasks including services.
TASKKILLKill or stop a running process or application.
/PID Specifies the PID of the process to be terminated.Use TaskList to get the PID.
/IM Specifies the image name of the process to be terminated.
/T Terminates the specified process and any child processes which were started by it.
/F Specifies to forcefully terminate the process(es).

Some useful abbreviations in cmd or run

nameexplanation
ipconfig查看自身的网络配置
nslookupIP地址侦测器
compmgmt计算机管理
regedit注册表编辑器
taskmgr任务管理器
devmgmt设备管理器
msconfig系统配置实用程序
dxdiag检查DirectX信息
cleanmgr垃圾整理
diskmgmt磁盘管理实用程序
services打开服务
control打开控制面板
winver检查Windows版本
calc启动计算器
notepad打开记事本
write写字板
mspaint画图板
magnify放大镜实用程序
osk屏幕键盘
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值