Skip to content

Instantly share code, notes, and snippets.

Created January 4, 2015 12:20
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roachhd/6baf431171eeeb0a1cbe to your computer and use it in GitHub Desktop.
Save roachhd/6baf431171eeeb0a1cbe to your computer and use it in GitHub Desktop.
Command Prompt Tricks, Hacks & Codes

Command Prompt Tricks, Hacks & Codes

Command Prompt is one of the most powerful tools in Windows; but sadly, it is also the most ignored one. Things were not always like this; but with the advent of GUI based operating systems, people started feeling that computing through command based tools was boring. This ultimately lead the command prompt into obscurity.

However, the command prompt is not useless. In fact, it can be pretty useful. This article provides some excellent tricks, secrets and hacks that will make you realize that the Windows Command Prompt is not only useful but also a tool that you should definitely give more respect to.

Ascii star wars command prompt

1-Watch ASCII version of the Star Wars Episode IV movie
Surprised yet? You can watch an ASCII version of the full Star Wars Episode IV Movie right in your command prompt window. Just open command prompt, type a small code and the movie will start playing immediately. Read the complete instructions here.

2- Create Matrix falling code effect
Have you watched "The Matrix"? Of course, you have. Then, you already know what I am talking about. In case you still don't know what I mean, take a look at this image! You can create the same effect in command prompt using just a few lines of code. Head over to this post for instructions.

command prompt tricks

3- Make Folders that you cannot delete
Are you tired of accidentally deleting important folders? Well, if you are, you can learn how to make undeletable folders here.

4- Shutdown your computer giving a funny reason
What if your computer shuts down saying that it is tired and doesn't want to work anymore? It would be fun, wouldn't it? You can do so by reading the instructions here.

5- Know your IP address, DNS Server's address and a lot more about your Internet Connection
Command Prompt can even let you know your IP address. Just type ipconfig/ all in the command prompt and press Enter. Along with your IP address and DNS servers, command prompt will also return a ton of information like your host name, primary DNS suffix, node type, whether IP Routing ,Wins Proxy, and DHCP are enabled, your network adapter's description, your physical (MAC) address etc .

6- Know if your neighbours are stealing your WiFi connection

command prompt codes

Command Prompt can let you know if someone is connected to your Local Area Connection and using it. Just follow the steps:-

  1. Open your browser and visit or depending on your router.
  2. Find the tab that mentions "Attached Devices" or something similar.
  3. Find the computer name, IP address and MAC Address (sometimes called Physical Address or Hardware Address) of your computer using the previous trick.
    4 )Compare it with those displayed by your router in Step 2. If you notice some strange devices, then your neighbour has been sneaking in on your internet connection and it is best to add a password.

7- Know if someone is hacking your computer/ Trace a Hacker

Command Prompt hacks

Want to know if someone is hacking your computer? Command Prompt can help you find if someone you don't know is connected to your computer stealing private data. Just execute netstat -a and the command prompt will return a list of computers that your computer is connected to. In the results returned, Proto column gives the type of data transmission taking place (TCP or UDP) , Local address column gives the port with which your computer is connected to an external computer and the Foreign Address column gives the external computer you are connected to along with the port being used for the connection. State gives the state of the connection (whether a connection is actually established, or waiting for transmission or is "Timed Out").

These tricks work on Windows 8.1, Windows 8, Windows 7, Windows Vista, Windows XP and all previous versions of Windows.

Now you know just how useful command prompt can be. Find more awesome tips and tricks in the Tricks section.

Copy link

roachhd commented Jan 4, 2015

By default, Windows 7, 8 & 8.1 do not install the Telnet client. The client is for text-based communication with remote systems.

You can install it by following these steps below.

  1. Click Start, and then select Control Panel.
  2. Select Programs and Features.
  3. Select Turn Windows features on or off.
  4. Select the Telnet Client option.
  5. Click OK.
  6. A dialog box will appear to confirm installation.

The telnet command should now be available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment