25 Popular Command Line Prompts (and what they do)

The trusty command line has been a feature of windows since, well, before windows! In this article we look at 25 Popular Command Line Prompts and what they are used for, but first of all, what is the command prompt?

DOS faithful’s know all too well about the command line and it’s importance, seeing as that’s all they had before GUI (graphical user interfaces) were invented.

Modern Windows users, from Windows 1.0 onwards (OK, so Windows 1.0 isn’t that modern any more!) will likely refer to the command line as Command Prompt, as this is what it’s called in modern versions of windows, such as Windows 11.

How to access the command prompt

You can access the Command Prompt by clicking on the Start menu, typing “cmd” into the search box, and then clicking on the Command Prompt application.

Command Prompt in Windows 11

Once the Command Prompt is open, you can type in commands and press Enter to execute them.

The Command Prompt also supports many command-line options and arguments that can be used to modify the behavior of commands and scripts.

Popular Command Line Prompts

How many command prompts are there? There’s actually over 280 built in to Windows!

In this article we look at 25 popular command prompts, that are useful for home autometer’s.

  1. “dir” – Lists all files and folders in the current directory
  2. “cd” – Changes the current directory
  3. “mkdir” – Creates a new directory
  4. “rmdir” – Deletes an empty directory
  5. “del” – Deletes a file
  6. “copy” – Copies a file
  7. “xcopy” – Copies multiple files and directories
  8. “type” – Displays the contents of a text file
  9. “rename” – Renames a file
  10. “cls” – Clears the command prompt screen
  11. “ping” – Tests connectivity to a specified host
  12. “ipconfig” – Displays IP configuration information
  13. “netstat” – Shows active network connections
  14. “nslookup” – Queries a DNS server for information about a domain
  15. “tracert” – Traces the route taken to a specified host
  16. “shutdown” – Shuts down the computer
  17. “tasklist” – Lists currently running processes
  18. “taskkill” – Ends a running process
  19. “systeminfo” – Displays system information
  20. “powercfg” – Configures power settings on the computer
  21. “chkdsk” – Checks the integrity of a disk
  22. “sfc” – Scans and repairs system files
  23. “diskpart” – Manages disk partitions
  24. “bcdedit” – Edits the Windows boot configuration
  25. “net” – Manages network settings and connections

Command Prompt Modifiers

Command prompt modifiers (also known as command switches or options), are parameters that can be added to your command to modify its behaviour or output.

They are usually preceded by a forward slash (/) or a dash (-) and can be used to specify additional options, such as displaying hidden files, sorting the output, or controlling the format of the output.

Here are some examples of command prompt modifiers:

  1. /p : Pauses the output after each screenful.
  2. /w : Displays the list of files and directories in wide format, where the information is displayed in multiple columns.
  3. /a : Lists all files and directories, including hidden and system files.
  4. /s : Lists the files and directories in the current directory and all subdirectories.
  5. /b : Displays the list of files and directories in bare format, which shows only the names of the files and directories and not their attributes or other information.
  6. /l : Displays the file information in lowercase.
  7. /o : Sorts the files and directories based on various criteria such as name, size, type, and time.
  8. /t : Sorts the files and directories based on the time.
  9. /x : Displays the short names of the files and directories, if they have one.
  10. /on : Sorts the files and directories by name.

These are just a few examples of command prompt modifiers and each command has its own set of options.

Some commands even have their own unique switches which are specific to that command!

For example if you run the command

ping 1.1.1.1

By default the command will ping that IP address 4 times and then stop;

But if you add a modifier, such as -t

ping 1.1.1.1 -t

It will ping that IP address indefinitely!

Long live the command prompt!

Whilst the command prompt can seem daunting, it’s exceptionally useful and well worth spending some time to learn.

There are so many benefits of the command prompt, especially for automations and repetitive tasks.

In summary, the command prompt is a really powerful tool that you should learn to use, isn’t going anywhere, and remains popular because it provides a powerful and flexible way to interact with the operating system, allows for scripting and automation, is compatible with most versions of Windows, and is really useful for sysadmins, home autometer’s, and geeks conducting system maintenance and troubleshooting.

Leave a Comment