The command line (or Terminal for you Mac fans) is a throwback to a simpler age of computing, before mouse pointers and application windows and desktop wallpaper. Back when it was just you and a window full of text. Operating systems have long since evolved beyond the humble command line interface, but there’s still no better tool for quickly disseminating complex information in your operating system—and you can actually do some other pretty cool stuff with them, too.

For Windows Users

In Windows you can launch the command line by typing “cmd” into the search box on the taskbar and hitting Enter, but for some of these commands you need administrator privileges. To get those, launch Task Manager (Ctrl+Shift+Esc), then choose File and Run new task. Enter “cmd” in the box, tick the admin privileges box beneath, and then click OK.

Some of these commands will throw up many screens of text, but you can use the “| more” flag after any of them to go a screen at a time (that’s the pipe character at the start). Alternatively, use “> c:export.txt” to send the output to a text file, changing its name and location as you like.

1) View installed drivers

If you’re troubleshooting hardware problems or just want to know if something’s installed successfully, seeing a list of installed drivers can help: type “driverquery”, hit Enter, and you get a list of all the current Windows drivers, alongside install dates and display names.

2) Watch Star Wars in ASCII

No, really. Enable Telnet in Windows via Control Panel (click Programs then Turn Windows features on or off), then open up a command prompt window and type “telnet” then hit Enter. The same trick works on macOS, by the way—though your telnet is automatically enabled. 

3) Save folder trees to disk

Struggling to get an overview of all the nested folders on a drive? The command line can help. Type “tree” and hit Enter to see the current folder and its subfolders neatly laid out; add “> c:export.txt” to save the results in a text file that you can browse at your leisure. 

4) Scan for system problems

Nobody wants their Windows system crashing and shutting down on a regular basis, and if you’re currently having problems then the “sfc /scannow” command (which launches the System File Checker tool) checks the most important OS files and fixes them, if possible. 

5) Show your Wi-Fi password

Forgotten your Wi-Fi password? No problem with the command “netsh wlan show profile SSID key=clear”, replacing “SSID” with the Wi-Fi name of the network. If you’re not sure about the networks you’ve connected to, use the “netsh wlan show profile” command. 

6) Shut down your computer later

You can get your computer to shut down at some point in the future with the “shutdown” command. Add “-t xxx” to shut down with xxx being the number of seconds (from 0 to 315,360,000, which is ten years) and “-f” to force close any ‘you’ve got unsaved work’ dialog boxes. So if you wanted to shut your computer down in 636 seconds you would type “shutdown -f -t 636” 

7) Check your laptop’s battery health

The command prompt can give you a pretty detailed and technical readout of the battery health of your laptop (or tablet): Type “powercfg /batteryreport” and hit Enter to generate the report, then open C:WINDOWSsystem32battery-report.html to view the findings. 

8) View your Windows license key

Lost your Windows license key again have you? If it’s not written on a sticker on your computer’s case then you can find it by typing “wmic path softwarelicensingservice get OA3xOriginalProductKey” into the command prompt window and hitting Enter. 

9) Fix internet problems

The command “ipconfig” shows your network connection status (the gateway is your router, if you need to know its IP), but you can also use “ipconfig /release” and then “ipconfig /renew” to reset your internet connection, which can solve multiple issues. 

10) Find information about your computer

It’s not always easy to work out where to find your computer’s specs—that is, it’s not easy unless you use the command line. Type “systeminfo”, press Enter, and you get a detailed readout of everything from the amount of RAM installed to when the last reboot was.


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.