Windows Commands
Revi: 2018-03-26 12:48:00 +08 @ China-Xinjiang-Urumqi +06 Auth: BSS9395 Reso:
A a
assoc
Displays or modifies file extension associations.
B b
break
Sets or Clears Extended CTRL+C checking on DOS system.
C c
cacls
icacls
Displays or modifies access control lists (ACLs) of files. call
Calls one batch program from another. cd
Displays the name of or changes the current directory. change
chcp
Displays or sets the active code page number. chdir
Displays the name of or changes the current directory. chkdsk
Checks a disk and displays a status report. chkntfs
Displays or modifies the checking of disk at boot time. cipher
Displays or alters the encryption of directories [files] on NTFS partitions. cls
Clears the screen. cmd
Starts a new instance of the Windows command interpreter. copy
Copies one or more files to another location.
D d
date
Displays or sets the date. del
Deletes one or more files. dir
Displays a list of files and subdirectories in a directory. diskpart
driverquery
Enables an administrator to display a list of installed device drivers.
E e
echo
Displays messages, or turns command-echoing on or off. erase
Deletes one or more files. exit
Quits the CMD.EXE program (command interpreter) or the current batch script. expand
Expands one or more compressed files.
F f
fc
Compares two files or sets of files and displays the differences between them. find
Searches for a text string in a file or files. for
Runs a specified command for each file in a set of files. format
Formats a disk for use with Windows. ftp
Transfers files to and from a computer running an FTP server service (sometimes called a daemon). Ftp can be used interactively.
G g
goto
Directs cmd.exe to a labeled line in a batch program.
H h
help
Provides help information for Windows commands. hostname
Prints the name of the current host.
I i
icacls
if
Performs conditional processing in batch programs. ipconfig
/flushdns
J j
K k
L l
logoff
Terminates a session. lpr
Sends a print job to a network printer.
M m
md
Creates a directory. mklink
Creates a symbolic link. more
Displays output one screen at a time. mount
move
Moves files and renames files and directories. msg
Send a message to a user.
N n
net
netcfg
netsh
netstat
Displays protocol statistics and current TCP/IP network connections. nslookup
O o
P p
pathping
pause
Suspends processing of a batch program and displays the message. ping
powercfg
Enables users to control power settings on a local system.
Q q
query
R r
recover
Recovers readable information from a bad or defective disk. reg
rename
Renames a file or files. replace
Replaces files. reset
rmdir
Removes (deletes) a directory. route
Manipulates network routing tables.
S s
set
Displays, sets, or removes cmd.exe environment variables. sfc
Scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions. shutdown
sort
start
Starts a separate window to run a specified program or command. systeminfo
This tool displays operating system configuration information for a local or remote machine, including service pack levels.
T t
taskkill
This tool is used to terminate tasks by process id (PID) or image name. tasklist
This tool displays a list of currently running processes on either a local or remote machine. telnet
tftp
Transfers files to and from a remote computer running the TFTP service. time
Displays or sets the system time. timeout
This utility accepts a timeout parameter to wait for the specified time period (in seconds) or until any key is pressed. It also accepts a parameter to ignore the key press. tracerpt
tracert
tree
Graphically displays the folder structure of a drive or path. tskill
Ends a process. type
Displays the contents of a text file or files.
U u
umount
V v
ver
Displays the Windows version. verify
Tells cmd.exe whether to verify that your files are written correctly to a disk. vol
Displays the disk volume label and serial number, if they exist.
W w
waitfor
where
Displays the location of files that match the search pattern. By default, the search is done along the current directory and in the paths specified by the PATH environment variable.
X x
Y y
Z z