DOS Command Collection-most commonly used commands

Source: Internet
Author: User

A. Common commands:

CD Change current directory sys make DOS system disk (computer introduction to master network www.58116.cn)

Copy copy file del Delete file

deltree Deleting a directory tree dir column file name

diskcopy disk Edit text editing (computer introduction to master network www.58116.cn)

Format formatted disk MD to create subdirectories (computer entry to proficient Web www.58116.cn)

Mem View memory Status type display file contents

Rd Delete Directory Ren changes the file name

Two. Other commands

CLS Clear Screen

[Where applicable] the screen is too messy, or garbled on the screen, clear the screen display content but does not affect any information inside the computer

[Usage] CLS carriage return

Move file, change directory name (computer to master network www.58116.cn)

Move files to another directory [applicable]

[Usage] Move [file name] [directory] moves the file to the new directory

Move [directory name] [directory name] Change directory name

[Example] C:\>move c:\autoexec.bat c:\old to Proficient web www.58116.cn) move Autoexec.bat file to old directory

C:\>move c:\config.sys c:\temp move Config.sys file to the old directory

more split screen display (computer introduction to master network www.58116.cn)

[applicable] When the output of a lot of one screen is not displayed, it is almost suitable for all commands, especially commands such as type. When using more, the disk cannot be write-protected or suitable for the optical drive.

[Usage] Type [file name] | More split screen display file contents

More < [file name] Split screen display file contents (computer introduction to master network www.58116.cn)

[Example] C:\>type msdos.w40 | More

xcopy copy directories and files

Useful when copying along with subdirectories, much faster than copy commands when copying large numbers of files

[Usage] xcopy [file name] [directory] Copy the specified file to the specified directory

xcopy [Source directory] [destination directory] to the destination directory of the source directory attached subdirectory

xcopy *. * [Directory]/s copies files and non-empty directories to the specified directory (computer entry to master network www.58116.cn)

Other commonly used parameters are: V-copy post-calibration, which can affect the speed
E is similar to S, but it is copied even if the subdirectory is empty. (computer introduction to master network www.58116.cn)

So how do you check the usage of a command? This will use the help command, which will provide all the commands

help (Getting started with computer to master Web www.58116.cn)

[Where applicable] when you want to know more about how DOS commands are used (get started to master Web www.58116.cn)

[Usage] Help provides all DOS command assistance (computer entry to master network www.58116.cn)

Help [DOS command] provides assistance with commands

If you only roughly remember a command, you can enter the help command directly after the prompt, and the following screen will appear:

Move the cursor to the command you want to query, enter it to query the syntax format, such as the CD command:

Move the cursor to <Notes>, enter after the query to its detailed syntax and function of interpretation; Move the cursor to <Examples>, enter after the query to the syntax of a detailed example, we often use examples of functions, the following is the point <Examples> After the appearance of the screen

If you remember what the command is good to do, you can press the Alt+s key to select "Find", the following dialog box will pop up

Enter the DOS command you want to find, and you can query the details of the command immediately after carriage return.

DOS Command Collection-most commonly used commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.