Some DOS commands

Source: Internet
Author: User

MS DOS Command Daquan

First, the basic command
1 dir
No parameters: View the files and folders that are currently in your directory.
/s: View the files and folders for which the current directory has all its subdirectories.
/A: View all files that include hidden files.
/ah: Only hidden files are displayed.
/w: Displays files and folders in a compact way (5 files on one line).
/p: Displayed as paging (automatically pausing after a page is displayed).
|more: The preceding symbol is "\" The one above, called the redirect symbol, is to put a
The result of the command is output as a parameter to another command. More is also an order, dir/w |more
The result is the same as the result of dir/w/p.
Other parameters you can use: dir/? view.

2 CD
CD Directory Name: Enter a specific directory. If you see a directory displayed as: ABCdef ghi
Input: Cdabcdef.ghi into the directory.
Cd\ back to the root directory.
Cd.. Go back to the top level directory.

3 MD Rd
MD Directory Name: Create a specific folder. (Dos under the habit called Directory, win under the custom called the text
Folder. Oh! )
RD Directory Name: Deletes a specific folder.

4 CLS
Clear the screen.

5 copy
Copy path \ filename path \ filename: Copy a file to another location.

6 move
Move path \ filename path \ filename: Move a file (cut + copy) to another
A place.

7 del
del file name: Deletes a file.
Del * *: Deletes all files under the current folder.
Del cannot delete a folder.

8 deltree
Delete the folder and all the subfolders underneath it there are also files, bad ... Don't mess with it.

9 format
Format x:: x represents the drive letter, formatting a partition. The FAT file system format is used under DOS
When Windows2000 is installed, you will be asked to convert to NTFS.

Ten type
Type text filename: Displays the contents of the text file.

Edit
In fact, this is a small program, editing text files with.

ren
ren old filename New file name: Change the file name.

Some DOS 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.