trying to block websites using my Terminal application and I keep getting the command not found prompt

any help?

Posted on Sep 23, 2019 7:34 PM

Reply
7 replies

Sep 23, 2019 8:08 PM in response to myluckydwag

nano is a valid editor.

/etc/hosts is a valid directory references, and the hosts file is indeed located there.


But without a space after nano, the string you entered becomes the directory reference nano/etc/hosts and there is no executable file there with that name.


Unix commands are like VERY sharp tools. But inexperienced users who try to reach into that toolbox blindly usually end up cutting their fingers off. There are NO protections from things that WILL hurt you.


Surely there is a better way to accomplish what you want.

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.

trying to block websites using my Terminal application and I keep getting the command not found prompt

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