Tuesday 1 August 2017

10 Useful Windows Commands You Should Know

10 Useful Windows Commands You Should Know

There are some things you can only do from the command line—even in Windows. Some of these tools don’t have graphical equivalents, while others are just plain faster to use than their graphical interfaces.

If you’re into using PowerShell over Command Prompt, you should note that all the commands we’re covering in this article work just the same in either tool. And obviously, we can’t possibly cover all the useful commands that these tools offer. Instead, we’ll be focusing on commands that should be useful even if you’re not a command-line person.

ipconfig: Quickly Find Your IP Address

10 Useful Windows Commands You Should Know


You can find your IP address from the Control Panel, but it takes a few clicks to get there. The ipconfig command is a fast way of determining your computer’s IP address and other information, such as the address of its default gateway—useful if you want to know the IP address of your router’s web interface.

To use the command, just type ipconfig at the Command Prompt. You’ll see a list of all the network connections your computer is using. Look under “Wireless LAN adapter” if you’re connected to Wi-Fi or “Ethernet adapter” if you’re connected to a wired network. For even more details, you can use the ipconfig /all command.

ipconfig /flushdns: Flush Your DNS Resolver Cache

10 Useful Windows Commands You Should Know

If you change your DNS server, the effects won’t necessarily take place immediately. Windows uses a cache that remembers DNS responses it’s received, saving time when you access the same addresses again in the future. To ensure Windows is getting addresses from the new DNS servers instead of using old, cached entries, run the ipconfig /flushdns command after changing your DNS server.

ping and tracert: Troubleshoot Network Connection Issues

10 Useful Windows Commands You Should Know


If you’re experiencing issues connecting to a website or other network connection issues, Windows and other operating systems have some standard tools you can use to identify problems.

First, there’s the ping command. Type ping xyz.com (whatever Internet server you want to test) and Windows will send packets to that address. You can use either a name or the actual IP address. The server at that IP address will respond and let you know it’s received them. You’ll be able to see if any packets didn’t make it to the destination—perhaps you’re experiencing packet loss—and how long it took to get the response—perhaps the network is saturated and packets are taking a while to reach their destinations.

The tracert command traces the route it takes for a packet to reach a destination and shows you information about each hop along that route. For example, if you run tracert Way2Trick.blogspot.com, you’ll see information about each node the packet interacts with on its way to reach our server. If you’re having issues connecting to a website, tracert can show you where the problem is occurring.

10 Useful Windows Commands You Should Know

For more information about using these commands—and other great tools for figuring out why your network or Internet connection is giving you problems—check out our introduction to troubleshooting Internet connection problems.

shutdown: Create Shutdown Shortcuts for Windows

10 Useful Windows Commands You Should Know


The shutdown command lets you shut down or restart Windows. Admittedly, it was more useful in Windows 8 (where the shut down button was harder to access), but still handy no matter what version of Windows you use. You can use the command to create your own shortcuts and place them on your Start menu, desktop, or even taskbar.

In Windows 8 and 10, you can even use a special switch to restart your computer into the advanced startup options menu. To use the command at the Command Prompt or when creating a shortcut, just type one of the following:

shutdown /s /t 0: Performs a regular shut down.

shutdown /r /t 0: Restart the computer.

shutdown /r /o: Restarts the computer into advanced options.

sfc /scannow: Scan System Files for Problems

10 Useful Windows Commands You Should Know

Windows includes a system file checker tool that scans all the Windows system files and looks for problems. If system files are missing or corrupted, the system file checker will repair them. This may fix problems with some Windows systems.

To use this tool, open a Command Prompt window as Administrator and run the sfc /scannow command.

telnet: Connect to Telnet Servers

10 Useful Windows Commands You Should Know

The telnet client isn’t installed by default. Instead, it’s one of the optional Windows features that you can install through the Control Panel. Once installed, you can use the telnet command to connect to telnet servers without installing any third-party software.

You should avoid using telnet if you can help it, but if you’re connected directly to a device and it requires that you use telnet to set something up—well, that’s what you have to do.

cipher: Permanently Delete and Overwrite a Directory

10 Useful Windows Commands You Should Know

The cipher command is mostly used for managing encryption, but it also has an option that will write garbage data to a drive, clearing its free space and ensuring no deleted file can be recovered. Deleted files normally stick around on disk unless you’re using a solid state drive. The cipher command effectively allows you to “wipe” a drive without installing any third-party tools.


To use the command, specify the drive you want to wipe like so:

cipher /w:C:\

Notice that there is no space between the switch ( /w: ) and the drive ( C:\ )


netstat -an: List Network Connections and Ports

10 Useful Windows Commands You Should Know


The netstat command is particularly useful, displaying all sorts of network statistics when used with its various options. One of the most interesting variants of netstat is netstat -an , which will display a list of all open network connections on their computer, along with the port they’re using and the foreign IP address they’re connected to.

nslookup: Find the IP Address Associated With a Domain

10 Useful Windows Commands You Should Know


When you type a domain name (say, into a browser address bar), your computer looks up the IP address associated with that domain name. You can use the nslookup command to find that information out for yourself. For example, you could type nslookup Way2Trick.blogspot.com at the Command Prompt to quickly find out our server’s assigned IP address.

You can also perform a reverse lookup by typing an IP address to find out the associated domain name.


This isn’t a comprehensive list of all the commands you might find useful, but we hope it’s given you some idea of the many powerful tools lurking under the surface. 

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Labels

404 AdBlock Add-on Airtel GPRS Trick Airtel SMS Trick Alexa Amazon Amazon Kindle Amazon Prime Android Android 8 Android Oreo antivirus Apple Apple Mac ASCII Audacity Audio Authotkey Backup Balance Transfer in Vodafone Battery Bing Blogger Blogging Bookmarklet Browser Camera Chromebook clock Cloud colors command lines Computer Computer Tricks configuration Contact Creative Commons Credit Card CSS devolop DIY Doodle DOS Download Dropbox E-Mail eBook Email Email Attachment Embed Encryption English Error Evernote Eyes Facebook Facebook Tricks Feedburner Flipkart Font Foursquare Free Internet Free sms trick in Vodafone G Mail Gadget Game Getty Images GIF Gists Github Google Google AdSense Google Analytics Google Apps Google Chrome Google Contacts Google Currents Google DNS Google Docs Google Drive Google Earth Google Font Google Forms Google Images Google Map Google Photos Google Play Store Google Plus Google Print Google Reader Google Script Google Sheets Google Spreadsheet Google Translate GPRS Setting GPS Hacking Health App HelloFax Hindi Hoodie HTML Icons idea Image Editing Images IMEI Indian Railways Infographics Instagram Internet Internet Explorer Internet Tricks iOS iPad iPhone IRCTC iTunes iTV JavaScript JioCinema JioTV Junglee Kindle Language Translation Laptop Laptop. TV Life Time FREE GPRS Life-Style Link Linkedln Linux logo Make Money Online Microdoft Powerpoint Microdoft Word Microsoft Office Microsoft Outlook Mobile Mosaic Music Name Networking nexus Notepad OCR Online Shopping Open DNS OS Outlook Password PDF Petya Phillips Hue Lights Photogtraphy Pixel Play Station Podcasts Pokemon Pokemon Go Polls Print Productivity Proxy Server Pushbullet QR Code Ransomware Reddit Reliance Hack GPRS Reliance Jio RGB Ringtone Router RSS Safe Mode Samsung Galaxy S Scrabble Screen Capture Screen Sharing Screencast Secrets Security Send free sms from PC SEO Sierra Skype Slideshare SMBv1 SMS Snapchat Snapdeal Social Media Solution Sound Device Speech Recognition Sql Steam Sync Synology NAS Tata Docomo GPRS trick Teleprompter Torrent Trick Tricks TV Twitter UltraISO Unicode Unknown Extension Unlimited 2GB Unlimited 3GB Unlimited GPRS USB USB Security Key Video Editing virtual desktop Virus attack VLC Vodafone 110% working trick for GPRS Vodafone 3g Vodafone GPRS VPN wallpapers WannaCry Web Design Web Domain Website Wget Whatsapp WiFi Wikipedia Windows Windows 10 Windows 10 S Windows KN Windows Tricks windows updates Winows N Wolfarm Alpha WordPress XBox YouTube Zip
Twitter Delicious Facebook Digg Stumbleupon Favorites More