Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Hello Karolos, could you describe more about the command: sed -i '/#%%%HOME.HOSTS/,/#%%%/s/^#\([^%]\)/\1/g' hosts and about the section in hosts file please. I'm really not understand why :( Commented Jan 16, 2015 at 2:14
  • @NNToan: Whan the line does is tell sed to add or remove a # at the beginning of the lines between two #%%% lines. This will comment or un-comment the lines. The example shows how to comment the HOME.HOSTS section using #%%%HOME.HOSTS ; you should use #%%%WORK.HOSTS instead in the sed command to comment or un-comment the WORK.HOSTS section.
    – Karolos
    Commented Jan 18, 2015 at 16:24