|
|
A little help for a Terminal neophyte?
I'm getting "etc/hosts: Permission denied" when trying this. I tried both "su echo..." and "sudo echo...", but obviously that's not doing it. Can somebody tell me how to accomplish this? Do I have to log out and back in as root? That seems crazy... Shouldn't "sudo" do it?
A little help for a Terminal neophyte?
The problem is that the re-direction of the output happens as you, not root. try:
A little help for a Terminal neophyte?
You can also do it in one line like this:
Got it...
Thanks, guys, for the more explicit directions.
A little help for a Terminal neophyte?
I'm getting "etc/hosts: Permission denied" when trying this. I tried both "su echo..." and "sudo echo...", but obviously that's not doing it. Can somebody tell me how to accomplish this? Do I have to log out and back in as root? That seems crazy... Shouldn't "sudo" do it? I suspect the original post was meant to be: su echo 66.77.74.20 www.google.com >> /etc/hosts exit I prefer Your problem is that the
A little help for a Terminal neophyte?
I suspect the original post was meant to be: I had originally written it that way when I submitted the hint, but for some reason it became changed when it was posted. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|