Mastering the Command Prompt: Windows Beginners' Guide in 2022 - Qiling  

What Is Command Prompt, How Do I Open and Use It [2022 Guide]


You may hear of the Command Prompt and know something basic about it. When it comes to managing disk partitions, resolving some disk errors, or executing some computing tests, do you know how to run Command Prompt and what command lines do you need for these issues? 

It doesn't matter if you know quite little about it. Here on this page, we'll present you with a Windows beginner's guide to assist you in mastering Command Prompt on your own. Let's get started here:

In this article, you'll learn:

  • What Is Command Prompt
  • How to Open Command Prompt in Windows 11/10 or Older Windows OS
  • The Most Important Commands for the Command prompt
  • How to Master Command Prompt in Windows 11/10 to Manage Disk Partitions
  • How to Use Command Prompt Commands to Manage Files in Windows

Note: This page is designed for Windows beginners. In case you encounter some errors while running Command Prompt command lines in Windows, please be very careful and cautious while tying the commands as presented on this page.

Let's see how to master Command Prompt like an expert in Windows computers on your own.

What Is Command Prompt

Accordingly, Command Prompt is an interpreter application that orders most Windows operating systems to execute different tasks via multiple command lines. Command Prompt is called Windows Command Processor, but it's more well-known as Command Shell or CMD prompt. And sometimes, people even prefer to call it cmd.exe. Sometimes, it's also referred to as MS-DOS, or "the DOS prompt'.

Command Prompt wnidow

Command Prompt is widely used by Windows administrators and IT professionals, and, meanwhile, it's not very popular among Windows beginners. The reason is that Command Prompt has more than 280 commands, and each command line is designed for resolving different issues. Being the command lines complex and the process not easy to master, most Windows beginners rather turn to a Command Prompt alternative tool for help.

So can a Windows beginner master the Command Prompt and apply it to resolve some basic issues on Windows computers, hard drives, or even external storage devices? Sure. Follow the guidelines below, and let's see how to master Command Prompt on your PC now.

How to Open Command Prompt in Windows 11/10 or Older Windows OS

There are multiple ways that help to open Command Prompt in Windows computers. Here we'll show you five normal ways that work to bring up and launch the Command Prompt window immediately on your PC, let's see:

#1. Open Command Prompt with Windows + X Keys

Press Windows + X keys to open the Windows settings list, select or click "Command Prompt (Admin)". This will launch the Command Prompt in Windows 11/10/8.1/8. 

Open Command Prompt with hot keys

#2. Open Command Prompt from Windows Menu or Start Menu

Click the Windows icon or Start icon, scroll down to find the Command Prompt from the list, then click "Command Prompt" to open it. 

This way works to open Command Prompt in Windows 10/8.1/8 or even older systems.

Open Command Prompt from start menu

#3. Open Command Prompt Through the Search Box

Press Windows + S keys to open the Search box, type cmd or command prompt into the search box, then right-click Command Prompt from the result. 

And then right-click "Command Prompt", and select "Run as administrator". This will then open Command Prompt for you on Windows 11/10/8.1/8/7, etc., computers.

Open Command Prompt from search box

#4. Open Command Prompt from the Run Dialog

Press Windows + R keys, type cmd into the dialog, then click "OK". This will bring up the command prompt in all Windows operating systems.

Open Command Prompt from the Run dialog

#5. Open Command Prompt from the Task Manager

Press Ctrl + Alt + Del to open the Task Manager, then click "File" and select "Create a new task". Wait for the Run dialog to pop up, then type cmd and click "OK". This will also open up the Command Prompt windows on your PC.

Open Command Prompt from task manager

Aside from the above five methods, there are still many workarounds that help you to quickly open and access Command Prompt on Windows PC. For more details, you may refer to:

10 Quick Accesses to Open Command Prompt in Windows 10

How do you get a Command Prompt in Windows 10? All you need to do is find the proper way to get there. Windows 10 has opened you nearly 10 ways to access Command Prompt. Let's take a quick look.

how to access command prompt

The Most Important Commands for the Command prompt

As we introduced above, Microsoft added more than 280 commands for administrators and developers to run and execute multiple tasks on Windows computers through the Command Prompt.

However, to most Windows beginners, these commands are too many, and most of them can't remember all the command lines.

Here, we collected the most important and most frequently used commands for the Command Prompt that normal users can apply:

Type Commands
Manage Hard Drive Partitions
  • CHKDSK: Check and fix file system error
  • Format: Quick format partition and change the file system
  • Convert: change disk type to MBR/GPT
  • Clean/Clean All: completely erase disks.
  • Create: create primary or logical partition
Manage Files
  • Del: Delete files in partitions
  • Copy: Copy files between local drives
  • Attrib: Show hidden files

Aside from these three major types of command lines, there are still many other types of command lines. And you can refer to this page to learn the overall commands of Command Prompt: Windows Commands

How to Master Command Prompt in Windows 11/10 to Manage Disk Partitions

So how do a Windows beginner master the Command Prompt in Windows 11/10 or even older Windows systems? Follow the tutorials below, and you'll get a full guide that helps you to resolve multiple issues on your computers. Let's start.

When your hard drive or storage device is with different errors, you'll need to run different command lines to fix them. Here are how to use them on your PC:

#1. Run CHKDSK in Command Prompt - Check and Fix Disk File System Error

CHKDSK is a command that aims to check and repair hard disk errors such as external hard drive inaccessible, etc., issues on Windows PC. 

Replace E: with the drive letter of your hard drive partitions.

Run CHKDSK in Command Prompt

#2. Run Format Command in Command Prompt - Format or Change Device Format

The format command can help you change the file system format to FAT32, NTFS, or even exFAT. Sometimes, you can also use it to fix Raw drive or other unknown errors on your storage device, for example, to format USB using CMD:

format hard drive in command prompt

#3. Run Convert Command in Command Prompt - Switch Disk Type to MBR/GPT

Remember to backup all the files in your target disk if you want to convert your disk to MBR or GPT using CMD. The reason is that converting disk via Command Prompt will need you to delete all existing partitions first, which will cause data loss.

You May also be interested in:

How to Convert Disk to MBR or GPT

If you prefer a secure method, you can rely on Qiling Partition Master with its disk conversion feature. It supports to convert disk to MBR or GPT without losing any data. 

convert disk to mbr or gpt

Here is how to convert disk via Command Prompt:

Convert disk in command prompt

#4. Run Clean/Clean All in Command Prompt - Clean or Erase Hard Drives

When you need a quick and efficient way to clean up or erase your hard drives, the Clean or Clean all Command can fulfill your need. Note that the Clean Command will format and delete all existing partitions on your drive, while the Clean all Command will completely wipe everything on the disk.

Make sure that you are clear about which Command to apply on dealing with your disks, HDDs, SSDs, or even external devices. Here are the steps:

clean disk in command prompt

#5. Use Create Command in Command Prompt to Create Primary/Logical Partitions

When it comes to partitioning new hard drives, you can apply the Create command in the command prompt to create primary or logical partitions on your disk. Here are the steps:

Create partition in command prompt

Bonus Tip: Manage and Partition Windows Disks with Command Prompt Alternative - Qiling Partition Master

As you've seen above, the Command Prompt needs to input different command lines to execute and resolve different issues. Is it still a bit complex, right? Here, a reliable Command Prompt alternative tool - professional partition manager software - Qiling Partition Master is capable of helping. You can simply partition, manage, and even optimize disk partition performance like an expert on your own.

Step 1. Check for free space

To divide a disk partition into multiple ones, you must ensure that there has adequate free space to be allotted.

Step 2. Shrink a disk partition to create unallocated space

By doing so, start with the "Resize/Move" feature. Click on a partition with a lot free space and select "Resize/Move".

decrease partition step 1

Drag either end of the partition rightwards or leftwards so you can shrink its size as the red arrow does, in order to get ample unallocated space. You can visually know how much space you've decreased in the "Partition size" area. Click "Proceed".

decrease partition step 2

At last, it will save all the changes. Go back on the main window, there should be unallocated space appearing under the same disk of the shrinked one.

Step 3. Create a new partition on unallocated space

The last step is to turn the unallocated space into a usable partition drive with a recognized file system. Right-click on the unallocated space and choose "Create".

create partition step 1

Customize the partition information by choosing a drive letter, partition label, file system (NTFS, FAT32, EXT2/3/4, exFAT) and many more settings in the Advanced Settings. Click "Proceed".

create partition step 2

Finally, the app create a partition on the unallocated space. Repeat the whole steps to partition a hard drive in many more partitions.

How to Use Command Prompt Commands to Manage Files in Windows

Alongside the partitioning commands in Command Prompt, some professionals may sometimes also run some commands to manage files and fix some file issues on their devices.

Here you are about how to run commands in Command Prompt to manage files in Windows.

#1. Run Del in Command Prompt - Delete Files

Note that the Del command is designed to permanently remove files or content on your drive or device, bypassing the Recycle Bin. Therefore, in case you lose some essential files, be careful that you select the correct device to run the Command:

You May Also Be Interested In: 

How to Permanently Delete Files From Computer Without Recovery

Follow this guide and learn how to permanently delete files on PC or laptop and protect your data, whether you're getting rid of a computer, external hard drive, or USB stick.

#2. Copy and Move Files Between Local Drives

Aside from deleting files or folders, Command Prompt also allows you to copy and move files from one drive to another local drive in Windows. See how to copy files using the command prompt here:

(You can replace ** with the name of a specific file or change .txt with other file extensions to copy other types of files, such as .xls. Or, you can even replace c: or e: with other drive directories.)

(You can replace C: and D: with other hard drive directories.) 

Syntax meaning:

You May Also Be Interested In:

How to Move Large Files from One Drive to Another

You may try copying and pasting on the general level, but it may fail if you have very large files to transfer. So here we highly recommend the most effortless way - Qiling Disk Master to transfer large files from one drive to another. 

#3. Run Attrib Command in Command Prompt - Show Hidden or Lost Files

When your files are missing or hidden on your storage devices, you can apply this tool for help:

(You can replace E: with the drive letter of your device. The Command here will help to fix device errors and find all missing or lost files in your storage device.)

You May Also Be Interested In:

Show Hidden Files Using CMD, Control Panel, and Software

When your files are missing from your USB drive or hard drive, you may wonder "Is there a command on the Windows command line that can list hidden folders?" Yes, there is a command to show hidden files.

Command Prompt Is Powerful in Manage Disks and Files, Be Careful While Using It

On this page, we explained what Command Prompt is, how to open the Command Prompt in Windows, and what people can do with its most important command lines. Also, we added detailed steps about how to run these commands to resolve and fix different issues.

Though it's powerful and efficient in running Command Prompt to execute some operations, it's still dangerous if you input some false commands. So please be very careful while running the commands. 

If you prefer an alternative that fully replaces Command Prompt in managing disks, take Qiling Partition Master for help.

Or, if the Command Prompt doesn't work on your PC, run its alternative tool to execute the task first. Then try to fix it by enabling CMD or performing System Restore to bring back Command Prompt to its original state. For a step-by-step guide, you can refer to Command Prompt Not Working in Windows 11/10 for help. 

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!