10 useful Windows command line prompts you should try

While you can always use the Windows 11 Settings app or the Task Manager for common things in Windows, the Command Prompt has nifty tricks, too.

Command Prompt in Windows 11

These days, you might be used to diving into the Windows 11 Settings app or the Task Manager for things like checking on your disks and even killing unresponsive apps. But, before we had fancy graphical user interfaces on Windows, you had to use the Command Prompt and a command-line environment.

Even in 2023, the Command Prompt is still critical to the everyday use of Windows for IT admins and more technical folks. There are plenty of nifty commands you can use to fix issues with your PC, take a peek at your PC operations, and even manage files and directories. I’ll be taking a look at 10 of my favorites for you right here.

1 Tasklist

Tasklist in command prompt

My list starts with Tasklist. This is one of the more simple commands you can use in Command Prompts. All it does is function as a text-based version of the Task Manager. It lists every simple running task on your laptop or desktop. The first column gives you the image name (the name of the task), the second one a process ID, the third, a type of session, and the last, the memory usage. To use it, simply type in:

Tasklist

At any time, you can kill a task with the additional command taskkill /PID PID # here /F.

2 Chkdsk

The Check Disk Command in Command Prompt

Next up is Chkdsk. You’ll need administrator privileges for this command, but I use this command for checking disks for errors. If you feel your PC is running slow or giving you issues, you can use this command to check the disk for file system errors. This was more useful back when HDDs were more common as a primary drive in computers and laptops. Chkdsk will fix issues with the master file table (MFT), bad security descriptors associated with files, or misaligned time stamp or file size information about individual files. You can copy the command below:

Chkdsk

3 Sfc /scannow

Running the scan now command in command prompt

My third most used command is Sfc /scannow. This is the system file-checking tool. What this command will do is simply check the integrity of your operating system by checking protected system files. If your PC isn’t working properly, this is one of the first you should try. This command is used when a user might have modified critical system files.

Sfc /scannow

4 Diskpart

list disk in Windows command prompt

Next up is Diskpart. Once you enter Diskpart, you can use List disk you can see every single disk on your PC, and peek at how much storage is used or continue on with disk operations Think of this as a text-based version of the storage page in the Windows 11 settings app. After the intial Diskpaet command, I type out list disk to see a list of all the connected drives to my system. Another useful command is select disk (followed by the disk number) then clean to clean up an attached HDD or SSD to reformat it when the graphical user interface.

diskpart

5 Ver

Version Command on Windows

Need to know the version of Windows you’re running? Ver is a simple command that will list of the operating system version for you. It’s useful if you’re the technical type of person that likes to stay on top of build numbers and Windows releases.

Ver

6 Systeminfo

System info Command on Windows

Related to Ver is Systeminfo. With this command, you can see everything about your system. You’ll see the physical memory, the virtual memory, network cards, Hyper-V status, the manufacturer of your computer, the processor, or even when Windows was first installed. Again, it’s great for technical folks who value sharing this information.

systeminfo

7 Ipconfig

IpConfig in Windows 11

Need to know your IP address? Ipconfig is the home for networking tasks on Windows. It lists out networks you might be connected to, subnets, gateways, and other critical networking information. I often use this to grab information about my network adapters, and my router.

Ipconfig

8 Ping

Ping copmmand in Windows 11

Somewhat related to ipconfig is ping. This is one of the more useful command line prompts should you want to check the connectivity between two hosts. It also will check for lost packets, too. I use it to check for internet connectivity, and the status of websites, but you can ping any computer on any server to test a connection to them by using their IP address.

ping google.com

9 Assoc

Assoc Command in Windows 11

Need to check which file type is associated with what extension? That’s what assoc is for. You’ll see a readout of every single file extension that’s being used on your PC. You also can type out the file extension of the end to see what file it’s associated with. In the example below, typing assoc.doc reads out the fact that this is a Microsoft Word document. Or assoc.html read out that this is an HTML file. Pretty basic, but pretty useful, too.

Assoc

10 Help

Help Command Windows

Not sure how to use Command Prompt? That’s what help is for. Once you open the app and type this command, you’ll get a list of the most common commands that you can use on your PC. Many of the ones we’ve mentioned are already there. It’s a great spot for beginners.

Help

There’s so much more!

Though I opted to highlight 10 of my favorite Command Prompt commands, there are so many more that you can use. For examples, did you know you can use logoff to logoff your PC? Or how about Shutdown/s to shutdown your PC? And maybe even shutdown /r /fw to boot into your BIOS? There are so many more commands I could share, but this list should help you get started. Let us know your favorites!