Command Prompt - What It Is and How to Use Its Commands List (2025)

Instructions

Table of Contents:

  1. What is the Command Prompt
  2. How to Access Command Prompt
  3. Commonly Used Commands
  4. Frequently Asked Question's and Links

What is the Command Prompt

In Windows operating systems, the Command Prompt is a program that emulates the input field in a text-based user interface screen with the Windows Graphical User Interface (UI).

It can be used to perform entered commands and perform advanced administrative functions. It can also be used to troubleshoot and solve certain kinds of Windows issues.

Command Prompt - What It Is and How to Use Its Commands List (1)
Figure 1: Command Prompt Window

Back to Top

How to Open the Command Prompt

Dependent on which operating system you have installed, select the Tab that corresponds to your version of Windows.

NOTE: The examples below show how to open an Elevated Command Prompt. This means opening the Command Prompt with administrator rights.

  • Windows 11
  • Windows 10
  • Windows 8 or 8.1

Open Command Prompt in Windows 11

  1. Press the Windows key + r.

  2. In the Run box, type cmd, and then click OK.

  3. This opens the Command Prompt window.

  4. To change to the Root directory type cd\ and press Enter.

    NOTE: The Root directory is the best place to enter any required commands or instructions.

Open Command Prompt in Windows 10

  1. Move the mouse pointer to the bottom-left corner of the screen and Right-click, or press Windows key + X.

  2. In the power user task menu, select Command Prompt (Admin) (Figure 8).


    Command Prompt - What It Is and How to Use Its Commands List (2)
    Figure 8: Power user task menu
  3. This opens the Command Prompt window (Figure 9).


    Command Prompt - What It Is and How to Use Its Commands List (3)
    Figure 9: Windows 10 Command Prompt
  4. To change to the Root directory type cd\ and press Enter (Figure 10).


    Command Prompt - What It Is and How to Use Its Commands List (4)
    Figure 10: Command Prompt at Root directory

    NOTE: The Root directory is the best place to enter any required commands or instructions.

Open Command Prompt in Windows 8 / 8.1

  1. Move the mouse pointer to the bottom-left corner of the screen and Right-click, or press Windows key + X.

  2. In the power user task menu, select Command Prompt (Admin) (Figure 5).


    Command Prompt - What It Is and How to Use Its Commands List (5)
    Figure 5: Power user task menu
  3. This opens the Command Prompt window (Figure 6).


    Command Prompt - What It Is and How to Use Its Commands List (6)
    Figure 6: Windows 8 Command Prompt
  4. To change to the Root directory type cd\ and hit Enter (Figure 7).


    Command Prompt - What It Is and How to Use Its Commands List (7)
    Figure 7: Command Prompt at Root directory

    NOTE: The Root directory is the best place to enter any required commands or instructions.

Back to Top

Commonly Used Commands

  • cd(change directory)
    Command used to switch the directory (path) in which you are working.

    Example: cd\windows\system32Will move the prompt to the system32 folder path located in the Windows folder.

  • dir(Directory)
    This function allows you to see available files and folders within the selected directory.. Also provides details on the modification date and size of files.

    Several additional switches can be used with the command to perform additional actions.(see theMicrosoft guideCommand Prompt - What It Is and How to Use Its Commands List (8)below for further info on the available commands.)

    Example: C:\> dir
    This displays the contents of the C: directory or drive.

  • ipconfig
    This command displays the current network information for your adapters, including IP Address, Default Gateway, Subnet Mask and so forth.
  • ping
    This command is used as a troubleshooting tool to resolve network issues. It sends a data packet to another system on the network and awaits a reply - outputting the results.

    Example: ping 192.168.0.2
    This pings the computer with the address 192.168.0.2 and output any response.

  • Help (/?)
    The help command provides information about another command including available switches to perform additional tasks.

    Example: ipconfig /help

A list of commands can be found at the Microsoft Command-line Reference GuideCommand Prompt - What It Is and How to Use Its Commands List (9)

Back to Top

FAQs

How do I cancel a command?

UseCtrl + Cto stop a command from running.

NOTE: This is not an undo. The command only stops the current command during its process.

How can I shut down or restart the computer from the Command Prompt screen?

The commands below can also be used to shutdown or restart computers on your network. This can be handy when applying updates that require restarts to take effect.

  • shutdown /scommand shuts down the system that you are working on.
  • shutdown / ifrom the command prompt opens the Remote Shutdown Dialog window, this provides options available using an easy-to-use interface including networked systems.

How do I access previous commands that I have used?

You can use the arrow keys on your keyboard to cycle through the previously performed commands. For example, the UP and DOWN arrows show the most recently used commands. The RIGHT and LEFT arrows display the commands letter by letter.

Where do I find a comprehensive list of commands available?

Microsoft Command-Line Reference A-ZCommand Prompt - What It Is and How to Use Its Commands List (10)

What tools are available?

Command-Line Tools (Microsoft)Command Prompt - What It Is and How to Use Its Commands List (11)

Back to Top

See these Dell Knowledge Base articles for related information:

  • 64-Bit BIOS Installation Utility
  • How to Generate Battery Report Using the POWERCFG Command

Affected Products

Chromebox, Alienware, Inspiron, Legacy Desktop Models, OptiPlex, Vostro, XPS, G Series, Chromebook, G Series, Alienware, Inspiron, Latitude, Vostro, XPS, Legacy Laptop Models

Command Prompt - What It Is and How to Use Its Commands List (2025)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Sen. Ignacio Ratke

Last Updated:

Views: 6201

Rating: 4.6 / 5 (56 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.