LESSON 3

Advanced Commands

Master powerful advanced Termux commands for system control, device hardware access, and complex automation workflows.

Core System

4 commands

termux-api

Access various Android APIs from Termux scripts.

$ termux-api

termux-battery-status

Get battery status including level and health.

$ termux-battery-status

termux-info

Display general system information.

$ termux-info

termux-job-scheduler [options]

Schedule background jobs.

$ termux-job-scheduler [options]

Camera & Media

3 commands

termux-camera-info

Get information about available cameras.

$ termux-camera-info

termux-media-player

Control audio/video media playback.

$ termux-media-player

termux-media-scan [path]

Scan for media files at the specified path.

$ termux-media-scan [path]

Telephony & SMS

8 commands

termux-call-log

View call logs (incoming/outgoing/missed).

$ termux-call-log

termux-telephony-cellinfo

Cellular network cell info.

$ termux-telephony-cellinfo

termux-telephony-deviceinfo

Device and SIM card info.

$ termux-telephony-deviceinfo

termux-telephony-imei

Show device IMEI number.

$ termux-telephony-imei

termux-telephony-signalstrength

Get mobile network signal strength.

$ termux-telephony-signalstrength

termux-sms-inbox

List received SMS messages.

$ termux-sms-inbox

termux-sms-send -n [number] [message]

Send SMS to number.

$ termux-sms-send -n [number] [message]

termux-sms-view [message_id]

View details of an SMS message.

$ termux-sms-view [message_id]

Clipboard & Contacts

3 commands

termux-clipboard-get

Get current clipboard contents.

$ termux-clipboard-get

termux-clipboard-set [text]

Set clipboard to specified text.

$ termux-clipboard-set [text]

termux-contact-list

List all contacts from device.

$ termux-contact-list

Network & Connectivity

4 commands

termux-wifi-connect [SSID] [password]

Connect to a Wi-Fi network.

$ termux-wifi-connect [SSID] [password]

termux-wifi-enable [true/false]

Enable or disable Wi-Fi.

$ termux-wifi-enable [true/false]

termux-wifi-ipinfo

Get current IP address information.

$ termux-wifi-ipinfo

termux-wifi-scaninfo

Scan and display nearby Wi-Fi networks.

$ termux-wifi-scaninfo

Notifications & Audio

6 commands

termux-notification

Send a custom notification.

$ termux-notification

termux-notification-list

List all active notifications.

$ termux-notification-list

termux-notification-remove [id]

Remove notification with specific ID.

$ termux-notification-remove [id]

termux-notification-remove-all

Remove all active notifications.

$ termux-notification-remove-all

termux-tts-speak [text]

Text-to-speech: speak text aloud.

$ termux-tts-speak [text]

termux-volume

Control volume level of device streams.

$ termux-volume

File & Content

6 commands

termux-download [URL]

Download file from specified URL.

$ termux-download [URL]

termux-open [file/path]

Open file or directory with default app.

$ termux-open [file/path]

termux-open-url [URL]

Open URL in browser.

$ termux-open-url [URL]

termux-url-opener [URL]

Open URL using default handler.

$ termux-url-opener [URL]

termux-share

Share file or content via Android share menu.

$ termux-share

termux-wallpaper [file]

Set the wallpaper to the given image.

$ termux-wallpaper [file]

Advanced & Hardware

3 commands

termux-location

Get current device location using GPS/network.

$ termux-location

termux-infrared-transmit [frequency] [pattern]

Send IR signals.

$ termux-infrared-transmit [frequency] [pattern]

termux-dialog

Show custom interactive dialog boxes.

$ termux-dialog

💡 Pro Tips

  • • Advanced commands require appropriate permissions - always check device settings
  • • Use termux-info to verify your Termux version and capabilities
  • • Battery status and hardware access commands may drain device resources
  • • Location and GPS commands require location services enabled
  • • Some commands need Termux:API app installed for full functionality
  • • Test advanced automation scripts in safe environments first