Communiversity

Afrikan Liberation Institute => Math and Science (STEM) => Topic started by: Ajamu on Jul 30, 2013, 05:18 PM

Title: 10 Useful Windows Commands You Should Know-gctid88914
Post by: Ajamu on Jul 30, 2013, 05:18 PM
10 Useful Windows Commands You Should Know (http://www.howtogeek.com/168896/10-useful-windows-commands-you-should-know/)
                                                           (https://www.abibitumikasa.com/proxy.php?request=http%3A%2F%2Fcdn.howtogeek.com%2Fwp-content%2Fuploads%2F2013%2F07%2Fwindows-8-command-prompt.png&hash=c43f3847c34e7ab9f7234a8e5ca09218f463738e)

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

We can't possibly cover all the useful commands you can use in the  Command Prompt or PowerShell here. 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 You can find your IP address from the Control Panel, but this takes  quite a few clicks. 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 into a  Command Prompt window. 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 Local Area Connection if you're  connected to a wired network.

(https://www.abibitumikasa.com/proxy.php?request=http%3A%2F%2Fcdn.howtogeek.com%2Fwp-content%2Fuploads%2F2013%2F07%2Fipconfig-command4.png&hash=9e0f91aebe078341cb0816b39398176e0b732b08)
 ipconfig /flushdns – Flush Your DNS Resolver Cache If you change your DNS server (http://www.howtogeek.com/167239/7-reasons-to-use-a-third-party-dns-service/),  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.

(https://www.abibitumikasa.com/proxy.php?request=http%3A%2F%2Fcdn.howtogeek.com%2Fwp-content%2Fuploads%2F2013%2F07%2Fflush-dns-resolver-cache.png&hash=915b5a0406a0d40257906a83044e60f44cfdb41f)
 ping, tracert – Troubleshoot Network Connection Issues 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 google.com  and Windows will send packets to Google.com. Google will respond and  let you know it's received them. You'll be able to see if any packets  didn't make it to Google.com — perhaps you're experiencing packet loss —  and how long it took you to hear back — perhaps the network is  saturated and packets are taking a while to reach their destinations.

(https://www.abibitumikasa.com/proxy.php?request=http%3A%2F%2Fcdn.howtogeek.com%2Fwp-content%2Fuploads%2F2013%2F07%2Fping-command-on-windows.png&hash=5422787162878a6bace66e560b3ff14bbdb31224)

There's also the tracert command, which traces the route it takes for a packet to reach a destination. For example, run tracert google.com  and you'll see the path your packet takes to reach Google. If you're  having issues connecting to a website, tracert can show you where the  problem is occurring.

(https://www.abibitumikasa.com/proxy.php?request=http%3A%2F%2Fcdn.howtogeek.com%2Fwp-content%2Fuploads%2F2013%2F07%2Ftracert-command-on-windows.png&hash=a4bc87916353c2f4bbf353241746fc7b7e7d1ff7)

For more information about using these commands, read our introduction to troubleshooting Internet connection problems (http://www.howtogeek.com/126265/how-to-troubleshoot-internet-connection-problems/).

 shutdown – Create Shutdown Shortcuts on Windows 8 The shutdown command is particularly useful on Windows 8. You can use it to create your own shortcuts and place them on your Start screen (http://www.howtogeek.com/77061/how-to-add-shutdown-restart-sleep-to-the-windows-8-metro-start-screen/) or desktop, allowing you to more easily shut down Windows without digging through the charms bar or logging out first.

This command can also be used to restart your computer. On Windows 8,  you can even use a special switch to restart your computer into the advanced startup options menu (http://www.howtogeek.com/131916/how-to-use-the-advanced-startup-options-to-fix-your-windows-8-computer/).
 
'""'

(https://www.abibitumikasa.com/proxy.php?request=http%3A%2F%2Fcdn.howtogeek.com%2Fwp-content%2Fuploads%2F2013%2F07%2Fcreate-shut-down-shortcut-on-windows-8.png&hash=5aea9cbf6c03042e11759093e234923846a6bb00)
 recimg – Create Custom Recovery Images The Refresh Your PC feature on Windows 8 (http://www.howtogeek.com/132428/everything-you-need-to-know-about-refreshing-and-resetting-your-windows-8-pc/)  allows you to restore your computer's system state to its original  state — either from a clean Windows install or as the computer came from  its manufacturer. You can create your own custom recovery images, but  this feature is hidden — you have to do it with the recimg command from a command line. This allows you to remove manufacturer-installed bloatware (http://www.howtogeek.com/163303/how-computer-manufacturers-are-paid-to-make-your-laptop-worse/) or add your favorite desktop programs to your recovery image.
 For more information about using recimg, read our overview of everything you need to know about creating and using custom recovery images on Windows 8 (http://www.howtogeek.com/167831/everything-you-need-to-know-about-creating-custom-recovery-images-for-windows-8/).

(https://www.abibitumikasa.com/proxy.php?request=http%3A%2F%2Fcdn.howtogeek.com%2Fwp-content%2Fuploads%2F2012%2F04%2Fimage310.png&hash=9a7265d37db59bdeb3d4f8ee5c6e28cb6a69b6b9)
 wbadmin start backup – Create System Recovery Images Windows 8.1 removes the Windows 7 backup interface (http://www.howtogeek.com/131541/how-to-use-windows-7s-backup-tools-in-windows-8/),  which allowed you to create system backup images. These system images  contain a complete snapshot of every single file on the system, so  they're different from Windows 8′s recovery images.

While the graphical interface has been removed, system administrators and geeks can still create system image backups by running the wbadmin start backup cmdlet in a PowerShell window (http://www.howtogeek.com/167984/how-to-create-and-restore-system-image-backups-on-windows-8.1/). Unlike all the other commands here, this command-line tool must be run from within PowerShell, not the Command Prompt.

(https://www.abibitumikasa.com/proxy.php?request=http%3A%2F%2Fcdn.howtogeek.com%2Fwp-content%2Fuploads%2F2013%2F07%2Fcreate-system-backup-image-from-powershell.png&hash=fb0a6ddd57bb7ce6ce4c6a6b0a49312c5d35aac2)
 sfc /scannow – Scan System Files for Problems Windows includes a system file checker tool that scans its 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.

(https://www.abibitumikasa.com/proxy.php?request=http%3A%2F%2Fcdn.howtogeek.com%2Fwp-content%2Fuploads%2F2013%2F07%2Fsfc-scannow.png&hash=e2505ade4a41e543e6a27f5372b9991cb9d0aecf)
 telnet – Connect to Telnet Servers The telnet client isn't installed by default. You'll have to install it from 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.

(https://www.abibitumikasa.com/proxy.php?request=http%3A%2F%2Fcdn.howtogeek.com%2Fwp-content%2Fuploads%2F2013%2F07%2Finstall-windows-telnet-client.png&hash=8a0bad459d58a6b1768433db3d85e768f4301706)
 cipher – Permanently Delete and Overwrite a Directory 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 (http://www.howtogeek.com/125521/htg-explains-why-deleted-files-can-be-recovered-and-how-you-can-prevent-it/)  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:
 ciper /w:C:

(https://www.abibitumikasa.com/proxy.php?request=http%3A%2F%2Fcdn.howtogeek.com%2Fwp-content%2Fuploads%2F2013%2F07%2Fcipher-wipe-drive.png&hash=61b0619d912fac93212c673034e27123825d9e07) (http://cdn.howtogeek.com/wp-content/uploads/2013/07/cipher-wipe-drive.png)
 netstat -an – List Network Connections and Ports 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.

(https://www.abibitumikasa.com/proxy.php?request=http%3A%2F%2Fcdn.howtogeek.com%2Fwp-content%2Fuploads%2F2013%2F07%2Fnetstat-show-connections.png&hash=db692028f919a264816e8e0ce08e0c375828fcf0)

 

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. Linux isn't the only operating system where  users can benefit from learning some commands (http://www.howtogeek.com/140679/beginner-geek-how-to-start-using-the-linux-terminal/).