To unlock your bootloader using Termux, you generally need two Android devices connected via an . One device acts as the "host" (running Termux) to send commands to the "target" device (the one being unlocked). Prerequisites
su -c "fastboot flashing unlock"
(Do not run random scripts without inspection — adapt to your device.) unlock bootloader using termux better