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

Configuring Windows Mobility Center and How to Turn it On and Off

1 1433 1

Video transcription Steve Fullmer: In our Windows training courses, we often share information about the Windows 8.1 Mobility Center. Mobility Center was introduced for mobile and laptop devices in Windows 7. It’s present and somewhat enhanced in Windows 8. Since we don’t have mobile devices in our classrooms, I decided to take a little bit … Continue reading Configuring Windows Mobility Center and How to Turn it On and Off

OSPF Adjacency Troubleshooting Solution – Getting Close to the OSPF adj

0 249 1

In this video, Cisco CCNA & CCNP instructor Mark Jacob shows how to troubleshoot OSPF Adjacency issues by showing the distance between routers with the show ip ospf neighbor command.

Write a Comment

Share your thoughts...

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