logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

hostfiles - A simple script to manage multiple sets of hostfiles on *NIX systems

Author

       Anthony J. Mirabella <mirabeaj AT gmail DOT com>

perl v5.36.0                                       2022-11-19                                      HOSTFILES(1p)

Description

Thisprogram will read the hostfile fragments specified to be enabled from /etc/hostfiles/<fragment_name>
       and  add  them  to  /etc/hosts.   It  will  remove any fragments from /etc/hosts that are specified to be
       disabled.

License

       Copyright (c) 2010-11 Anthony J. Mirabella. All rights reserved.  This program is free software; you  can
       redistribute it and/or modify it under the same terms as Perl itself.

Name

       hostfiles - A simple script to manage multiple sets of hostfiles on *NIX systems

Options

--enable
               Enable  one or more hostfile fragments.  This option may be specified multiple times and multiple
               fragments may be specified in a comma-separated list.

       --disable
               Disable one or more hostfile fragments.  This option may be specified multiple times and multiple
               fragments may be specified in a comma-separated list.

       --status
               Display a list of fragments and their status.  A '+' indicates the fragment is  enabled.   A  '*'
               indicates an enabled fragment has been changed in /etc/hosts.

       --interactive
               Presents an interactive list of hostfile fragment to enable or disable.

Synopsis

       hostfiles [options]

         Options:
           --enable        Enable one or more hostfile fragments
           --disable       Disable one or more hostfile fragments
           --status        Display the status of various hostfile fragments
           --interactive   Present an interactive list of hostfile fragments

See Also