DOS Common Basic Command Summary _dos/bat

Source: Internet
Author: User
Tags telnet program

First, the basic command

1 dir
No parameters: View files and folders in the current directory.
/s: View files and folders for which the current directory already has all subdirectories.
/A: View all files that include hidden files.
/ah: Only the implied file is displayed.
/w: Displays files and folders in a compact manner (displaying 5 files in one row).
/P: Appears as paging (automatically paused after a page is displayed).
|more: The preceding symbol is the one above "\", called the redirection symbol, which is to put a
The result of the command is output as an argument to another command. More is also an order, dir/w |more
The results obtained are the same as those of dir/w/p.
Other parameters you can use: dir/? view.

2 CD
CD directory Name: Go to a specific directory. If you see a directory that is displayed as: ABCdef ghi
Input: Cdabcdef.ghi into the directory.
Cd\ back to the root directory.
Cd.. Back to the previous level of the directory.

3 MD Rd
MD Directory Name: Create a specific folder. (Dos below the custom called the catalogue, win below custom is called the text
Clips. Oh! )
RD Directory Name: Deletes a specific folder.

4 CLS
Clears the screen.

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

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

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

8 deltree
Delete the folder and all the subfolders underneath it and the files. Don't mess with it.

9 format
Format x:: x represents the letter, formatting a partition. The FAT file system format is used in DOS
, the Windows2000 will ask you if you want to convert to NTFS when installing.

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

One edit
In fact, this is a small program, editing text files used.

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

Ii. common commands on the network
1 Ping
Ping host IP or first name: Send 4 ICMP packets to the target host to test if the host is receiving
To and respond to, commonly used to do the normal network is smooth test. But ping different does not represent the net
It is possible that the target host has a firewall and has blocked the ICMP response.
PING-T: Keep sending packets. Of course they're small, not called attacks. Some people write their own
A number of programs that are similar to the ping command, sending large packets to block the target host
's network connection.

2 Net
The suggestion is to use net/? To get specific help information. There are many parameters, there are parameters below
Number. Common: NET view \ Host view share, net Start/stop service to start and stop
Stop service, Messenger service personally don't like it.

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

4 nbtstat
Nbtstat host: View NetBIOS name used by the host.

5 tracert
Tracert host: Look through the paths from your own to the target machine. Such as:
Tracert www.ncie.gov.cn and wait ... You'll see the routing section that you go through.
Points, generally larger routers, such as the main trunk of telecommunications, in addition to IP, there are English signs
Of

6 Pathping
Pathping Host: Similar to tracert, but can show some tracert can't show out the letter
Interest. You can try it on your own.

7 FTP
Character way of FTP, I like to use; don't pretend cuteftp.

8 Telnet
Character Way Telnet program, is the network personnel extremely loves the remote login program. I have recently used
Used to debug the mail server.

9 Ipconfig is very useful for network configuration, scheduling error ... Command.
Displays the network interface status of the current machine without parameters.
/ALL first the detailed information.
/release releases the current IP.
/renew to reapply for IP.
/FLUSHDNS flush the DNS cache.
/registerdns the DNS server to register itself.
。。。。。。

The ARP operation is the current ARP cache.
-a displays the ARP cache.
-D Deletes a cache record.
-S-Tian a cache record.

One by one nslookup troubleshoot the DNS error weapon. is an interactive tool. Before using, please try to understand the role of DNS and how DNS works.

xcopy is an external command, that is to say, is a small program, sometimes you will find that the floppy disk is not on the hard disk ... Faint... Of course the courage to make it better than copy, I like to add/e parameters.
Smartdrv.exe load the disk cache, the parameter is the size of the cache, in kilobytes.
such as: Smartdrv 32768 is the load 32M cache.
The role of caching is obvious when you install Win2K! No cache installed Win2K Pro to 3 hours or so, after loading 8M cache, only 30 minutes.
The principle is to divide the area in memory, and constantly read the data on the hard disk to the cache area during installation, making full use of memory.

At and task scheduling functions.
Here's how to use it, you can get help by typing at the command prompt: at/?

The AT command schedules commands and programs to run at a specific date and time.
To use the AT command, the scheduling service must already be running.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at [\\computername] [[ID] [/delete] |/delete [/YES]]
at [\\computername] time [/interactive]
[/every:date[,...] |/next:date[,...]] "Command"

\\COMPUTERNAME Specifies the remote computer. If this argument is omitted, the command is scheduled to run on the local computer.
\\127.0.0.1 represents this machine. It's the same as not adding this parameter.

ID to the identification number assigned to the scheduled command.
To identify tasks, such as how many tasks you want to add, id=1 on behalf of the first one!

/delete deletes a scheduled command. If you omit an ID,
All scheduled commands on the computer are deleted.
/yes do not need further confirmation, follow the deletion of all jobs
commands to use together.
TIME specifies when to run the command.
/interactive allows the job at run time with the user logged in at the time
Desktop for interaction.
/every:date[,...] Run the command every month or week on a specified date.
If the date is omitted, the default is to run on the current day of the month.
/next:date[,...] Specifies that the command be run on the next specified date (for example, next Thursday).
If the date is omitted, the default is to run on the current day of the month.
A Windows NT command or batch program that "command" prepares to run.

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.