Friday 2 August 2013

10 Most Useful commands

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.Here is list of most important commands.
1. 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.
use command ipconfig

2. ipconfig /flushdns – Flush Your DNS Resolver Cache

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.


3. ping - Find IP Address of Any website

Ever wanted to find IP address of website?? just try this comand and you will ger IP address.
ping ENTER WEBSITE ADDRESS




*note: replace ENTER WEBSITE ADDRESS with you website
e.g. ping facebook.com
After giving ping facebook.com  Windows will send packets to facebook.com. facebook will respond and let you know it’s received them. You’ll be able to see if any packets didn’t make it to facebook.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.

4. tracert - Find the route of packets to reach destination


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.






















5. 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 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.










right click on desktop go to new→shortcut. window will appear paste this command there and click next. done!!
  • Shut Down: shutdown /s /t 0
  • Restart: shutdown /r /t 0
  • Restart Into Startup Options: shutdown /r /o

6. 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.

7.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.

8. 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 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:\

9. netstat -an – List Network Connections and Ports become 


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.
























10.Become a command Prompt Power User with Function Keys


The fact that the function keys actually do something in the Command Prompt is maybe one of the best kept secrets about the tool:
F1: Pastes the last executed command (character by character)
F2: Pastes the last executed command (up to the entered character)
F3: Pastes the last executed command
F4: Deletes current prompt text up to the entered character
F5: Pastes recently executed commands (does not cycle)
F6: Pastes ^Z to the prompt
F7: Displays a selectable list of previously executed commands
F8: Pastes recently executed commands (cycles)
F9: Asks for the number of the command from the F7 list to paste


0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...