Edit hosts file on OSX

  05/06/2017

I had to modify local hosts file on OSX many times and it’s not just about edit and save because it requires few more things before and after.

To properly edit the hosts file on OSX, first you need to get super user access, then to remove protection from hosts file with chflags, edit hosts file and save, flush DNS cache (optional), and to set back the hosts file as protected (otherwise it will not work).

sudo su –
chflags nouchg /private/etc/hosts
sudo nano /private/etc/hosts
sudo killall -HUP mDNSResponder
chflags uchg /private/etc/hosts


Weather Forecast – Belgrade

18/01
Mon
weather - icon
Clouds
-4°C
19/01
Tue
weather - icon
Clouds
-0°C
20/01
Wed
weather - icon
Clouds
1°C
21/01
Thu
weather - icon
Clouds
3°C
22/01
Fri
weather - icon
Clouds
7°C
23/01
Sat
weather - icon
Rain
10°C
24/01
Sun
weather - icon
Rain
5°C

Powered by OpenWeatherMap | by Phee

RSS Laracasts

  • Let PHPUnit Create Your Test Doubles 15/01/2021
    In the previous episode, we manually created a test double; however, we can alternatively let our tooling do this work on the fly. In this episode, we'll review PHPUnit's createMock() method.
    Jeffrey Way
  • Email Verification 15/01/2021
    Let's take a look at verifying a user’s email address after the registration process. We'll also briefly review how to customize the email template.
    Jeffrey Way
  • Login and Registration 14/01/2021
    Let's install Fortify into a fresh Laravel application and take a look at creating the necessary front-end Blade views for logging in and registering.
    Jeffrey Way
  • Inertia Integration 13/01/2021
    Jetstream provides the option to choose Inertia as your Laravel Stack. Inertia replaces your Blade views and components with Vue components, if you prefer to work with JavaScript. Let's review a handful of examples where we modify pages and components with Vue.
    Jeffrey Way
  • Team Support 12/01/2021
    Jetstream has built-in support for teams and team management. Let's have a look at making use of these features to extend a typical blog application to support teams.
    Jeffrey Way

Latest Tweets

  • RT @AsomakumBrother: da se razumemo, izmedju "malčanskog berberina" i ovog profesora glume nema razlike...nikakave
    15 hours ago
  • @Ksenija76o A treba u nos??? Pa sto mi neko nije rekao vec sam 3 polomio
    4 weeks ago
  • @OlovniV A sto si je pratio uopste 🤣
    4 weeks ago