This guide explains why ls may appear empty in Termux and shows how to navigate Android directories, view hidden files, and return to the default Termux home directory.
ls May Show NothingWhen you open Termux, it starts in its sandboxed home directory:
/data/data/com.termux/files/home
This directory is empty until you create files or folders. Your Android storage is separate and not automatically accessible.
Files that start with a dot (.) are hidden. To see them:
ls -a
Example: to see .bashrc or other hidden config files.
Termux requires permission to access Android storage. Run:
termux-setup-storage
Allow permission when prompted. This creates a folder structure inside Termux:
/storage/emulated/0 → your main internal storage → root-level directories inside Termux (sandbox)cd /storage/emulated/0
lscd /storage/emulated/0/Download
lscd /storage/emulated/0/DCIM
lsln -s /storage/emulated/0 ~/storage
cd ~/storage
ls
Now ~/storage acts as a quick shortcut to internal storage.
cd ~ or cd → takes you back to /data/data/com.termux/files/homepwdls -a regularly to view hidden files..bashrc for directories you use often.cd ~/storage && ls to go to storage and list files in one step.rm in Android storage; deleted files may not go to a trash folder.