DOS Common Basic Command summary

Source: Internet
Author: User
Tags ftp telnet program
DOS Common Basic command Summary, are some commonly used commands, for want to learn DOS friend can refer to the next

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: Displays only hidden files.


/w: Displays files and folders in a compact manner (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 by
are the same as those 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 that appears as: ABCdef Ghi is


input: Cdabcdef.ghi into the directory.

The
CD is returned 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


pieces folder. Oh! )


Rd Directory Name: Deletes a specific folder.





4 CLS


clears the screen.





5 Copy


Copy path file name path filename: Copy a file to another location.





6 Move


Move path file name 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 folder and all subfolders underneath it and files, ... Don't mess with it.





9 Format


format x:: x represents a letter, formatting a partition. In DOS is the FAT file system format


, the windows2000 will ask you if you want to convert to NTFS at the time of installation.








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





Edit


actually this is a small program, edit the text file for.





Ren


ren old filename New file name: Change file name.





Two, common commands about 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 response, commonly used to do the normal network is smooth test. But the 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

A
network connection.





2 Net


suggest net/? get specific Help information. There are a lot of parameters, there are parameters under the argument

Number of
. Common: NET view host to see share, net Start/stop service to start and stop


Service, Messenger service individuals do not like.





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 the 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 then wait ... I'll see you through a routing section


point, generally larger routers, such as the main trunk of telecommunications, in addition to IP, there are English signs


's.





6 Pathping


Pathping Host: Similar to tracert, but can display a few tracert can not show out the letter


. You can try it on your own.





7 FTP


character way of FTP, I like to use; not to install CuteFTP.





8 Telnet


character way of remote login program, network personnel are extremely fond of Telnet program. I've been
a lot lately.

is used to debug mail servers.





9 Ipconfig is very useful for network configuration, debugging ... Command.


Displays the network interface status of the current machine without parameters.


/ALL First the detailed information.


/release releases the current IP.


/renew reapply for IP.


/flushdns flush the DNS cache.


/registerdns The DNS server to register itself.


。。。。。。





ARP Operations the current ARP cache.


-a displays the ARP cache.


-D Deletes a cache record.


-S Tian a cache record.





One nslookup to troubleshoot DNS errors. 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 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 partition an area in memory, and continuously read the data on the hard disk to the cache area during installation, making full use of memory.





at and task scheduling functions.


The following is a usage method that 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.




The
ID is assigned to the identified number of the scheduled command.


is used to identify tasks, such as you add several tasks, Id=1 is the first one!





/delete to delete a scheduled command. If you omit the ID,

All scheduled commands on the
computer will be deleted.


/yes do not need further confirmation, follow the deletion of all jobs


commands are used together.


time specifies when to run the command.


/interactive allows the job to run at runtime with the user who was logged in at the time


the 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.


the Windows NT command or batch program that the command is ready to run.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.