Common cmd commands

Source: Internet
Author: User

See how much memory your PC supports: wmic memphysical get maxcapacity

 Querying DNS:    nslookup a.root-servers.net Routing Line:    tracert Run Box Input: msinfo32 (view native details)services.msc (direct access to the list of services)msconfig (Configure boot-up service entry and boot-up system)     

The following are common DOS commands and run commands:

Start with a simple Run command: Shortcut key Win+r (both the Run box and the DOS Black window are available)

command Tool words

  1. Calc Open Calculator (Calculator)

  2. MSPaint Open Drawing Tool (Microsoftpaint)

  3. CMD Open dos terminal (Directory Operating System)

  4. Control opens the dashboard (control is the meaning of controls)

  5. Notepad Open Notepad (Notepad is the meaning of Notepad)

  6. Cleanmgr Open Disk Cleanup

  7. Dvdplay Open Media Center

  8. Snippingtool Tools

  9. Regedit Open Registry

  10. Services.msc Opening a service item (you can enable services such as shutting down the firewall)

  11. Devmgmt.msc Open Device Manager (view CPU graphics model, etc.) (devicemanagement)

  12. Msconfig.msc Opening the System configuration (microsoftconfiguration)

DOS commands are described below:

Open DOS window: win+r input cmd Enter or win+x+c (this is a normal user) Win+x+a (is Administrator)

or, hold down shift in the directory, right-click (Open a command window here) such as: "Win7/win8 applies"

  1. D: Enter switch to D drive (of course can make C D E F random)

  2. Dir enter shows which files and folders are in the current directory (folder or drive letter)

  3. MD AA return create a folder named AA (AA casual), makedirectory

  4. RD AA Carriage return removes the folder named AA in the current directory (this folder must be empty)

  5. rd/s AA Enter delete AA directory, inside can have file (need to enter Y or N confirmation)

  6. RD/S/q AA Enter to delete the AA directory, inside can have something (without prompting to delete directly)

  7. The path of the CD (where the path can be single-level or multilevel, multi-level with \ Separated but must be on the same disk) to switch directories (change directory) For example: I am currently on the D drive, CD Linux\centos then I will reach the CentOS file under the Linux folder under D disk Clamp down. When you only know the beginning of the path can press the TAB key to complete the path, you can also use * instead, such as CD lin*

  8. CD: Enter returns to the previous level directory. CD and. There can be spaces or no

  9. Cd\ return to the root directory, that is, under the drive letter, not under the folder can be/also can \

  10. Del A.txt Enter to delete the A.txt file for the current directory.

  11. Del *.txt enter deletes all txt files under the current folder, * represents the wildcard character.

  12. CLS returns clear all DOS window information.

  13. Exit Enter the DOS window.

  14. Ping www.baidu.com (can be a domain name can also be an IP address) test whether to connect, also can see open speed.

  15. ipconfig view native IP

  16. Help + command View the use of this command or command/? For example ipconfig/? (other usage see not used by yourself)

  17. Ipconfig/all View all IP configuration information, including MAC address host name

  18. Set path View system environment variable (this is the key to open Notepad in any directory in DOS window input Notepad, of course, you can also put your QQ and other software installation directory into the path, such as E:\Program Files (x86) \tencent \qq\bin), after joining the path directly in the Run window directly into QQ can open QQ program. Where do you change it specifically? Right-click Computer--Properties--Advanced system settings--environment variables--Find path--edit under the system environment variable--add E:\Program Files (x86) \tencent\qq\bin under variable values, (don't drop the semicolon)-ok-OK. (The configuration QQ does not make sense, the JDK uses the Java_home to add the environment variable only to be meaningful)

  19. Sfc/scannow scans the integrity of the system files and repairs the problematic files as much as possible. SFC/? View Help.

This is almost the same, the basic is these commonly used.


     



From for notes (Wiz)



Common cmd 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.