Github CMD - Command Cheat Sheet
Github CMD - Command Cheat Sheet
Windows Command Prompt is an often ignored aspect of the modern Windows OSes. The command
prompt, also known as cmd.exe or cmd is a command line interpreter available since the NT line of
Windows OSes. While the majority reasons for which the command prompt was used for can now be
done through a graphical interface, this application has remained with Windows and is still used by
many. Although many of us might not have used them, the fact that they still exist in modern day
Windows is reason enough for us to be familiar with it.
While the commands in Windows 10, 8, 7, Vista, and XP are called CMD commands or Command
Prompt commands, the commands in Windows 98/95 and MS-DOS are called DOS commands. In this
article, we have listed the most commonly used commands in the Windows operating systems. In this
source you can learn cmd commands and what they do. If you have cmd commands you want to add,
you can support it. 🙌🏻
Command Description
assoc Displays or changes the file type associated with a particular file extension.
at Schedules commands and other programs to run at a specific date and time.
bitsadmin Used to create, download or upload jobs and monitor their progress.
bootcfg Used to build, modify, or view the contents of the boot.ini file.
Command Description
Updates the master boot code for hard disk partitions to switch between
bootsect
BOOTMGR and NTLDR.
cacls Displays or changes access of the security descriptors on folders and files.
Used to run a script or batch program from within another script or batch
call
program.
Also known as chdir, is used to change the current working drive and/or
cd
directory in operating systems.
Changes various terminal server settings like install modes, COM port
change
mappings, and logons.
chdir Used to display the drive letter and folder that you are currently in.
chgusr Used to change the install mode for the RD Session Host server.
Verifies the file system integrity of a volume and fixes logical file system
chkdsk
errors.
Used to display or modify the checking of the disk drive using NTFS at boot
chkntfs
time.
Command Description
Allows batch files to prompt the user to select one item from a set of single-
choice
character choices and return the value of that choice to the program.
clip Copies the result of any command (stdin) to the clipboard in Windows.
cmdkey Used to create, list and delete stored user names or credentials.
Changes the colors of the text and background within the Command Prompt
color
window.
Performs a binary comparison of two set of files or multiple files and shows
comp
the differences between them.
Used to convert volumes using the FAT or FAT32 formatted file systems to
convert
NTFS.
ctty Used to change the default input and output devices for the system.
debug Starts Debug, a command line application used to test and edit programs.
deltree Used to delete a directory and all the files and subdirectories within it.
Displays a list of files and folders contained inside the folder that you are
dir
currently working in.
Starts the DiskRAID command-line tool that allows to configure and manage
diskraid redundant array of independent (or inexpensive) disks (RAID) storage
subsystems.
dism Starts the Deployment Image Servicing and Management (DISM) tool.
Used to edit command lines, create macros, and recall previously entered
doskey
commands.
dosshell Starts DOS Shell, a graphical file management tool for MS-DOS.
driverquery Displays a list of all installed device drivers and their properties.
Used in shell scripts and batch files to output status text to the screen or a
echo
file and also to turn the echoing feature on or off.
edit Starts the MS-DOS Editor tool that is used to create and modify text files.
Command Description
Starts the Edlin tool that is used to create and modify text files from the
edlin
command line.
Provides database utilities for the Extensible Storage Engine (ESE) for
esentutl
Windows Vista.
exe2bin Converts a file of the EXE file type (executable file) to a binary file.
Used to extract the files and folders contained in Microsoft Cabinet (CAB)
expand
files.
Used to extract the files and folders contained in Microsoft Cabinet (CAB)
extract
files.
This command provides more detailed information on any of the other MS-
fasthelp
DOS commands.
Used to compare two individual or sets of files and then show the
fc
differences between them.
find Used to search for a specified text string in one or more files.
Command Description
findstr Used to find specific text string patterns in one or more files.
fltmc Used to load, unload, list, and otherwise manage Filter drivers.
for Used to run a specified command for each file in a set of files.
format Used to format a drive in the file system that you specify.
Performs tasks that are related to file allocation table (FAT) and NTFS file
fsutil system, such as managing reparse points and sparse files, dismounting a
volume, and extending a volume.
Used to display the Media Access Control (MAC) address of all the network
getmac
adapters in the computer.
Used in a batch or script file to direct the command process to a labelled line
goto
in the script.
gpresult Used to display group policy settings and resultant set of policy for a user.
hostname Displays the host name portion of the full computer name of the computer.
Command Description
icacls Display, modify, backup, or restore ACLs for files and directories.
Connects two computers via a serial or parallel connection to share files and
interlnk
printers.
intersvr Starts interlnk server and to copy interlnk files from one computer to another.
Displays all current TCP/IP network configuration values and can modify
ipconfig Dynamic Host Configuration Protocol (DHCP) and Domain Name System
(DNS) settings.
ipxroute Used to display and change information about IPX routing tables.
Used to generate a text-based log and other data files that contain product
licensingdiag
activation and other Windows licensing information.
Used to load the specified program in the first 64K of memory and then runs
loadfix
the program.
Command Description
Used to load a program into high memory and is usually used from within
loadhigh
the autoexec.bat file.
lock Used to lock a drive, enabling direct disk access for a program.
logman Used to create and manage Event Trace Session and Performance logs.
lpr Used to send a file to a computer running Line Printer Daemon (LPD).
Manage-bde Used to configure BitLocker Drive Encryption from the command line.
Shows information about used and free memory areas and programs that
Mem
are currently loaded into memory in the MS-DOS subsystem.
Mode Used to configure system devices, most often COM and LPT ports.
This command properly displays the data within a Managed Object Format
Mofcomp
(MOF) file.
This command starts Microsoft Backup, a tool used to back up and restore
Msbackup
one or more files.
Msiexec Used to start Windows Installer, a tool used to install and configure software.
Net Used to display, configure, and correct a wide variety of network settings.
Net1 Used to display, configure, and correct a wide variety of network settings.
This command is used to manage Server for NFS or Client for NFS from the
Nfsadmin
command line.
This command starts the Windows Optional Component Setup tool, used to
Ocsetup
install additional Windows features.
Openfiles Used to display and disconnect open files and folders on a system.
Functions much like the tracert command, will also report information about
Pathping
network latency and loss at each hop.
Pause Used within a batch or script file to pause the processing of the file.
Pentnt Used to detect floating point division errors in the Intel Pentium chip.
Pkgmgr Used to start the Windows Package Manager from the Command Prompt.
Used to start the Microsoft PnP Utility, a tool used to install a Plug and Play
Pnputil
device from the command line.
This command is used to change the current directory to the one most
Popd
recently stored by the pushd command.
Used to store a directory for use, most commonly from within a batch or
Pushd
script program.
Used to display all Remote Desktop Session Host servers available on the
Qappsrv
network.
Quser Used to display information about users currently logged on to the system.
Used to copy files between a Windows computer and a system running the
Rcp
rshd daemon.
Used to set or change registry permissions and registry values from the
Regini
command line.
Register-
Used to register a Common Information Model (CIM) Provider in Windows.
cimprovider
Rename Used to change the name of the individual file that you specify.
Replace Used to replace one or more files with one or more other files.
Restore Used to restore files that were backed up using the backup command.
Rexec Used to run commands on remote computers running the rexec daemon.
Robocopy Used to copy files and directories from one location to another.
This command makes a remote procedure call (RPC) to an RPC server and
Rpcinfo
reports what it finds.
Rsh Used to run commands on remote computers running the rsh daemon.
Used to manage the Service Principal Names (SPN) for an Active Directory
Setspn
(AD) service account.
Share Used to install file locking and file sharing functions in MS-DOS.
Used to shut down, restart, or log off the current system or a remote
Shutdown
computer.
This command installs and configures SMARTDrive, a disk caching utility for
Smartdrv
MS-DOS.
Used to read data from a specified input, sort that data, and return the
Sort results of that sort to the Command Prompt screen, a file, or another output
device.
Sxstrace Used to start the WinSxs Tracing Utility, a programming diagnostic tool.
Sys Used to copy the MS-DOS system files and command interpreter to a disk.
Used to regain access to a file that that an administrator was denied access
Takeown
to when reassigning ownership of the file.
Telnet Used to communicate with remote computers that use the Telnet protocol.
Used to transfer files to and from a remote computer that’s running the
Tftp
Trivial File Transfer Protocol (TFTP) service or daemon.
Used to process event trace logs or real-time data from instrumented event
Tracerpt
trace providers.
Tree Used to graphically display the folder structure of a specified drive or path.
Umount Used to remove Network File System (NFS) mounted network shares.
Undelete Used to undo a deletion performed with the MS-DOS delete command.
Unlock Used to unlock a drive, disabling direct disk access for a program.
Shows the volume label and serial number of a specified disk, assuming this
Vol
information exists.
Vsafe Used to start VSafe, a basic virus protection system for MS-DOS.
Used start and stop backup jobs, display details about a previous backup,
Wbadmin list the items within a backup, and report on the status of a currently running
backup.
This command starts the Windows Events Command Line Utility which is
Wevtutil
used to manage event logs and publishers.
Winmgmt Starts the command line version of WMI, a scripting tool in Windows.
Used to copy one or more files or directory trees from one location to
another. The xcopy command is generally considered a more “powerful”
Xcopy
version of the copy command though the robocopy command trumps even
xcopy.
Contact :
Mail : [email protected]
Linkedin : https://www.linkedin.com/in/ismailtasdelen
GitHub : https://github.com/ismailtasdelen
Telegram : https://t.me/ismailtasdelen