;

List of Basic Commands In Windows CMD & How to Use

How to Use CMD Commands in Windows 10 / 11 / 12


command prompt windows commands

buayaberdiri.blogspot.com - CMD (Command Prompt) is a command-line interpreter available on Windows operating systems. It provides a text-based interface for interacting with the system by typing commands and receiving responses. The commands entered in CMD can perform a wide range of tasks, such as managing files and folders, configuring system settings, and troubleshooting issues.

CMD was first introduced in MS-DOS (Microsoft Disk Operating System) in the 1980s and has since been included in all versions of Windows. It is a powerful tool for advanced users and system administrators who prefer command-line interfaces over graphical user interfaces (GUIs).

To open CMD in Windows, simply type "cmd" in the Start menu or Run dialog box, or press the Windows key + R and type "cmd" in the box. This will open the CMD window, which displays the current directory and a command prompt, where you can enter commands.

CMD commands are entered at the prompt followed by any necessary parameters or options. Each command has its own syntax and specific set of options, which can be accessed by typing the command name followed by /? (e.g., "dir /?").

Some of the most commonly used CMD commands include:


  1. ASSOC - Displays or modifies file type associations.
  2. ATTRIB - Displays or changes file attributes.
  3. CD - Changes the current directory.
  4. CHDIR - Changes the current directory.
  5. CHKDSK - Checks a disk and displays a status report.
  6. CMD - Starts a new instance of the CMD command interpreter.
  7. COLOR - Sets the default console foreground and background colors.
  8. COMP - Compares the contents of two files or sets of files.
  9. COPY - Copies one or more files to another location.
  10. CLS - To clear the command window in a Windows CMD (Command Prompt) 
  11. DATE - Displays or sets the date.
  12. DEL - Deletes one or more files.
  13. DIR - Displays a list of files and subdirectories in a directory.
  14. DISKPART - Manages partitions or volumes.
  15. DOSKEY - Edits command lines, recalls Windows commands, and creates macros.
  16. DRIVERQUERY - Displays a list of installed device drivers.
  17. ECHO - Displays messages or turns command echoing on or off.
  18. EXIT - Quits the CMD.EXE program (command interpreter).
  19. FC - Compares two files or sets of files and displays the differences between them.
  20. FIND - Searches for a text string in a file or files.
  21. FORMAT - Formats a disk for use with Windows.
  22. FSUTIL - Displays or configures file system properties.
  23. GOTO - Directs the command interpreter to a labeled line in a batch program.
  24. HELP - Provides Help information for Windows commands.
  25. ICACLS - Displays or modifies Access Control Lists (ACLs) for files and directories.
  26. IPCONFIG - Displays all current TCP/IP network configuration values.
  27. LABEL - Creates, changes, or deletes the volume label of a disk.
  28. MD - Creates a directory.
  29. MKDIR - Creates a directory.
  30. MORE - Displays output one screen at a time.
  31. MOVE - Moves one or more files from one directory to another directory.
  32. NET - Manages network resources.
  33. NETSTAT - Displays active network connections.
  34. NSLOOKUP - Displays information that you can use to diagnose Domain Name System (DNS) infrastructure.
  35. OPENFILES - Displays files opened by remote users for a file share.
  36. PATH - Displays or sets a search path for executable files.
  37. PAUSE - Suspends processing of a batch file and displays a message.
  38. PING - Verifies IP-level connectivity to another TCP/IP computer by sending Internet Control Message Protocol (ICMP) echo Request messages.
  39. POPD - Changes the current directory to the directory that was most recently stored by the PUSHD command.
  40. PRINT - Prints a text file.
  41. PROMPT - Changes the Windows command prompt.
  42. PUSHD - Stores the current directory for use by the POPD command, and then changes to a new directory.
  43. RD - Removes a directory.
  44. RECOVER - Recovers readable information from a bad or defective disk.
  45. REM - Records comments (remarks) in batch files or CONFIG.SYS.
  46. REN - Renames a file or directory.
  47. RENAME - Renames a file or directory.
  48. REPLACE - Replaces files.
  49. ROBOCOPY - Advanced utility for
  50. TRACERT - Traces the path taken by packets from an IP network to a specified destination.
  51. TASKLIST - Displays a list of currently running processes.
  52. TASKKILL - Terminates a specified process.
  53. SYSTEMINFO - Displays system configuration information.


CMD also provides some advanced features, such as batch files, which allow multiple commands to be executed in sequence, and redirection, which allows output to be redirected to a file or another command.

While CMD can be a powerful tool for managing and troubleshooting Windows systems, it requires some knowledge of command syntax and parameters. However, there are many resources available online that provide guidance on how to use CMD effectively.




List of Article Posts https://buayaberdiri.blogspot.com