Sudo nano private/etc/hosts terminal shows empty file?

I need to adjust my hosts file and normally i would be able to do that threw my terminal with the command:


sudo nano private/etc/hosts


It worked couple days ago, but now when i type the command now it shows a empty file while the file when you search for it in the finder isn't empty.

Does someone know how to get the function back so i can easily edit the hosts file with terminal or maybe is there a other way?


User uploaded file

Posted on Sep 10, 2015 1:29 AM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Sep 10, 2015 1:54 AM

😊 I found it i didn't place / before private

1 reply
Sort By: 

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Sudo nano private/etc/hosts terminal shows empty file?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.