当前位置:网站首页>Basic commands and practice of DOS command line
Basic commands and practice of DOS command line
2022-04-22 02:36:00 【Descosmos】
1. DOS Command profile
DOS command , Computer terminology , Refer to DOS Operating system commands , It's a disk oriented command , It mainly includes directory operation commands 、 Disk operation class Command 、 File manipulation class commands and other commands .
2. DOS Command to open
If you use window , You can use windows + s perhaps windows + r The way to open Cortana perhaps Run window . Input cmd And then you can use DOS Command line .

3. Commonly used DOS command
ASSOC Show or modify file extension associations .
ATTRIB Show or change file properties .
BREAK Set or clear extended CTRL+C Check .
BCDEDIT Set the properties in the startup database to control the boot load .
CACLS Display or modify the access control list of a file (ACL).
CALL Call this one from another batch program .
CD Display or change the name of the current directory .
CHCP Display or set the number of active code pages .
CHDIR Display or change the name of the current directory .
CHKDSK Check the disk and display the status report .
CHKNTFS Displays or modifies the startup time disk check .
CLS Clear the screen .
CMD Open another Windows Command interpreter window .
COLOR Set default console foreground and background colors .
COMP Compare the contents of two or two sets of documents .
COMPACT Show or change NTFS Compression of files on partitions .
CONVERT take FAT The volume is converted to NTFS. You can't switch
Current drive .
COPY Copy at least one file to another location .
DATE Show or set the date .
DEL Delete at least one file .
DIR Show files and subdirectories in a directory .
DISKPART Display or configure partition properties .
DOSKEY Edit the command line 、 withdraw Windows Command and
Create macros .
DRIVERQUERY Displays the current device driver status and properties .
ECHO display messages , Or turn the command echo on or off .
ENDLOCAL End localization of environment changes in batch file .
ERASE Delete one or more files .
EXIT sign out CMD.EXE Program ( Command interpreter ).
FC Compare two files or two file sets and display
The difference between them .
FIND Search for a text string in one or more files .
FINDSTR Search multiple files for Strings .
FOR Run a specified command for each file in a set of files .
FORMAT Format disk , In order to be used for Windows.
FSUTIL Display or configure file system properties .
FTYPE Displays or modifies the files used in the file extension Association
type .
GOTO take Windows Command interpreter directed to batch program
A line with a label in .
GPRESULT Displays group policy information for a computer or user .
GRAFTABL send Windows Display extension in graphic mode
Character set .
HELP Provide Windows Command help information .
ICACLS Show 、 modify 、 Back up or restore files and
The directory ACL.
IF Performing conditional processing operations in a batch program .
LABEL establish 、 Change or delete the label of the disk .
MD Create a directory .
MKDIR Create a directory .
MKLINK Create symbolic links and hard links
MODE Configure system devices .
MORE Screen by screen display output .
MOVE Move one or more files from one directory to another
Catalog .
OPENFILES Displays files opened by remote users for file sharing .
PATH Display or set search path for executable file .
PAUSE Pause batch file processing and display message .
POPD Reduction by PUSHD Save the current directory of the previous
value .
PRINT Print a text file .
PROMPT change Windows Command prompt .
PUSHD Save the current directory , Then change it .
RD Delete directory .
RECOVER Recover readable information from a damaged or defective disk .
REM Record batch files or CONFIG.SYS The comments in ( Comments ).
REN Rename file .
RENAME Rename file .
REPLACE Replace file .
RMDIR Delete directory .
ROBOCOPY Advanced utility for copying files and directory trees
SET Show 、 Set or delete Windows environment variable .
SETLOCAL Start localizing environment changes in batch files .
SC Display or configure services ( Background processes ).
SCHTASKS Arrange to run commands and programs on a computer .
SHIFT Adjust the position of replaceable parameters in the batch file .
SHUTDOWN Allow proper shutdown of the computer locally or remotely .
SORT Sort input .
START Start a separate window to run the specified program or command .
SUBST Associate a path with a drive letter .
SYSTEMINFO Displays the specific properties and configuration of the computer .
TASKLIST Show all currently running tasks including services .
TASKKILL Abort or stop a running process or application .
TIME Display or set system time .
TITLE Set up CMD.EXE The window title of the session .
TREE Displays a directory of drivers or paths graphically
structure .
TYPE Display the contents of the text file .
VER Show Windows Version of .
VERIFY tell Windows Whether to verify , To ensure that the document
Write to disk correctly .
VOL Display the disk volume label and serial number .
XCOPY Copy files and directory trees .
WMIC In interactive commands shell It shows that WMI Information .
4. DOS Command practice
When you want to open some software that comes with the system , Can be found in DOS Open directly from the command line .
for example :
Open the system's own drawing board , Input mspaint ;
Open the tablet , Input write ;
Create an unnamed text , Input notepad;
Rename the file :
ren I:\Users\DRAGON\Desktop frank.txt

Display file contents :
type I:\Users\DRAGON\Desktop\john.txt

Move files :
move I:\Users\DRAGON\Desktop\frank.txt I:\Users\DRAGON\Desktop\docu

Copy file :
copy I:\Users\DRAGON\Desktop\love.jpg I:\Users\DRAGON\Desktop\py_file\kiss.jpg
# The files of the copied destination path are optional , For example , Yes kiss.jpg Copy a file named kiss,jpg file
# No, kiss.jpg when , I'm gonna copy one love.jpg file
Delete file :
del I:\Users\DRAGON\Desktop\frank.txt

Show the tree structure of the folder :
tree I:\Users\DRAGON\Desktop\docu
# Or use
dir I:\Users\DRAGON\Desktop


View all apps in progress
tasklist

View computer configuration and specific properties :
systeminfo

summary
This is about DOS Some basic operation commands , About DOS Advanced and advanced use of commands , Chuan will talk about later .
版权声明
本文为[Descosmos]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220230319719.html
边栏推荐
猜你喜欢

Development trend of Internet of things security in 2022

风控产品定额的陷阱都有哪些?

Why can the Internet industry attract more and more young people? Especially programmers

Ren Jie, chief scientist of rongyun: the Internet is unstoppable, but there are always young people

illustrator(AI)的画板大小尺寸修改快捷键默认是Shift+O

身份认证和访问控制

Development management · Huawei IPD

顺序表实现栈的操作

WSOLA原理及matlab仿真

Problem brushing plan -- dynamic programming (II)
随机推荐
二叉排序树基本性质详解
Development of smart party building system and construction of information management platform for smart team members
Oracle table Association divergence
Use of swift generics
How to generate anr in service?
Flutter跳转界面
Uniapp realizes the effect of birth date / time selection
《k3s 源码解析2 ----master逻辑源码分析》
Explain various cloud computing models in detail. How can enterprises use each model to improve business productivity?
STM32 flash operation
Wu Enda's machine learning assignment -- Logical Regression
STM32 CAN通信实验
Oracle表关联发散
[TIANTI competition] l2-040 Zhezhi game (25 points (s)) (simulation)
Pycharm同时执行多个脚本文件
The flitter does not use the navigation bar of the status bar
Header DHCP service configuration
How to batch modify file names and photo file names
Training set: alexnet classification
Unapp encapsulates a loading animation