Editing hosts file on Mac

To edit hosts file on Mac M1 need to execute this command:

sudo nano /private/etc/hosts