From within Termux itself, you can change the current directory to the internal storage, by means of
cd /storage/emulated/0
or
cd /sdcard
followed by enter. After that, create a new directory by using
mkdir Directory
and replace Directory
with a name of your choice. You'll then have a new directory in your device's internal storage, whose data you'll be able to access with any file manager.
Notes concerning Marshmallow and above
If your device is running Android 6 or newer, you'll need to run the command
termux-setup-storage
from within Termux, and then accept the request to write to the storage, in order for Termux to be able to perform directory and file creation.
The termux-setup-storage
command creates a new directory in your $HOME
or ~/
directory named storage
. This new directory contains a few symlinks to /storage/emulated/0
listed below:
dcim -> /storage/emulated/0/DCIM
downloads -> /storage/emulated/0/Download
external-1 -> /storage/external_sd/Android/data/com.termux/files
movies -> /storage/emulated/0/Movies
music -> /storage/emulated/0/Music
pictures -> /storage/emulated/0/Pictures
shared -> /storage/emulated/0
Therefore, you can run the following commands to create /storage/emulated/0/Directory
described above with a little less typing now:
cd ~/storage/shared
mkdir Directory
cd /storage/emulated/0/Download
.Android
and then todata
. From there you should be staring atcom.termux
.