Skip to main content

Top 5 important Command Prompt Command Hack You Probably Don't Know


5 Command Prompt Hacks You Probably Don’t Know

I love the Windows Command prompt because I often get things done faster by typing a command rather than hunting down an icon or nested menu setting.
I’ve discovered that as I’ve used the command prompt, I’ve adopted my own shortcuts, I’ll call them hacks, that have really boosted my productivity.
Here are my top five:

1. Copy Path on Folder Drop

I have a file whose path is C:\xampp\htdocs\Vonster\wp-content\themes\twentytwelve that I needed but look at that folder path: if I manually type it I’ll instantly make myself susceptible to all kinds of typos plus I’m lazy and couldn’t care less about typing folder paths.
To paste the full path, just drag the folder and drop it into the command prompt.

In my case I typed cd in the command prompt and then dragged my folder into the command window.
Command Prompt Drop Paste
trickntools.blogspot.com

2. View history with F7

One way to recount the list of commands you typed during a session is to press the up and down arrow keysUp goes back in time and Down moves forward to the present.  You probably already knew that; however, there’s an alternate way that can save you a few keystrokes.
Pressing F7 lets you see your 10 most recent commands in a single glance.  Now you can arrow up or down and press enter on the exact command you need to recall.
Command Prompt History with F7

3. Pretty Print the Current Directory

Whenever you want to view the directory contents you type dir but sometimes you just want to view the structure without the datestamps and file sizes.  Welcome to the tree /a command.

tree let’s you view all the folders and subfolders of the current directory as a rudimentary ASCII art print out.
Since the output is usually long, I always add the redirection operator to send the results to a file.

Command Prompt tree /a command

And here’s the text file I saved the output to.
I entered this command from C:\xampp\htdocs\Vonster.  If I entered it from C:\xampp\htdocs\ I would get every folder and subfolder in the htdocs parent
tree /a > c:\vonsterWebsite.txt
Command Prompt tree /a command output

4. Send Command Output to the Clipboard

A related command is the clip option.  After any command insert a space then type the vertical pipe (it’s right below the backspace and shares a key with the backslash).  After the pipe insert another space and type clip.

For example to send the ipconfig results to your clipboard rather than the command prompt window – type this:
ipconfig /all | clip
Send Output to the Clipboard

5. Get Help

The quick way to get help on a command is to tack on a baskslash and question mark.

For example, let’s say I want to use netsh but I forgot how to view all the Wireless Profiles on my computer.
I enter:
netsh /?
Command Prompt Help
Now I can see a list of every netsh command…
Near the bottom of the list I see a command called wlan.  Hmm maybe that’s it.   Let’s give it a shot.
netsh wlan /?
Command Prompt Help 2
Now I’ve arrowed down the list…
Perhaps the show command will do the trick.
netsh wlan show /?
Command Prompt Help 3
And there it is near the bottom of the list: show profiles.
netsh wlan show profiles












































































Comments

Popular posts from this blog

About Basic Networking Topology

           Basic Networking Topology This article describes common topologies used for networking. These are a very basic examples, and large networks often use a combination of two or more topologies. Introduction The term "topology" is used to describe the infrastructure of a network. It is a basic map or scheme of how the network is constructed. Viewing the topology of a network is a lot like looking at the map of city. You can see the central points or landmarks. Popular points of the cities are usually surrounded by a dense population of residents. The same is true for computer networks. The popular points (usually servers) are surrounded by residents (client machines) that connect to the server. If you read a networking book about topology, they will probably cover the physical types of topologies like star, ring, bus, and mesh. While these were all commonly used topologies at one point in time, star...

How to hack mozilla firefox brower with in seconds and increase the speed 3X.

Amazing Mozilla Firefox Tips and Tricks To Improving Your Browsing Experience The use of Mozilla Browser is very common browser now a days. Today I  am share some very useful tricks.  Here are some simple tricks which I gathered from different website .    1. THIS IS  SIMPLE TRICK IN MOZILLA FIREFOX WHERE YOU CAN INCREASE YOUR SPEED ITS JUST 3 STEPS FOLLOW THE INSTRUCTION : Step 1:- Type “about:config” into the address bar(URL Bar) of Mozilla firebox and then press enter . And find some code .   Step 2:- Now Alter(changes) the entries as follows:     Set “network.http.pipelining” to “true” then   Set “network.http.proxy.pipelining” to “true”    set “network.http.pipelining.maxrequests” to some number like 29 or 30. This means it will make 29 or 30 requests at once. Step 3:- In the last step right-click anywhere and select New-> Integer . Name it “nglayout....

How to hack anyone System in seconds and Create viruses

G et some knowledge about virus... What is Virus ?  A computer virus is a program or piece of code that is loaded onto your computer without your knowledge and runs against your wishes. All computer viruses are man-made. A simple virus that can make a copy of itself over and over again is relatively easy to produce. Even such a simple virus is dangerous because it will quickly use all available memory and bring the system to a halt. An even more dangerous type of virus is one capable of transmitting itself across networks and bypassing security systems   Create Virus on Notepad : It is very easy to create a virus on notepad   H ow to open notepad follow these steps 1. P ush win + R then new window will open then type notepad and click on OK . After that notepad will open then type or paste these command and make a virus.   1 -> Virus Creation Tricks 1 Just open the Notepad and type the paste the following Code. set ws=createobje...