Follow below steps to migrate the setup of Termux from Device A to Device B
For termux, ~/storage
folder contains a bunch of the soft links
external-n
is the one pointing to the MicroSD card or the OTG USB Drive, using realpath ~/storage/external-1
, can get the physical path on the MicroSD card. The XXXX-YYYY part is the MicroSD card UUID
Other links, such as dcim, movies, music
, they are pointing to the folders on the phone internal storage, using realpath ~/storage/dcim
can find the physical location of the folder