Ms dos command Daquan

Source: Internet
Author: User
Ms dos command Daquan

I. Basic commands
1 dir
No parameter: view the files and folders in the current directory.
/S: view all the files and folders in the current directory.
/A: view all files including hidden files.
/AH: Only hidden files are displayed.
/W: displays files and folders in a compact manner (five files are displayed in one row.
/P: displayed by PAGE (the page is automatically paused after the page is displayed.
| More: the symbol above is "\", which is called a redirection symbol.
The command output is a parameter of another command. More is also a command, DIR/w | more
The result is the same as that of DIR/W/P.
Other parameters can be used: Dir /? View.

2 cd
CD directory name: enter a specific directory. If a directory is displayed as abcdef ghi
Enter: cdabcdef. Ghi to enter the directory.
CD \ returned to the root directory.
CD .. return to the upper-level directory.

3 md Rd
MD directory name: create a specific folder. (DOS is used to the directory, and win is used to the text
Folder. Haha !)
Rd directory name: delete a specific folder.

4 CLS
Clear the screen.

5 copy
Copy path \ file name: copy one file to another.

6 move
Move path \ file name: Move a file (that is, cut + copy) to another
A place.

7 del
Del file name: delete an object.
Del *. *: delete all files in the current folder.
Del cannot delete folders.

8 deltree
Delete a folder and all its subfolders and files... Do not use it indiscriminately.

9 format
Format X: X indicates the drive letter. Format a partition. In dos, the fat file system format is used.
During Windows installation, you will be asked if you want to convert to NTFS.

10 type
Type text file name: displays the content of the text file.

11 Edit
In fact, this is a small program used to edit text files.

12 Ren
Old Ren file name New File Name: Change the file name.

2. Common network commands
1 Ping
Ping the Host IP address or name: Send four ICMP packets to the target host to test whether the host receives
Arrival and response, usually used for testing whether the common network is smooth. However, ping does not mean that
The target host may have a firewall installed and the ICMP response is blocked.
Ping-T: continuously send packets. Of course, they are very small and cannot be called attacks. Some write by themselves
Some programs similar to the ping command keep sending large data packets to block the target host.
.

2 Net
We recommend using net /? Obtain the help information. There are many parameters.
Number. Commonly used: Net view \ host to View Sharing, Net start/stop service to start and stop
The messenger service is not a favorite of individuals.

3 netstat
Netstat HOST: view the current TCP/IP connection status of the host, such as the port status.

4 NBTSTAT
Nbtstat host: view the NetBIOS name used by the host.

5 tracert
Tracert HOST: Check the paths from yourself to the target machine by machine. For example:
Tracert www.ncie.gov.cn and then wait... You will see the route segments you have passed
Point. Generally, larger routers, such as the backbone router of China Telecom, all have English labels except IP addresses.
.

6 pathping
Pathping HOST: similar to tracert, but it can display messages that cannot be displayed by tracert
. You can try it on your own.

7. FTP
I like FTP in character mode.) No need to install CuteFTP.

8 Telnet
Character-based remote logon program is a remote logon program that is extremely popular among network personnel. I have been
Used to debug the email server.

9 ipconfig is very useful for network configuration and troubleshooting... Command.
The network interface status of the current machine is displayed without parameters.
/All is the first detailed information.
/Release the current IP address.
/Renew apply for an IP address again.
/Flushdns refresh the DNS cache.
/Registerdns re-planted the DNS server to register itself.
......

10 ARP: The current ARP cache.
-A: displays the ARP cache.
-D. delete a cache record.
-S Tianjia has a cache record.

11 NSLookup is a powerful tool to eliminate DNS errors. Is an interactive tool. Before using DNS, please try to find out the role of DNS and the working principle of DNS.

Xcopy is an external command. That is to say, it is a small program. Sometimes it is found that there is no floppy disk or hard disk... Fainting... Of course, I have the courage to make it easier to use than copy. I like to add the/e parameter.
Smartdrv.exe loads the disk cache. The parameter indicates the cache size, in KB.
For example, smartdrv 32768 is used to load the 32 m cache.
The Caching function is very obvious when you install Win2k! It takes about three hours to install Win2k pro without caching. After loading 8 MB of cache, it takes only 30 minutes.
The principle is to divide an area in the memory. During the installation, the data on the hard disk is constantly read into that cache area, making full use of the memory.

At works the same as the task scheduler.
You can enter at/? In the command prompt /? For help.

The at command is scheduled to run commands and programs on a specific date and time.
To use the AT command, the scheduler service must be running.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At [\ computername] [[ID] [/delete] |/Delete [/Yes]
At [\ computername] time [/interactive]
[/Every: Date [,...] |/next: Date [,...] "command"

\ Computername specifies the remote computer. If this parameter is omitted, the command is scheduled to run on the local computer.
\ 127.0.0.1 represents the local machine. This parameter is the same as that without this parameter.

ID: ID of the scheduled command.
Used to identify tasks. For example, if you want to add several tasks, id = 1 indicates the first task!

/Delete: delete a scheduled command. If the ID is omitted,
All scheduled commands on the computer will be deleted.
/Yes. If you do not need further confirmation, delete all jobs.
.
Time specifies the time when the command is run.
/Interactive allows the job to run with the logged-on user
Desktop interaction.
/Every: Date [,...] Run the command on the specified date every month or every week.
If the date is omitted, the task runs on the current day of each month by default.
/Next: Date [,...] specifies to run the command on the next specified date (for example, next Thursday.
If the date is omitted, the task runs on the current day of each month by default.
"Command" is the Windows NT command or batch processing program to be run.

Ms dos command Daquan ()

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.