How to use Windows Terminal and what it’s useful for

Delving into the depths of Windows and macOS reveals a command line console, a nostalgic echo from the early days of computing when user interfaces were predominantly text-based. For those who remember the days of launching applications through typed commands rather than clicks, the charm of the command line remains intact. Despite the convenience of modern graphical interfaces, these classic commands still hold significant utility for various tasks.

Exploring the Command Line

Windows has preserved the Command Prompt utility, a nod to its MS-DOS heritage. This was later enhanced with PowerShell, which offers additional features. In the latest iterations of Windows 11, both Command Prompt and PowerShell have been integrated into a singular tool known as Windows Terminal. Accessing this tool is straightforward:

  • Search for Terminal.
  • Right-click on the program icon and select Run as administrator to unlock all features.

With Windows Terminal at your fingertips, a world of commands awaits. Here are some noteworthy commands that can enhance your computing experience:

1. Schedule a Timed Shutdown

shutdown /s /t 600

While shutting down via the Start menu is simple, Terminal offers more flexibility, such as scheduling a shutdown. The command above initiates a shutdown (“/s”) after a delay of 600 seconds. Adjust the timing as necessary. For troubleshooting, the command “shutdown -r -o” restarts your computer and opens the Advanced Start Option menu.

2. Visualize Your Folder Structure

tree

Typing “tree” provides a visual representation of your folder hierarchy, allowing you to see how your Windows drive is organized. You can specify a drive or folder path for a focused view and include the “/f” flag to list files alongside folders.

3. Troubleshoot Network Issues

ipconfig /flushdns

The “ipconfig” command is a staple for network troubleshooting. By adding the “/flushdns” flag, you reset connections between your computer and the websites you visit, which can resolve loading issues. Additionally, “ipconfig /release” followed by “ipconfig /renew” can refresh your IP address, potentially fixing connectivity problems.

4. Gather System Information

systeminfo

The “systeminfo” command reveals a wealth of information about your system, including your Windows version, CPU model, RAM, storage, active network connections, and even the last boot time.

5. Check for Drive Errors

chkdsk

Beloved by IT professionals, the “chkdsk” command checks your system disk for errors. It can fix fundamental issues and recover data if needed. To enhance its functionality, append “/r” to attempt repairs while recovering data. Use “chkdsk /?” for additional options.

6. Monitor Running Tasks

tasklist

The “tasklist” command provides insights similar to the Task Manager, displaying applications that may be taxing your system. You can terminate troublesome applications using “taskkill /pid /f” based on the process ID numbers displayed.

7. Analyze Power States

powercfg /a

This classic command reveals all supported sleep states of your computer. For a detailed battery report, use “powercfg /batteryreport,” which saves the report in the current user account’s default folder. You can also identify devices that can wake your computer from standby.

8. Verify System Integrity

sfc /scannow

The “sfc /scannow” command checks the integrity of essential operating system files and applies necessary fixes. It’s a common recommendation for addressing bugs and crashes in Windows 11.

9. Access Advanced Networking Information

netstat

The “netstat” command provides information about all devices connected to your computer. You can further refine this command to see which applications are communicating online by using “netstat -b,” helping you identify any unexpected network activity.

Winsage
How to use Windows Terminal and what it’s useful for