termux
Core package management (pkg / apt wrapper)
Update repository
pkg update
Upgrade repository packages
pkg upgrade
Install package
pkg install <package>
Remove package
pkg remove <package>
Reinstall package
pkg reinstall <package>
Search package
pkg search <keyword>
Show package information
pkg show <package>
List installed packages
pkg list-installed
List available packages
pkg list-all
Clean package cache
pkg clean
Repository & configuration tools
Change repository sources
termux-change-repo
Reload Termux settings
termux-reload-settings
Reset Termux environment
termux-reset
Restore Termux backup
termux-restore
Print Termux system information
termux-info
Storage & filesystem
Setup shared storage access
termux-setup-storage
Creates access to: - ~/storage/shared - ~/storage/downloads - ~/storage/dcim - ~/storage/music - ~/storage/movies - ~/storage/pictures
Termux API commands
(Available after installing termux-api package)
Install Termux API
pkg install termux-api
Clipboard
termux-clipboard-get
termux-clipboard-set
Battery status
termux-battery-status
Camera
termux-camera-info
termux-camera-photo
Contacts
termux-contact-list
Dialogs (GUI prompts)
termux-dialog
Download files
termux-download
Fingerprint authentication
termux-fingerprint
Location (GPS)
termux-location
Media player
termux-media-player
termux-media-player info
termux-media-player play
termux-media-player pause
termux-media-player stop
Microphone recording
termux-microphone-record
Notifications
termux-notification
Sensors
termux-sensor
Share data
termux-share
SMS (requires permissions)
termux-sms-list
termux-sms-send
Telephony
termux-telephony-call
termux-telephony-cellinfo
termux-telephony-deviceinfo
Text-to-speech
termux-tts-engines
termux-tts-speak
USB
termux-usb
Vibration
termux-vibrate
Wi-Fi
termux-wifi-connectioninfo
termux-wifi-enable
termux-wifi-scaninfo
Environment & shell utilities
Change default shell
chsh
List available shells
cat /etc/shells
Edit Termux properties
nano ~/.termux/termux.properties
Apply changes:
termux-reload-settings
Backup & migration
Create backup
tar -czf termux-backup.tar.gz $HOME
Restore backup
tar -xzf termux-backup.tar.gz -C /
Notes (important)
- Termux provides thousands of commands via packages (
coreutils,busybox,clang,python,git, etc.). - Only commands starting with
termux-andpkgare Termux-specific. - Everything else follows standard Linux/Unix behavior.