Home › Tag Archives › Computers

HOSTS File

The HOSTS file is very similar to DNS. DNS converts hostnames (ex: bradcroft.com) to a numerical number called an IP address. DNS servers are located all throughout the internet including your own ISP. When you attempt to browse to a website your computer contacts the DNS server and the DNS server provides the IP address to the site, allowing your computer the knowledge on how to get to the site. If you modify your computers HOSTS file you can have your computer visit a different site entirely.

This is especially useful for malware prevention. There are several sites out there that have lists of different known malware sites. By modifying your own HOSTS file and putting in different IP addresses for these malicious sites you can help protect your computer.

Ones site that has this list is MVPS.
Another program that modifies the HOSTS file is Spybot Anti-Beacon. You can get the program here.

The HOSTS file can be found on Windows in the C:\Windows\System32\drivers\etc\hosts and on Linux at /etc/hosts. To edit the file on Windows you will need to run the program as an administrator. I recommend using Notepad++ for editing text files.

grep in Windows 10, search the scriptures

When Windows 10 came out, there was functionality built into it to use a Linux command line. One of these commands is grep which stands for global regular expression. Basically, you enter in the phrase you want to search for and file or files you want to search and it will bring up a list of those files.

If you want to perform a search you would use the following syntax:

grep phrase_to_search_for folder/file_name

If you wanted to search for the phrase “one by one” from the Book of Mormon you would need to enter the command as follows:

grep 'one by one' BoM/*.*

You would get the following result: