Movatterモバイル変換


[0]ホーム

URL:


MUO logo

These Windows commands are easy to learn but make a big difference

Close up of Windows terminal showing SFC command

Yadullah Abidi / MakeUseOf

Credit: Yadullah Abidi / MakeUseOf
4
By Ben Stegner
After joining MUO in 2014 and earning a degree in Computer Information Systems, Ben left his IT job to go full-time with the site in 2016. He joined the editorial team in 2017 and has climbed the ranks since then.

As a writer, his specialties include Windows, Android, Gaming, and iPhone explainers and how-tos. He's been mastering Windows since 2009, got his first Android phone in 2011, and has used an iPhone daily since 2020. His work has been viewed over 100 million times.

Now, as a Senior Editor at MUO, Ben leads the Devices and Home segments, leading by example by writing dozens of high-quality articles each month.

Outside of work, Ben loves experiencing new video games, exploring music, learning new information, and enjoying time with friends. While MUO is his home, he also wrote briefly forNintendo Life and has contributed to various company blogs.
Sign in to yourMUO account
follow
Follow
followed
Followed
Thread1
Here is a fact-based summary of the story contents:
Try something different:

While you can do almost everything you need in Windows by clicking around, it’s worth your time to learn a selection of Windows' many commands. You don’t need to be scared of text-based commands; many of the most impactful are easy to use and remember.

Whether it’s in the Command Prompt, Run dialog box, or elsewhere, you can up your Windows knowledge, skill, and efficiency by putting these commands in your toolkit.

Command Prompt commands

The Command Prompt is the classic command-line interface for Windows. While it’s limited to basic commands compared to the modern modern PowerShell, many of the best-known commands work in it.

These commands also work in PowerShell. For a modern interface that lets you open either,I recommend the Windows Terminal. Search for “terminal” in the Start menu to open it.

Networking commands

Networking commands are among the most relevant when you start learning Windows commands. Everyone has network issues eventually, and knowing how to examine them more closely serves you well.

Two major ones areipconfig andping. The former allows you to see basic information about your network, including your computer’s IP address and the IP of your router. Meanwhile, the latter lets you send a request to any website or IP address to see if it’s responding, and how long the information takes to travel.

Windows Ping Command
Screenshot by Ben Stegner; no attribution required

Tryping 8.8.8.8 as a quick way to ping Google’s DNS servers; I use this when I need to check if my system is online. Adding-t to the end of the command repeats it until you pressCtrl + C to stop.

We’veexamined essential network troubleshooting commands in more detail than this overview can provide.

Shutdown or reboot

Shutting down your computer through the Start menu is easy, but it’s useful to know commands for doing this in an alternate way. After the core commandshutdown, there are several items to append (called flags or parameters) that provide more control.

To shut down your computer, use the/s flag:

shutdown /s

To restart your PC instead, use/r:

shutdown /r

If you want Windows to nicely ask apps to close, add the/soft flag. Using the/f flag is the opposite; it forces apps to close with no warning, which can result in lost work.

Windows Shutdown CMD Command
Screenshot by Ben Stegner; no attribution required

This command becomes more useful when you use the/t parameter to schedule the shutdown or restart. You can choose a number of seconds from 0 (instant) to 315,360,000 (10 years). Try using this when you want to turn off your computer once a long download completes, after you leave the house, or similar.

shutdown /s /t 600

Scheduling a time implies the/f flag, so be sure to save any open work in apps before you walk away from your computer. If you change your mind about a shutdown, use the/a flag to abort it.

Other flags are more niche; entershutdown /? to get more info on them. This/? shortcut works for any Windows command.

System checker commands

Threeimportant Windows maintenance commands are easily accessible from the Command Prompt: SFC, CHKDSK, and DISM.

These commands all require you to use an administrator window. An easy way to launch this is pressingWin + X and choosing the(Admin) version ofTerminal,PowerShell, orCommand Prompt.

SFC (System File Checker) makes sure core Windows files are healthy; it replaces corrupted or missing files as needed. To run it, use:

sfc /scannow

SFC scan in Windows terminal showing no errors.
Screenshot by Yadullah Abidi | No Attribution Required.

CHKDSK (check disk) scans your storage drive for errors and fixes anything it finds. If you’re scanning your system drive (usuallyC:), you’ll be asked to run the command next time you boot your computer. Use/f to fix errors and/r to locate bad sectors:

chkdsk C: /f /r

Finally, DISM (Deployment Image Servicing and Management) is the deepest corruption-fixing tool and is best run when SFC doesn’t fix your issue. It’s best to run two quick check commands first to see if there’s any corruption, then if there is, proceed to the last one:

Dism /Online /Cleanup-Image /CheckHealth

Dism /Online /Cleanup-Image /ScanHealth

Dism /Online /Cleanup-Image /RestoreHealth

PC info commands

The command line is also great for seeing quick info about your computer in one place. A basic command for this issysteminfo, which displays data like your Windows version, the last time you booted your computer, motherboard model, time zone, installed memory, and more.

The systeminfo command

While this is useful for quick checks, it isn’t formatted super neatly. I recommend installing fastfetch (an alternative to neofetch, which is no longer maintained) for a cooler way to visualize and share this data.

Open aTerminal orPowerShell window as an admin (holdCtrl + Shift when launching it, or right-click and chooseRun as administrator), then enter this command to install the utility:

winget install fastfetch

Once it’s installed, enterfastfetch (you might need to restart the Terminal window). This will display your key system details, complete with ASCII art.

Windows fastfetch command
Screenshot by Ben Stegner; no attribution required

Another short but handy command iscls, which clears the terminal screen. It’s useful when you have clutter from errors or want to make the screen look neat for a screenshot.

Run box commands

The Run dialog allows you to fire off quick commands to open programs, file paths, or other resources on your computer. While the Start menu’s search function can often return the same results, Run is quickly available withWin + R and responds instantly.

msinfo32 brings up theSystem Information panel, which contains a summary of your system (like above), plus much more info if you want to get into details.

winver is the fastest way to see which version of Windows you’re on—good for seeing if you’ve installedthe “switch flip” of Windows 11 25H2.

Windows Winver Dialog and Run Command
Screenshot by Ben Stegner; no attribution required

charmap brings up the Character Map, allowing you to insert foreign-language characters, rare symbols, and similar. While there are faster ways to type characters you constantly need (likeusing Alt codes or a clipboard manager), this is handy as a backup.

osk opens the on-screen keyboard, letting you enter text with your mouse. Keep this in mind for the next time your keyboard stops working.

Finally, to reach the earlier commands faster, usewt to open Windows Terminal. It’s become my preferred way to jump to the command line.

Commands don’t have to be scary

This handful of Windows commands shows that the most impactful ones don’t have to be complicated. Having these in mind for when you need them will save you time clicking around other tools. And as you get familiar with using these, it becomes more natural to try out other commands.

You can even have fun with it—tryfun Command Prompt tricks next time you need a chuckle.

Follow
Followed
Share
FacebookXWhatsAppThreadsBlueskyLinkedInRedditFlipboardCopy linkEmail
A desktop featuring dual monitors and wireless peripherals.
Want two displays? An HDMI splitter isn’t the answer
A mini digital power meter connected to the Samsung Galazy Z Flip 6 and other USB C Cables around
This is why your USB-C cable isn't charging your device fast enough
USB-C AA batteries with the cable attached
I didn’t expect USB-C AA batteries to be this good, but here we are
See More
App Switcher on an iPhone
This is what actually happens when you force quit an app on your phone
Windows laptop showing widget with Files app
I made Windows look cleaner than macOS with 4 simple tweaks
A Google Pixel 9 Pro XL beside a passport.
5 Android apps that make flights, maps, and planning so much smoother
See More

[8]ページ先頭

©2009-2025 Movatter.jp