A part of:

Unlock Bootloader Via Termux _top_

The concept of unlocking a bootloader via Termux is a favorite among Android power users because it represents the ultimate "PC-less" setup. Traditionally, unlocking a bootloader—the gatekeeper code that decides which operating system to run—requires a computer to send Fastboot commands

To unlock a bootloader via Termux, you essentially use Termux as a mobile terminal to send fastboot commands to Android device via a USB OTG cable . You generally cannot unlock a device's own bootloader from within itself using Termux because fastboot requires the device to be in "Fastboot Mode," where the standard Android OS (and Termux) isn't running. Prerequisites unlock bootloader via termux

Some guides suggest:

If you see version info, you are ready.