Windows command prompt tricks – How to copy and paste text plus single keystrokes

Home > Blogs > CompTIA > Windows command prompt tricks – How to copy and paste text plus single keystrokes

Windows command prompt tricks – How to copy and paste text plus single keystrokes

1 0 Mark Jacob
Added by March 26, 2012

It seems that we chug along with the same commands over and over in our daily lives as network admins. More than likely we are on the PowerShell bandwagon and learning it as fast as we can. In the meantime, we may still be using our old standby commands in the Windows command prompt just because we have been using them for so long and don’t want to let them go. I just wanted to mention a couple of tricks that I have found to be useful.

The first one that I love to use stems from my constant attempts to copy text from the command prompt window and failing miserably. Well, there is a way around this failure. Let’s take a look at a command prompt window:

Windows command prompt

If you click on the little black C:\ at the top left of the window, notice what you get:

Windows command prompt copy paste

 

 

 

 

Windows command prompt copy paste edit
Then select Edit, which pops out more choices:

Windows command prompt copy paste more choices

Now I want to select some text, so I have just typed dir to see some output:

Windows command prompt dir trick

I followed the steps above until I could click Mark. Then I just used my mouse to select the text. Once it is highlighted, just hit enter to put it in your clipboard. You can go to your document, your explorer address bar, or anywhere else and paste it in just like any other clipboard contents. I will use Ctrl-V on the text I have highlighted above and watch what happens: WinXP_x64_5400_storage_included_ISO.

As easy as that, I have copied from the command prompt and used the text!

Another command prompt trick is just to save a single keystroke in executing a command. It may not seem like much, but a network admin will use this command many times in a day, so over a long time this can add up. The command is ipconfig/all (or ipconfig/release & ipconfig/renew). You will notice that there is no space in the command. The space is unnecessary. So save a keystroke and leave the space out. Over the course of your entire IT career this could add up to several minutes. Don’t worry, you’ll thank me later.

If you have your own favorites, feel free to drop me a comment. I always enjoy learning other time saving steps and tricks, which means I am happy to leach from your experience and use it as my own.

Until next time…

Mark Jacob
Cisco Instructor – Interface Technical Training
Phoenix, AZ

Videos You May Like

A Simple Introduction to Cisco CML2

0 3877 0

Mark Jacob, Cisco Instructor, presents an introduction to Cisco Modeling Labs 2.0 or CML2.0, an upgrade to Cisco’s VIRL Personal Edition. Mark demonstrates Terminal Emulator access to console, as well as console access from within the CML2.0 product. Hello, I’m Mark Jacob, a Cisco Instructor and Network Instructor at Interface Technical Training. I’ve been using … Continue reading A Simple Introduction to Cisco CML2

Creating Dynamic DNS in Network Environments

0 641 1

This content is from our CompTIA Network + Video Certification Training Course. Start training today! In this video, CompTIA Network + instructor Rick Trader teaches how to create Dynamic DNS zones in Network Environments. Video Transcription: Now that we’ve installed DNS, we’ve created our DNS zones, the next step is now, how do we produce those … Continue reading Creating Dynamic DNS in Network Environments

Cable Testers and How to Use them in Network Environments

0 724 1

This content is from our CompTIA Network + Video Certification Training Course. Start training today! In this video, CompTIA Network + instructor Rick Trader demonstrates how to use cable testers in network environments. Let’s look at some tools that we can use to test our different cables in our environment. Cable Testers Properly Wired Connectivity … Continue reading Cable Testers and How to Use them in Network Environments

Write a Comment

Share your thoughts...

Please fill out the comment form below to post a reply.