Some useful commands in cmd

来源:互联网 发布:px4源码下载 编辑:程序博客网 时间:2024/05/16 07:05

Some useful commands in cmd

name explanation CD Displays the name of or changes the current directory. CD [/D] [drive:][path]or CD [..] CHKDSK Checks a disk and displays a status report. COMP Compares the contents of two files or sets of files. COMP [path1] [path2] COPY Copies one or more files to another location. DATE Displays or sets the date. DEL Deletes one or more files. /F:Force deleting of read-only files. DIR Displays a list of files and subdirectories in a directory. EXIT Quits the CMD.EXE program (command interpreter). FORMAT Formats a disk for use with Windows. HELP Provides Help information for Windows commands. command name+ -help:the same function. MD/MKDIR Creates a directory. MOVE Moves one or more files from one directory to another directory. RD/RMDIR Removes a directory. REN/RENAME Renames a file or files. REPLACE Replaces files. SHUTDOWN Allows 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. START Starts a separate window to run a specified program or command. TASKLIST Displays all currently running tasks including services. TASKKILL Kill 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

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