This guide walks you through opening Termux for the first time, granting storage access, updating the package index, and installing a few common tools. By the end you will have a working shell environment with Git, Python, and Node.js ready to use.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/termux/termux-app/llms.txt
Use this file to discover all available pages before exploring further.
Open Termux
Tap the Termux icon to launch the app. After a brief bootstrap installation, you will see a bash prompt:Termux uses bash as the default shell. Your home directory is
/data/data/com.termux/files/home (available as $HOME or ~), and the Linux environment lives under /data/data/com.termux/files/usr (available as $PREFIX).You can open additional terminal sessions by swiping in from the left edge to reveal the session drawer, then tapping New session.Set up storage access
Run the following command to grant Termux access to your Android shared storage:Android will show a permission dialog — tap Allow. Once granted, Termux creates a set of symlinks under
~/storage/ that map to standard Android storage locations:| Symlink | Points to |
|---|---|
~/storage/shared | Internal shared storage root |
~/storage/downloads | Downloads folder |
~/storage/dcim | Camera photos and videos |
~/storage/pictures | Pictures folder |
~/storage/music | Music folder |
~/storage/movies | Movies folder |
If you skip this step, Termux can still read and write files within its own private directory (
$HOME and $PREFIX). You only need termux-setup-storage when you want to share files with other Android apps or access your device’s Downloads and media folders.Update packages
Sync the package index and upgrade any outdated bootstrap packages:
pkg is Termux’s frontend for apt. The two commands are interchangeable — pkg install calls apt-get install under the hood. When prompted to confirm upgrades, type y and press Enter.Install your first packages
Install Git, Python, and Node.js:Confirm with You can search for available packages with
y when prompted. After installation, verify the tools are available:pkg search <name> and list all installed packages with pkg list-installed.Some other commonly used packages:Explore your environment
A few key environment variables and directories to know:Unlike a standard Linux system, Termux does not use
/usr, /bin, or /etc at the filesystem root. All binaries and libraries live under $PREFIX. Scripts that hardcode /usr/bin/python or /bin/bash will not work without modification — use #!/usr/bin/env python and #!/data/data/com.termux/files/usr/bin/bash in shebangs instead.Next steps
Package management
Learn how to search, install, remove, and upgrade packages with pkg and apt.
Terminal settings
Configure font size, bell behaviour, and other preferences via
~/.termux/termux.properties.Keyboard shortcuts
Volume key mappings, hardware keyboard shortcuts, and the extra keys toolbar.
Storage and file sharing
Access Android shared storage, downloads, and share files with other apps.