Termux: installation prefix and Android storage access
Show the Termux prefix and grant access to the phone's shared storage with termux-setup-storage.
A few landmarks for getting around Termux (a Linux terminal emulator for Android): where the installation prefix is and how to reach the phone's storage.
echo ${PREFIX}/
termux-setup-storage
echo ${PREFIX}/prints the root directory of the Termux environment. Binaries, libraries and configuration files are installed there (not in/usror/etcas on a regular Linux system).termux-setup-storageasks Android for permission to access shared storage and creates a~/storagedirectory containing links to the phone's folders.
Android's shared internal storage is available at this path:
/storage/emulated/0