You are on page 1of 13

CMD

Learn The commands of


CMD

A
1-First of all what is the CMD ?
It is a Command prompt that helps you to contact with the computer 🖥 directly

also it used by hackers .

2-How can we access the CMD ?


1-We can reach it by pressed (windowl+r ) and write the cmd in the box that’s showed after
pressed.

2-we write the cmd in the box of searching.

This is picture of the CMD

B
Commands of CMD
.ASSOC Displays or modifies file extension associations

.ATTRIB Displays or changes file attributes

.BREAK Sets or clears extended CTRL+C checking

.BCDEDIT Sets properties in boot database to control boot loading

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

.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

.CLS Clears the screen

.CMD Starts a new instance of the Windows command interpreter

.COLOR Sets the default console foreground and background colors

.COMP Compares the contents of two files or sets of files

.COMPACT Displays or alters the compression of files on NTFS partitions

CONVERT Converts FAT volumes to NTFS. You cannot convert the

.current drive

.COPY Copies one or more files to another location

.DATE Displays or sets the date

.DEL Deletes one or more files

.DIR Displays a list of files and subdirectories in a directory

.DISKPART Displays or configures Disk Partition properties

DOSKEY Edits command lines, recalls Windows commands, and

.creates macros

.DRIVERQUERY Displays current device driver status and properties

.ECHO Displays messages, or turns command echoing on or off

.ENDLOCAL Ends localization of environment changes in a batch file

.ERASE Deletes one or more files

.EXIT Quits the CMD.EXE program (command interpreter)

C
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

.FINDSTR Searches for strings in files

.FOR Runs a specified command for each file in a set of files

.FORMAT Formats a disk for use with Windows

.FSUTIL Displays or configures the file system properties

FTYPE Displays or modifies file types used in file extension

.associations

GOTO Directs the Windows command interpreter to a labeled line in

.a batch program

.GPRESULT Displays Group Policy information for machine or user

GRAFTABL Enables Windows to display an extended character set in

.graphics mode

.HELP Provides Help information for Windows commands

ICACLS Display, modify, backup, or restore ACLs for files and

.directories

.IF Performs conditional processing in batch programs

.LABEL Creates, changes, or deletes the volume label of a disk

.MD Creates a directory

.MKDIR Creates a directory

MKLINK Creates Symbolic Links and Hard Links

.MODE Configures a system device

.MORE Displays output one screen at a time

MOVE Moves one or more files from one directory to another

.directory

.OPENFILES Displays files opened by remote users for a file share

.PATH Displays or sets a search path for executable files

.PAUSE Suspends processing of a batch file and displays a message

POPD Restores the previous value of the current directory saved by

.PUSHD

D
.PRINT Prints a text file

.PROMPT Changes the Windows command prompt

.PUSHD Saves the current directory then changes it

.RD Removes a directory

.RECOVER Recovers readable information from a bad or defective disk

.REM Records comments (remarks) in batch files or CONFIG.SYS

.REN Renames a file or files

.RENAME Renames a file or files

.REPLACE Replaces files

.RMDIR Removes a directory

ROBOCOPY Advanced utility to copy files and directory trees

.SET Displays, sets, or removes Windows environment variables

.SETLOCAL Begins localization of environment changes in a batch file

.SC Displays or configures services (background processes)

.SCHTASKS Schedules commands and programs to run on a computer

.SHIFT Shifts the position of replaceable parameters in batch files

.SHUTDOWN Allows proper local or remote shutdown of machine

.SORT Sorts input

.START Starts a separate window to run a specified program or command

.SUBST Associates a path with a drive letter

.SYSTEMINFO Displays machine specific properties and configuration

.TASKLIST Displays all currently running tasks including services

.TASKKILL Kill or stop a running process or application

.TIME Displays or sets the system time

.TITLE Sets the window title for a CMD.EXE session

TREE Graphically displays the directory structure of a drive or

.path

.TYPE Displays the contents of a text file

.VER Displays the Windows version

VERIFY Tells Windows whether to verify that your files are written

.correctly to a disk

E
.VOL Displays a disk volume label and serial number

.XCOPY Copies files and directory trees

WMIC Displays WMI information inside interactive command shell.

All these commands shows when you write command( help).


Netsh show all wlan gives information about all wlan that is near

Atmadm Display connection info of the ATM adapter.


At Run a command at a specific time.

Arp Address Resolution Protocol is used to map IP address to the hardware

Address.

bcdboot Used to create and repair a system partition

Used to manage the Background Intelligent Transfer


bitsadmin Service

bootcfg Used to edit boot configuration in Windows

driverquery Display a list of installed device drivers.

View and edit access control entries for objects in


dsacls active directory.

dsadd Used to add objects to active directory.

dsget View objects in active directory.

dsquery Find objects in an active directory.

dsmod Used to modify objects in an active directory.

dsmove Rename or move an active directory object.

dsrm Remove objects from an active directory.

Manage Active Directory Lightweight Directory


dsmgmt Services

Add custom event to Windows event log (Admin


eventcreate rights required).

F
Display list of events and their properties from event
eventquery logs.

Display and configure event triggers on local and


eventtriggers remote machines.

expand Uncompress one or more .CAB file(s)

explorer Open Windows Explorer.

extract Uncompress one or more Windows cabinet file(s)

findstr Used to find string patterns in files.

freedisk Used to check free space on a disk.

File system utility to manage file and drive


fsutil properties.

Use FTP service to transfer files from one PC to


ftp another.

Update local and active directory based on group


gpupdate policy settings.

hostname Used to display hostname of the computer.

iexpress Used to create a self-extracting zip archive.

ifmember Display the group(s) an active user belongs to.

Replace the files which the OS is currently using


inuse (restart required).

ipconfig Display and change Windows IP configuration.

ipseccmd Used to configure IP Security policies.

Display and modify routing table information used by


ipxroute IPX protocol.

Used to send files over an infrared link (infrared


irftp functionality required).

Update registry values with latest performance


lodctr counters.

logman Used to manage performance monitor logs.

logoff Log a user off.

G
logtime Add the date, time, and a message to a text file.

lpq Displays print queue status.

Used to send a file to a computer running the Line


lpr Printer Daemon service.

mem Used to show memory usage.

md Used to create directories and sub-directories.

mkdir Used to create directories and sub-directories.

mklink Used to create symbolic link to a directory.

mmc Access Microsoft Management Console.

nbstat Display NetBIOS over TCP/IP information.

net Used to manage network resources and services.

netdom Network Domain Manager utility

netsh Display or modify network configuration

netstat Display active TCP/IP connections.

nlsinfo Used to display locale information

nltest List domain controllers, force remote shutdown, etc.

now Display date and time.

nslookup Check IP address on a Name Server.

ntbackup Backup data to tape using CMD or batch file.

Runs cmd.exe instead of command.exe in an MS-


ntcmdprompt DOS application.

ntdsutil Manage Active Directory Domain Services

ntrights Used to edit user account privileges.

ntsd Only for system developers.

nvspbind Used to modify network bindings.

prncnfg Used to configure/rename a printing device.

H
prndrvr List/add/delete printer drivers.

prnjobs List/pause/resume/cancel print jobs.

prnmngr List/add/delete printers, display/set default printer.

List/create/delete TCP printer ports, display/change


prnport port configuration.

prnqctl Clear printer queue, print a test page.

Monitor system for CPU spikes, generate a crash


procdump report during a spike.

psloglist Display event log records.

pspasswd Used to change account password.

psping Used to measure network performance.

psservice Display and control services on a machine.

Shutdown/restart/logoff/lock a local or remote


psshutdown machine.

Used to suspend a process on a local or remote


pssuspend computer.

qgrep Search file(s) for a given string pattern.

query process or
qprocess Display information about processes

reset session Used to reset a remote desktop session.

Run commands on remote machines running Rexec


rexec service.

rd Used to delete a folder(s).

Manage file and printer shares local or remote


rmtshare servers.

robocopy Used to copy files and folders that have changed.

route Display/change the local IP routing table.

Run commands on remote servers running RSH


rsh service.

I
rsm Manage media resources using Removable storage.

runas Run a program as a different user.

rundll32 Used to run a DLL program.

setx Set Environment Variables permanently.

sfc System File Checker

share List/edit a file share or print on any computer.

shellrunas Used to run a command as a different user.

Change the position of the batch parameters in a


shift batch file.

shortcut Create a Windows shortcut.

Put computer to sleep for specified number of


sleep seconds.

Software Licensing Management tool for activation


slmgr and KMS.

start Start a program, command, or batch file.

strings Find ANSI and UNICODE strings in binary files.

subinacl Display/modify ACEs for file and folder permissions.

Monitor and log system activity to Windows event


sysmon log.

tcmsetup Enable/disable TAPI client.

Communicate with a remote machine using


telnet TELNET protocol.

Transfer files to and from a remote machine running


tftp TFTP protocol.

takeown Used to take the ownership of a file.

touch Change file timestamps.

Process event trace logs and generate trace


tracerpt analysis report.

J
Trace route to a remote host by sending ICMP
tracert request messages.

timeout Delay a batch file execution for specified seconds.

tsdiscon Terminate a remote desktop connection.

Terminate a running process on a RD Session Host


tskill server.

tssutdn Shutdown/reboot a terminal server remotely.

type Show contents of a text file.

Write performance data to a CMD window or a log


typeperf file.

tzutil Time Zone Utility.

Remove performance counter names and explain


unlodctr text for a service from the registry.

Show shadow copy backups, installed shadow copy


vssadmin writers and providers.

w32tm Access Windows Time Service Utility

Used to synchronise events between networked


waitfor computer(s).

Retrieve information about event logs and


wevtutil publishers.

where Find and display file(s) in the current directory.

whoami Display information about the active user.

windiff Compare contents of two files or sets of files.

winrm Windows Remote Management.

winrs Windows Remote Shell.

Windows Update Agent to download new update


wuauclt files.

xcalcs Change ACLs for files and folders.

K
Explain the command( sfc \scannow)

This operation leads to delete the fields that is not completed updating

But you need to have this request up 👆

All these commands in the photo appear when you write( help prompt)

L
If we need to hide file totally by cmd we can doit by this command you determine the place
that file is (Attrib +h +s +r the name of file )if we did it and we need to appear we use this

(Attrib -h -s -r the name of file )

The final command is when we need to host wifi or make it as server

(netsh wlan set hostednetwork mode=allow ssid=name of network key=password)

Wrote and collected by H S

You might also like