Ten Best Windows 7 Command Line "CMD Prompt" Commands to get you started
The Best Windows 7 cmd's (via the command console) are usually dodged by PC users. Maybe they don’t know how to get to them, what they are, or what they can do. Perhaps they don’t know the best Windows 7 cmd (commands) to use or how useful these simple Windows cmd's can be. (Hey, job security for me right?).
If you're one of these people, this article is for you. In this brief article I'll showcase the ten best Windows 7 cmd's to get you started.
Ready? Grab that energy drink and let's get to it!
First, from the Windows 7 desktop, click the Windows icon in the bottom left corner of your screen. See where it says "search programs and files"? (your Windows search), type "cmd" (without the quotes). You'll see a black screen. This is your Windows 7 cmd prompt.
TIP - You can also get to the Windows cmd prompt by using the "Run" console. Open the console by pressing the "Windows" + "R" keys at the same time. Then type "cmd" (without the quotes) and you'll see the black screen, your Windows 7 cmd console.
TIP - If you like shortcuts (who doesn't), you can get more Windows Hotkeys here.
Here are my ten best Windows 7 cmd's to get you started:
XCOPY. Very useful Windows cmd for copying files. Say you want to copy your photos from your C drive to your external drive (always a good idea to backup), type XCOPY c:\photos f:\photos /s /e (where f is your external drive). For more detail on usage and syntax, a link to my XCOPY blog can be found at the end of this list or here.
IPCONFIG. Probably one of the best Windows 7 cmd's available, and most used. Very useful Windows cmd to see your PC's network connections. See PIC below: The first set of numbers (IPv4 Address), is your computer's IP address on your local network. The last set of numbers shown is your gateway. The gateway is the address of your router. This information comes in handy with the next Windows cmd – Ping.
3.PING. As a network admin I literally used the ping command on a daily basis. It's probably the simplest and one of the best Windows 7 cmd's to use. It's very useful in determining if your computer is connected to the network\internet or not. Say your internet is down, try to ping the gateway address found above. You should see four responses. If you see “Destination host unreachable”, you lost the connection somewhere. TIP -(check your cables).
4. /? - The command line "options" switch is a great Windows switch to get familiar with. It will show you the syntax and available options for a given Windows cmd. For example ipconfig.
Ipconfig /? will show you options such as /flushdns. (sometimes I will use /flushdns on computers (especially laptops) when I want to clear the local dns information (cache). (DNS translates numbers into words – for example www.google.com is also 126.96.36.199.TIP– I found that out by using the ping command --- ping www.google.com
5. Copy from command line window. Ok, not really a “Windows 7 cmd", but a really handy method to help you master the Windows 7 cmd console. Say you're lazy (like me), and don’t feel like writing down the ipaddress information you just got from your ipconfig command you just entered. No problem, just right click the top bar, go to edit, "select all". Then select copy (right click the bar again, edit, select "copy").. You may paste (CTRL + V) into Microsoft Word, or really any text editor that you prefer.
6. Copy to the command line window. Now, say that you want (need) to use the Windows 7 cmd prompt in a specific Windows directory,..... that happens to be 5 folders deep. (It happens all of the time, trust me). Being lazy (me not you...), I will simply highlight the address in Windows explorer (in Windows 7 click once to get the physical path -- see pic), copy (CTRL + C), and then paste into the Windows 7 cmd console by right clicking into the command line window and selecting paste. TIP - (Use this command with the command I’m about to show you – "CD".
7. CD. (short for chdir). This command will let you change to another directory. For example, I am lost and just want to get back to the C drive. I will type cd c:\. (Being lazy, I almost actually pasted c:\ ).
8. DIR. This command will show you the contents of a directory. Sometimes it's good to know what's on your pc without having to navigate through windows explorer.
9. Help. This easily made the best Windows 7 cmd list. Unless you have photographic memory, You can't possibly memorize all of the Windows 7 cmd's that are available. The "Help" cmd is your best friend. Feeling comfortable with the Windows 7 cmd console? Type help to get a larger list of options available. TIP – be sure to read up on a specific Windows cmd before you start typing away. Experiment, but never guess.
10. EXIT. This command will close the window so you don’t have to lift your hand and move the mouse to that little red x in the corner.
Master this list of the ten best Windows 7 cmd's to get you started, and you'll be able to navigate your way through the console with ease. But why stop now? Grab another energy drink and check out part 2.