View Hosts

Posted: March 3, 2011 in CLI, Windows

Hello guys,

Today I come with a very fast but convenient shortcut this one to be used to view on the hosts file quickly, as I am usually tweaking with it.

@echo off
type c:\windows\system32\drivers\etc\hosts

This little 2 lines allow you to view the hosts file in console very fast.

just remember to save the .bat file with this 2 lines in the  “c:\windows\system32” so no matter from where you type the command it will be always executed.

I hope this helps anyone that wants to use it.

Cya later!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s