PCWorld (USA)

6 COMMANDPRO­MPT COMMANDS YOU SHOULD STILL BE USING

OLD-SCHOOL DOESN’T MEAN OBSOLETE. OBSOLETE

- BY ALAINA YEE

In the beginning, all we had was the command line. Then as Windows matured, the need to access that throwback interface waned. That doesn’t mean the Command Prompt is completely useless. In fact, recent versions of Windows ( go.pcworld.com/rvw) have introduced new commands. And while Windows 10’s graphical interface is generally straightfo­rward to use, several features are still faster to execute through that last tie to MS-DOS. The same goes for accessing a few pieces of useful informatio­n, too.

We’ve listed our top Command Prompt commands below, but don’t take this list as the complete lineup of useful commands. If you like to kick it old-school, there are still plenty worth your time. For most people, though, these six will add efficiency to your regular routine without requiring excessive time in a command line interface.

To open the Command Prompt, tap the Windows key, then enter cmd.

1. ECHO

On its own, the echo command ( go.pcworld. com/ech) has little relevance for the overwhelmi­ng majority of Windows users. (The Pcworld staff included.) But we like using one specific applicatio­n of it: echo off | clip. Entering this string into the Command Prompt clears the last item on your

Clipboard—helpful when you’ve copied sensitive informatio­n and are done with it. (This command won’t clear your full

Clipboard history though, so you’ll have to use Windows 10’s Clipboard settings to do that. You can also turn off history while you’re in that menu.)

An alternativ­e way to use this command is to open Windows 10’s Run command window (Win + R) and enter cmd /c “echo off | clip”. If you never use Run for anything else, it’ll remember this command whenever you next call it up, making it slightly faster than opening a fresh Command Prompt window each time.

2. POWERCFG

The powercfg command can be of use to both desktop PC and laptop owners, especially if you need to toggle the hibernatio­n feature ( powercfg / hibernate) or begin an investigat­ion into what’s disturbing your computer from sleep ( powercfg /lastwake).

But laptops benefit the most from the gem among powercfg’s operations: the battery report ( powercfg /batteryrep­ort). If you’ve felt like your battery life has taken a sudden dip, this informatio­n will share the battery level at certain points in time, along with the time it recently took to drain since last plugged in. By default, the report will save to your Windows 10 user folder under the name “battery-report.html.”

3. IPCONFIG

On its own, ipconfig gives a brief readout of the active networking hardware’s local IP address—useful for identifyin­g your PC when looking separately at your router’s list of connected devices.

But the real beauty of ipconfig is when Windows 10’s network troublesho­oting isn’t fixing your connection woes and you need to manually release ( ipconfig / release) and renew ( ipconfig /renew) your IP address. You can also see full detailed informatio­n of all of your networking hardware, including the MAC address for when you need to add it to a whitelist, whether or not it’s connected ( ipconfig /all).

4. TRACERT

Can’t connect to a website and want to figure out whether it’s you or the site? (As much as we wish it knew everything, downdetect­or. com doesn’t always catch every outage.) Use tracert to both test the connection and see where in the journey the trouble is, if any exists ( tracert [website address or ip address]).

The tracert command functions similarly to ping in that it sends out data packets to the site and waits for a response, but it also reports the details of the journey that the data takes. If a communicat­ion attempt times out, you’ll see where in the trip it happens, helping you to troublesho­ot. For

example, if you can’t even reach the first hop—your router—then you’ll want to start by looking at your connection to your home network.

Ping is better for answering the question “Is there a connection and how fast is it?” while tracert answers both that and “Where does the connection fail?” It’s more rare that we want only the informatio­n that ping reveals, hence tracert’s place of importance on this list.

5. SFC

When parts of the Windows interface start acting up—say, disappeari­ng taskbar icons—it may be time to lean on the System File Checker. Running sfc /scannow will check for corrupted files on your system and attempt to repair any files with problems.

To open a Command prompt as an administra­tor, hit the Windows key or click on Start button, then type cmd. Right-click on the result for the Command Prompt, then choose “Run as administra­tor.” As a slightly faster alternativ­e, you can also open a Powershell window as an administra­tor (Win+x or right-clicking on the Start button). It’ll work the same as the Command Prompt.

6. CHKDSK

You may already be familiar with chkdsk. After an unexpected shutdown, Windows will sometimes halt a reboot to run chkdsk in order to check for bad sectors and repair errors on the disk. If you suspect that one of your drives may have issues, you can initiate this same scan manually as well.

Open a Command Prompt as an administra­tor, then enter chkdsk to begin a read-only scan. You can also add a drive letter to specify which storage disk to check (for instance, chkdsk D:) and/or a switch to fix errors on disk (such as chkdsk /f), locate bad sectors and recover readable informatio­n (say, chkdsk /r), run an online scan on an NTFS volume (for instance, chkdsk D: / scan), and more. (Use chkdsk /? to get the full list of available switches.)

 ??  ??
 ??  ??
 ??  ?? Downdetect­or.com doesn’t catch every outage.
Downdetect­or.com doesn’t catch every outage.

Newspapers in English

Newspapers from Australia