Common DOS Commands (1) color,dir,copy,shutdown,mkdir (MD), RmDir (RD), ATTRIB,CD

Source: Internet
Author: User

1. Color

Sets the default console foreground and background color.

ATTR Specifies the color properties of the console output.
The color attribute is specified by two hexadecimal digits-the first corresponds to the background, and the second corresponds to the foreground. Each number
Can be any of the following values:

0 = Black 8 = Gray
1 = Blue 9 = light Blue
2 = green A = Light Green
3 = light green B = Light Green
4 = Red C = Light Red
5 = Purple D = Lavender
6 = Yellow E = Light Yellow
7 = White F = Bright White

At the start of the fight, the colors were like this.

I want to set Beijing to White and the foreground (font) to black. Bright white corresponds to F, black corresponds to 0, the input command is "COLOR F0"

2. Dir

In general, it is to see the contents of the current directory and related properties, but there are some other tips.

. opening means hiding

. Represents the current directory

.. Represents the previous level of the directory

You can use * as a wildcard character to view a file of a certain type (suffix) in the current directory. The following is a PDF file that looks at the current directory "dir *.pdf"

Dir also has more parameters and applications. This page description is clear and detailed: http://www.computerhope.com/dirhlp.htm

3. Copy

Copy.

Copy source file Destination file

If the source and destination files are in the same folder, copy and rename.

4. Shutdown

Shutdown command

5. mkdir

Create a Directory

6. RmDir

Remove Directory

7. Attrib

Attrib is used to change the properties of a file.
Read-only is read-only and cannot be written or changed.
Archived let the backup file know what files should be backed up.
Hidden make files hidden for standard users
The system makes the file an important systems file

+ Set Properties,-clear a property

R Read Only
A archive file
s System file
H Hidden

8. cd

Switch directories, commonly available [CD..] The top level directory. [CD Dir_name] enters a folder.

Common DOS Commands (1) color,dir,copy,shutdown,mkdir (MD), RmDir (RD), ATTRIB,CD

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.