Sudo works on only rooted devices
sudo means superuser & root command
we can run root tools in termux using sudo
Execute these commands one by one to install sudo.
Installation :
$ apt update
$ apt upgrade
$ apt install git
$ apt install tsu
$ apt install ncurses-utils
$ git clone https://github.com/termux-sudo
$ cd termux-sud
$ cat sudo > /data/data/com.termux/files/usr/bin/sudo
$ chmod 700 /data/data/com.termux/files/usr/bin/sudo
sudo su
sudo tsu
Now you are a root user..