For my frequently-used doscommands, refer to frequently-used doscommands

Source: Internet
Author: User
Tags clear screen

For my frequently-used doscommands, refer to frequently-used doscommands
For the commonly used doscommands, refer to this C: \> as a prompt. The flashing crossline is called a cursor. This means that the computer is ready, waiting for us to give it a command. What we need to do now is to give commands to the computer and what the computer will do.

  • Enter time, date, and date:
  • Enter cd .. to return to the upper-level directory.
  • Enter cd \ to return the root directory.
  • Dir/p split screen
  • Dir/w width List format display
  • Enter the sub-directory and enter cd + space + sub-directory name.
  • Md (make directory -- create directory) and rd (remove directory -- delete directory ).
  • Copy the file to another drive and copy it to drive A. You can enter copy edit.com:
  • To copy all bat files under the root directory of the C drive to the zht directory, enter copy c: \ *. bat c: \ zht
  • Delete the. bat file and enter del a. bat.
  • Del *. tmp: delete all files with the tmp extension.
  • Delete all files in the current directory. The command is simple: del *. * or del ..
  • Change abc.txt to bne. dat, and then enter ren abc.txt bne. dat. Note: If you use the "ren" command to change the file name not in the current directory, the source file name and target file name must be in the same directory.
  • If you want to know the content of the abc.txt file, enter type abc.txt on the keyboard.
  • Format disk :.
  • The format of the diskcopy command is simple: diskcopy source drive name target drive name.
  • The format of the chkdsk command is: chkdsk disk name.
  • Enter sys a: At the drive C prompt to transfer the system file on drive C to drive A and create the disk in Drive A as the boot disk.
  • Use the format a:/s command to create a system disk While formatting the disk.
  • Cls clear screen.



Common doscommands

Dos method:
1. before entering windows (before the scroll bar appears), press F8 and select start in dos state. This is mainly used by computer experts, for example, do not know the system password, the password to be cracked.
2. A low-handed computer like me usually enters the system and enters cmd in the running state. The next step is a dos interface. You can enter most dos commands, except to format the C drive.
Reference: zhidao.baidu.com/...wtp=wk

Who can tell me the commonly used doscommands?

I. Dir

Displays the list of directory files and subdirectories.
You can use wildcards (? And *),? One character for a table, and * any character for a table
*. Suffix
Specifies the file whose suffix you want to view. The above can also be ". suffix", for example, dir *. exe is equal to dir. exe
/P
A list screen is displayed each time. To view the next screen, press any key on the keyboard.
/W
Display the list in wide format. A maximum of five file names or directory names can be displayed on each line.
/S
Lists the names of each specified file in a specified directory and all subdirectories. It is much faster than searching in win environment
Dir *. *-> a.txt: Write the current directory file into a.txt.
Dir *. */s-> a.txt writes the current directory file into a.txt, including the files in subdirectories.

Ii. Attrib

Display, set, or delete read-only, archived, system, and hidden attributes assigned to a file or directory. If this parameter is not included, attrib displays the attributes of all files in the current directory.
+ R
Set the read-only attribute.
-R
Clear read-only attributes.
+
Set the attributes of an archive file.
-
Clear the attributes of an archive file.
+ S
Set system properties.
-S
Clear system properties.
+ H
Set hidden attributes.
-H
Clear hidden attributes.

Iii. Cls

Clear all information displayed in the Command Prompt window, and return to the empty window, that is, "clear screen"

Iv. Exit
Exit the current command interpreter and return to the system.

V. format
Format
/Q
Execute quick formatting. Delete the file table and root directory of the previously formatted volume, but do not scan the damaged area between slices. Use the/q command line option to format only the previously formatted intact volumes.

Vi. Ipconfig
Displays all current TCP/IP network configuration values, refresh Dynamic Host Configuration Protocol (DHCP), and Domain Name System (DNS) settings. You can use ipconfig without parameters to display the IP addresses, subnet masks, and default gateways of all adapters.
/All
Displays the complete TCP/IP configuration information for all adapters.
Ipconfig is equivalent to winipcfg, which is available on ME, 98, and 95. Although Windows XP does not provide a graphical interface like the winipcfg command, you can use "network connection" to view and update IP addresses. To do this, open a network connection, right-click a network connection, click status, and then click the support tab.
This command is most suitable for computers configured to automatically obtain IP addresses. It allows you to determine which TCP/IP configuration values are configured by DHCP, automatic private IP address (APIPA), and other configurations.

VII. md
Create a directory or subdirectory

8. Move
Moves one or more files from one directory to the specified directory.

IX. Nbtstat
Displays NetBIOS statistics, NetBIOS name table, and NetBIOS name cache for local and remote computers based on the TCP/IP protocol. Nbtstat can refresh the NetBIOS name cache and the registered Windows Internet Name Service (WINS) Name. Use nbtstat without parameters to display help. The Nbtstat command line parameters are case sensitive.
-A remotename
The NetBIOS name table of the remote computer is displayed. RemoteName is the name of the remote computer NetBIOS.
-A IPAddress
The NetBIOS name table of the remote computer is displayed, which is specified by the IP address of the remote computer (separated by decimal points ).

10. Netstat ...... remaining full text>

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.