Need an Introduction to Tiny Core? Or peruse Core Concepts.
Which MC version?
See /opt/bootsync.sh and /usr/bin/sethostname.
127.0.0.1 box localhost
/usr/bin/sethostname box/usr/bin/sethostname sos
tc@sos
127.0.0.1 sos localhost
127.0.0.1 box127.0.0.1 sos
Overwrite at boot? One line in bootlocal.sh
/usr/bin/sethostname box/usr/bin/sethostname sos...
127.0.0.1 box localhost127.0.0.1 sos localhost
cp -f /home/tc/.hosts /etc/hosts
cp -f /etc/hosts /home/tc/.hostsfiletool.sh -bsudo reboot