Post
Topic
Board Reputation
Merits 23 from 5 users
Re: Goodbye, world!
by
psycodad
on 07/04/2021, 14:14:04 UTC
⭐ Merited by suchmoon (9) ,LoyceV (8) ,vapourminer (3) ,Foxpup (2) ,DireWolfM14 (1)
That's easy:
Code:
echo '127.0.0.1 bitcointalk.org' > /etc/hosts
Or for mortals:
Code:
sudo echo '127.0.0.1 bitcointalk.org' > /etc/hosts

Residential smartass here, not being able to resist some smartassery  Grin:

1. Don't overwrite hosts, consider appending (>>)
2. The below would actually work with sudo, otherwise you will get 'permission denied'
Code:
sudo sh -c 'echo "127.0.0.1 bitcointalk.org" >> /etc/hosts'


Everybody having lost his hosts file deserves what he gets for just copy-pasting some random command lines from the intertubes..


* psycodad is away trying to restore his elaborate hosts file from backup  Smiley