localhost - Adding external source in /etc/hosts linux -
as know add external source file our ~/.bashrc file. example have list of custom aliases included inside it. add inside file:
source /path/to/my/external/file
or replace 'source' dot (.) so:
. /path/to/my/external/file
then can access custom aliases without manually typing inside ~/.bashrc file.
my question is:
i wondering there similar way include external source file inside /etc/hosts file? i've tried same method above, doesn't seem work.
thanks , cmiiw.
there no way include external source file/s inside /etc/hosts unlike how it's done ~/.bashrc or other systems on linux.
Comments
Post a Comment