HOSTFILES(1p)

πŸ“¦
version 0.09 Β· 2 versions
  • 0.09 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.09 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

ok so hostfiles β€” it's a simple script bestie, and it manages multiple sets of hostfiles on *NIX systems. that's the whole vibe. 🌸


✨ 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

like… that's it. that's the whole thing. run it with some options, she does her thing. πŸ’…


πŸŽ€ OPTIONS πŸŽ€

  • --enable β€” turns on one or more hostfile fragments. and listen, you can drop this option multiple times, and you can also put a whole comma-separated list of fragments in one go. stack it, bestie. ✨
  • --disable β€” turns off one or more hostfile fragments. same deal as above fr fr: repeat the option as many times as you want, and/or pass a comma-separated list. πŸ¦‹
  • --status β€” shows you a lil list of fragments and where they stand. and here's the key, don't miss it:
    • a + means the fragment is enabled
    • a * means an enabled fragment has been changed in /etc/hosts

the way that little asterisk is telling on your hostfile… iconic. πŸ‘‘

  • --interactive β€” presents an interactive list of hostfile fragments for you to enable or disable. very choose-your-own-adventure, very main character energy. 🌈

πŸ’œ DESCRIPTION πŸ’œ

ok so here's what's actually happening under the hood. this program reads the hostfile fragments you told it to enable from /etc/hostfiles/<fragment_name> and adds them into /etc/hosts. and if you told it to disable some fragments? it removes those from /etc/hosts. that's the tea. πŸ«–βœ¨

so basically: /etc/hostfiles/ is where your lil fragment files live, /etc/hosts is where they get deployed, and hostfiles is the middlewoman keeping everything in check. no cap. πŸ’–


πŸ“œ 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.

so like, go forth and remix, but under Perl's own terms, bestie. that's the deal. 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Anthony J. Mirabella <mirabeaj AT gmail DOT com>


and that's the whole page, babes πŸ’– this one came from the User Contributed Perl Documentation set β€” it's HOSTFILES(1p), built against perl v5.36.0, dated 2022-11-19. love that for us. go enable some fragments, slay responsibly. πŸŒΈβœ¨πŸ’…

πŸ“¦ where this page comes from