Give me all commands in cmd.
- User
Give me all commands in cmd.
- Assistant
Providing a complete list of every command available in the Windows Command Prompt (cmd.exe) would be quite lengthy, as there are many built-in commands, each with its own set of options and parameters. Moreover, the available commands can vary based on the version of Windows you are using. Below is a list of common commands that are generally available in most versions of Windows:
ASSOC- Displays or modifies file extension associations.ATTRIB- Displays or changes file attributes.BREAK- Sets or clears extended CTRL+C checking on DOS systems.BCDEDIT- Sets properties in boot database to control boot loading.CACLS- Displays or modifies access control lists of files.CDorCHDIR- Changes the current directory.CHKDSK- Checks a disk and displays a status report.CHKNTFS- Displays or modifies the checking of the disk on boot.CLS- Clears the command prompt screen.CMD- Starts a new instance of the command prompt.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.COPY- Copies one or more files to another location.DATE- Sets or displays the date.DELorERASE- 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 off/on command echoing.ENDLOCAL- Ends localization of environment changes in a batch file.EXIT- Quits the cmd.exe program (command prompt).FC- Compares two files or sets of files and displays the differences.FIND- Searches for a text string in a file or files.FINDSTR- Searches for strings in files.FOR- Runs a specified command for each item in a set.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 command prompt to a lined label in a batch program.GPUPDATE- Updates group policy settings.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.MDorMKDIR- Creates a directory.MODE- Configures system devices.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.PRINT- Prints a text file.PROMPT- Changes the command prompt.PUSHD- Saves the current directory then changes it.RDorRMDIR- Removes a directory.RECOVER- Recovers readable information from a bad or defective disk.REM- Records comments (remarks) in batch files.RENorRENAME- Renames a file or files.REPLACE- Replaces files.RMDIR- Removes a directory.ROBOCOPY- Advanced utility to copy files and directory trees.SET- Sets or displays environment variables.SETLOCAL- Begins localization of environment changes in a batch file.SC- Service Control - manages services.SCHTASKS- Schedules commands and programs to run on a computer.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- Sets or displays the system time.TITLE- Sets the window title for the command prompt window.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 to verify that your files are correctly written to a disk.VOL- Displays a disk volume label and serial number.XCOPY- Copies files and directory trees.WMIC- Displays WMI information inside interactive command shell.
This is not an exhaustive list, and there are more commands and utilities that can be used within cmd.exe. Additionally, numerous third-party commands and scripts can further extend cmd's functionality.
To get help with any specific command, you can type the command followed by "/?" or " /help" to display detailed information and usage examples for that command. For example:
dir /?This will show you the usage and available options for the
dircommand.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.