100 cmd commands commonly used under Windows and common operations

Source: Internet
Author: User
Tags nslookup disk defragmenter

100 cmd commands commonly used under Windows and 100 cmd commands commonly used for common operations
  1. gpedit.msc-– Group Policy

    2. Sndrec32 ——-Recorder

    3. Nslookup ——-IP Address Detector is a command-line tool that monitors whether DNS servers in a network can correctly implement domain name resolution. It can be used in Windows NT/2000/XP, but it is not integrated in Windows 98.

    4. Explorer ——-Open Explorer

    5. Logoff ——— Logout command

    6. Shutdown ——-60 seconds Countdown shutdown command

    7. lusrmgr.msc--Native Users and Groups

    8. services.msc-Local Service settings

    9. oobe/msoobe/a--Check if XP is active

    Ten. notepad--– Open Notepad

    cleanmgr ——-Waste Finishing

    . net start messenger--start Messenger Service

    compmgmt.msc-Computer Management

    . net stop messenger-– stop messenger Service

    Conf ——— – Start NetMeeting

    Dvdplay--–dvd player

    charmap--– Start character mapping table

    diskmgmt.msc-Disk Management Utility

    Calc ——— – Start Calculator

    Dfrg.msc ——-Disk Defragmenter

    Chkdsk.exe-–chkdsk disk Check

    devmgmt.msc-Device Manager

    regsvr32/u *.dll--Stop DLL file run

    drwtsn32--System Doctor

    Rononce-p--15 seconds off

    DxDiag ——— checking DirectX information

    Regedt32 ——-Registry Editor

    msconfig.exe-System Configuration Utility

    Rsop.msc. ——-Group Policy Result set

    mem.exe--– showing memory usage

    regedit.exe--Registration Form

    WINCHAT--–XP self-brought LAN chat

    progman--– Program Manager

    WINMSD ——— System Information

    perfmon.msc--Computer Performance Monitoring Program

    Winver ——— Check the Windows version

    sfc/scannow-– Scan error and restore

    taskmgr-– Task Manager (2000/xp/2003

    Winver ——— Check the Windows version

    wmimgmt.msc--Opening Windows Management Architecture (WMI)

    Wupdmgr--–windows. Update program

    Wscript--–windows Script Host Settings

    . Write ———-WordPad

    WINMSD ——— System Information

    Wiaacmgr ——-Scanner and Camera Wizard

    WINCHAT--–XP self-band LAN Chat

    mem.exe--– Display Memory usage

    msconfig.exe-System Configuration Utility

    Mplayer2 ——-Easy widnows Media Player

    mspaint--– drawing board

    Wuyi mstsc ———-Remote Desktop Connection

    Mplayer2 ——-Media Player

    magnify--– Magnifier Utility

    The. MMC ———— Open the console

    mobsync--– Synchronous Command

    DxDiag ——— checking DirectX information

    IExpress ——-Trojan Bundle tool, System comes with 58. fsmgmt.msc-– shared Folder Manager

    utilman--– Utility Manager

    diskmgmt.msc-Disk Management Utility

    DCOMCNFG ——-Open System Component Services

    DdeShare ——-turn on DDE sharing settings

    OSK ———— Open the On-screen keyboard

    ODBCAD32 ——-ODBC Data Source Administrator

    oobe/msoobe/a--Check if XP is active 114. Logoff ——— Logoff command

    notepad--– Open Notepad

    Nslookup. Tool Wizard for ——-network management

    . ntbackup ——-system backup and restore

    Narrator ——-Screen Narrator

    ntmsmgr.msc--Mobile Storage Manager

    ntmsoprq.msc-Mobile Storage Administrator Action Request

    netstat-an--(TC) command Check interface

    syncapp--–. Create a Briefcase

    sysedit--– System Configuration Editor

    Sigverif. ——-File Signature Validator

    ciadv.msc--Indexing Service Program

    shrpubw--–. Create a shared folder

    secpol.msc-– Local Security Policy

    Syskey ——— system encryption, once encrypted can not be solved, to protect the Windows XP system dual Password

    services.msc-Local Service settings

    Bayi. Sndvol32 ——-Volume Control program

    sfc.exe--– System File Checker

    Save. Sfc/scannow-windows File Protection

    ciadv.msc--Indexing Service Program

    About TOURSTART--XP (roaming XP programs that appear after installation is complete)

    taskmgr--– Task Manager

    EVENTVWR ——-Event Viewer

    Eudcedit ——-Character-font procedure

    compmgmt.msc-Computer Management

    Packager ——-Object Wrapping Program

    perfmon.msc--Computer Performance Monitoring Program

    charmap--–. Start Character mapping table

    CLICONFG ——-SQL SERVER Client Network Utility

    94. clipbrd--– Clipboard Viewer

    Conf ——— – Start NetMeeting

    certmgr.msc--Certificate Management Utility

    regsvr32/u. *.dll--Stop DLL file run

    98. regsvr32/u zipfldr.dll--Cancel Zip support

    Cmd.exe--–cmd Command Prompt

    Chkdsk.exe-–chkdsk disk Check
     

Disk operations

Fdisk implicit parameter/mbr rebuild Master boot record fdisk/mbr rebuild master boot Record
 
Fdisk adds the/CMBR parameter after DOS7.0, which rebuilds the master boot record for the subsequent hard drive when multiple physical hard disks are hooked up, such as: Fdisk/cmbr 2, which overrides the master boot record for the second hard drive. (Be very careful when using, avoid the bad drive boot record damage)
  
Format parameter:/q Quick Format/u non-recoverable/autotest do not prompt/s to create MS-DOS boot disk format c:/q/u/autotest

Directory Operations

Dir [directory name or file name] [/s][/w][/p][/a] List directory parameter:/s find subdirectory/w only show file name/P page/a show hidden file DIR format.exe/s find Format.exe file for the disk and report location

MD (MKDIR) [directory name] Create directory MKDIR HELLOWORLD create HELLOWORLD Directory
  
CD (CHDIR) [directory name] PS: You can use relative directory or absolute directory to enter directory CD AA to enter the current folder under the AA directory, CD. Go to the previous folder CD \ Return to the root directory; CD C:\Windows into the C:\Windows folder

RD (RMDIR) [directory name] Delete Directory rd HELLOWORLD Delete HELLOWORLD directory

File operations

Delete directory and its files: rmdir [directory name or file name] [/s][/w][/p][/a]. Example RmDir c:\qqdownload/s Delete the Qqdownload directory for C-drives.
del [directory name or file name] [/f][/s][/q] Delete parameter:/F Delete read-only file/s delete the directory and all content under it Q/A does not confirm before deleting
Del c:\del/s/q automatically deletes the Del directory of the C drive.
copy [source file or directory] [target directory] copies files copy d:\pwin98*.* c:\presetup Copies all the files of the D disk Pwin98 to the presetup of the C drive.
attrib [parameters] [source file or directory] File properties action command, attrib command can list or modify the properties of files on disk, file attributes include document (A), read-only (R), Hidden (H), System (S), for example: Attrib-h-r-s io.sys execute this command, will be the DOS system files Io.sys file read-only, hidden, system attributes are removed, this will be able to directly through the dir command to see the Io.sys file. attrib +h +r +s autoexec.bat will add the above attributes for the automatic batch file.

Memory operations

Debug Debugging Memory parameter-w [filename] write binary-o [address 1] [address 2] Output memory-Q exit Exp:o 10[return] O 71 01
[Return] 01[return] Q[return] DOS Change the value of the BIOS password in the corresponding location in the CMOS by writing 70H/71H Port to clear the award BIOS password. Debug can also crack the hard disk protection card, etc., However, it can only be used under pure DOS.

Partitioning operations

Partitioning a disk is typically divided into four partitions, which consist of a primary partition, an extended partition, and a logical partition.
Both PQ and Acronis disk Director can be used to resize partitions without losing data, as well as merge operations such as the XP system, where you use the PQ,WIN7 system to operate essentially the same way as Acronis disk director. can go online to find tutorials to see, do not re-install the system can adjust the size of the partition, but it is recommended that you back up the data and then adjust, after all, the direct operation of the hard disk is a certain risk.

Other operations
NetUse ipipc$ ""/user: "" establishing an IPC NULL linkNetUse ipipc$ "password"/user: "username" to establish IPC non-null linkNetUse h:ipc$ "password"/user: "username" directly after the login map the other side C: to the local H:NetUse h:ipc$ to map each other after landing C: to local for H:NetUse ipipc$/delRemove IPC LinkNetUse h:/delDelete mappings for H: mapped to localNetUser username password/add set up usersNetUser Guest/active:yes activating Guest userNetUser to see which users areNetUser account name View properties for accountNetLocalGroup Administrators user name/add Add "user" to the administrator to have administrator privilegesNetStart to see which services are turned onNetStart Service name Open service (e.g.:NetStart Telnet,NetStart schedule)NetStop service name stops a serviceNetTime Target IP View offsetNetTime Destination IP/SetSet the local computer time to synchronize with the "Destination IP" host, plus the parameter/yes to cancel the confirmation messageNetView to see which shares are open in the local LANNetView IP to see which shares are turned on in the other LANNetConfig Display system network settingsNetLogoff disconnected sharingNet PauseService name pauses a serviceNetSend IP "text message" message to each otherNetThe type and information of the network connection being used in the Ver LANNetShare viewing locally-enabled sharesNetShare ipc$ Open ipc$ shareNetShare ipc$/delDelete ipc$ ShareNetShare C $/delRemove C: ShareNetUser Guest12345Use the Guest user login to change the password to12345    NetPassword Password change system login password netstat-a See what ports are open, common Netstat-an netstat-n View the network connection of the port, common Netstat-an netstat-v view the work in progress nets TAT-P protocol Name Example: Netstat-p tcq/ip View a protocol Usage netstat-s view all protocol usage in use NBTSTAT-A IP partner136To139If one of the ports is open, you can see the user name tracert-parameter IP (or computer name) tracking route (packet), Parameter: "-W number" is used to set the time-out interval.PingIP (or domain name) sends the default size to the other host +bytes of data, parameters: "-l[space" packet size ";"-N Send data Number ";"-T "means alwaysPing。Ping-t-l65550The death of IPPing(Send greater than -K's file and has beenPingIs the death of thePing)ipconfig(WINIPCFG) for Windows NT and XP (Windows the 98) to view the local IP address,ipconfigThe available parameters "/all" Display all configuration information tlist-t the tree row table shows the process (for system add-ons, which is not installed by default, within the Support/tools folder of the installation directory) kill-f process name plus the-f parameter forces the end of a process (for the system's additional tools, Default is not installed, within the Support/tools folder of the installation directory)del-F file name plus-F parameter can delete read-only files,/ar,/ah,/as,/aa respectively means to delete read-only, hidden, system, archive files,/a-r,/a-h,/a-s,/a-a means to delete files except read-only, hidden, system, archive. For exampleDEL/ar * * "means to delete all read-only files under the current directory,"DEL/a-s * * "means to delete all files except system files in the current directorydel/s/q directory or use: rmdir/s/q directory/S to delete all subdirectories and files under directories and directories. Use the parameter/q at the same time to cancel the system confirmation when the delete operation is deleted directly. (two commands are the same) the move drive letter path to move the file name of the files moved after moving the file name to move files, with the parameter/y will cancel to confirm that the mobile directory exists with the same file prompt is directly covered FC One.txt Two.txt >3St.txt compare two files and output the differences to3St.txt file, ">" and "> >" are redirect commands at ID number to open a scheduled task that has been registered At/delete stop all scheduled tasks, use the parameter/yes to stop the at ID number directly without confirmation/delete stop a registered Scheduled tasks at view all scheduled tasks at IP time program name (or a command)/R run the other program at some point and restart the computer finger username @host See which users have recently logged on to the Telnet IP port far away and the login server, The default port is atThe open IP is connected to the IP (the command after Telnet) Telnet on this machine directly type telnet into the native TelnetCopyPath file name1Path file name2/y Copying files1To the specified directory for the file2, using the parameter/y to cancel the confirmation you want to rewrite an existing directory fileCopyC:srv.exe ipadmin$ Copy Local c:srv.exe to each other under adminCopy 1st.jpg/b+2st.txt/a3St.jpg will2St.txt's content to hide to1Generated in st.jpg3St.jpg new documents, note:2St.txt file header to empty three rows, parameters:/b refers to the binary file,/a refers to the ASCLL format fileCopyIpadmin$svv.exe c: Or: copyipadmin$*.* Copy the Srv.exe file (all files) under admini$ share to local C:xcopyTo copy a file or directory tree destination address directory name copy files and directory tree, with the parameter/y will not prompt overwrite the same file with the parameter/E to be able to copy the subdirectories under the directory together to the destination address. Tftp-i own IP (using meat machine as a springboard when this with meat machine IP) Get Server.exec:server.exe login, the "IP" server.exe download to the target host C:server.exe parameters:-I refers to the binary mode of transmission, If the exe file is used, if not plus-I is transmitted in ASCII mode (transfer text file mode) tftp-i the other IP put C:server.exe login, upload the local c:server.exe to the host FTP IP port to upload files to the server or file operation, the default port is +。 Bin refers to the binary mode (executable file), the default is the ASCII format (text file) route print shows the IP route, will mainly display network address addres, subnet mask netmask, gateway address gateways Addres , interface address interface ARP to view and process ARP cache, ARP is the meaning of name resolution, responsible for the resolution of an IP to a physical MAC address. ARP-A will show all information Start program name or command/max or/min open a new window and maximize (minimize) run a program or command mem View CPU usage attrib file name (directory name) view the properties of a Files (directory) attrib file name -a-r-s-h or +a +r +s +h Remove (add) a file of the archive, read-only, system, hidden properties; + is added as a propertydirView files, Parameters:/q Display files and directories belonging to the system which user,/T:C display file creation time,/t:a show the last time the file was accessed,/t:w last modified time date/t, time/t use this parameter namely "date/t", "time/t" Displays only the current date and time, without having to enter a new date and timeSetSpecify environment variable name = character to assign to variable set environment variableSetShow all current environment variablesSetP (or other character) displays all environment variables currently starting with the character P (or other characters)PausePause the batch process and display: Press any key to continue ....ifPerform conditional processing in a batch program (more instructions seeifCommands and variables)GotoThe label directs the Cmd.exe to a labeled row in the batch program (the label must be a single line, preceded by a colon, for example: ": Start" label)PagerThe path batch file name calls another batch program from the batch program (for more instructions seePager/?) forExecute a specific command for each file in a set of files (more instructions see forCommands and variables)EchoOn or off turn on or offEcho, with onlyEchoWithout arguments, displays the currentEchoSet upEchoInformation displayed on the screenEchoInfo >> pass.txt Save "info" to pass.txt file findstr "Hello" aa.txt find string in aa.txt file Hello find filename find a file title title name change CMD window label The name color value sets the cmd console foreground and background color;0= Black,1= Blue,2= Green,3= Light green,4= Red,5= Violet,6= Yellow,7= White,8= Gray,9= Blue, a=, b= light green, c= red, d= light purple, e= yellow, f= bright white prompt name change cmd.exe display command prompt (C:, D: Unified to: Entsky) ver display version information in DOS window winver popup a window display version This information (memory size, system version, patch version, computer name) format drive letter/fs: Type formatted disk, type: FAT, FAT32, NTFS, Example: Format D:/fs:ntfs MD Directory name create directory replace source file Record Replacement fileRenOriginal filename new file name rename filename tree displays the directory in a tree structure, with the parameter-F listing the file name in the first folder type filename Displays the contents of the text file more file name screen output file Doskey to lock the command = character Doskey to unlock Command = Lock command provided for DOS (Edit command line, Recall Win2K command, and create macro). such as: LockdirCommand: Doskeydir=entsky (Cannot use Doskeydir=dir); Unlock: Doskeydir= Taskmgr Call up Task Manager chkdsk/f D: Check disk D and Display status report, add parameter/F and repair error on disk tlntadmn telnt service admn, type tlntadmn selection3, and then select8, you can change the Telnet service default port atFor any other portExitTo exit the Cmd.exe program or currently, use the parameter/b to exit the current batch script instead of the Cmd.exe path executable file name to set a path for the executable file. CMD launches a Win2K command Interpretation window.  Parameters:/eff,/en Close, open command extension, more details see CMD/? REGEDIT/S registry file name import registry; parameter/s refers to quiet mode import without any hint; regedit/e registry file name Export Registry cacls FileName parameter displays or modifies file access control lists (ACLs)-when in NTFS format. Parameter:/d Username: Set deny user access;/p user name: Perm Replace the access rights of the specified user;/g user name: Perm gives the specified user access; Perm can be: N None, R read, W write, C Change (write), F Full Control; Example: cacls d:es  T.TXT/D pub set D:est.txt deny pub user access. cacls file name to view a list of Access user rights for filesREM Text content add annotations to a batch fileNetsh view or change the configuration of the local network

100 cmd commands commonly used under Windows and common operations

Related Article

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.