LESSON 4

Expert Commands

Unlock the full potential of Termux with expert-level commands for complete device integration, automation, and system control.

Core System & API

5 commands

Access APIs

Allows access to various device APIs from Termux shell scripts.

$ termux-api

System Info

Displays system information.

$ termux-info

Job Scheduler

Schedules jobs to run in the background.

$ termux-job-scheduler [options]

Battery Status

Shows battery information such as level, status, health, etc.

$ termux-battery-status

Volume Control

Controls volume settings.

$ termux-volume

Camera & Media

3 commands

Camera Info

Provides information about the device's camera(s).

$ termux-camera-info

Media Player

Controls media playback.

$ termux-media-player

Media Scan

Scans the specified path for media files.

$ termux-media-scan [path]

Clipboard & Contacts

3 commands

Clipboard Get

Retrieves the current contents of the clipboard.

$ termux-clipboard-get

Clipboard Set

Sets the clipboard contents to the specified text.

$ termux-clipboard-set [text]

Contact List

Lists all contacts stored on the device.

$ termux-contact-list

Telephony & SMS

7 commands

View SMS Inbox

Lists received SMS messages.

$ termux-sms-inbox

Send SMS

Sends an SMS to the specified number with the given message.

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

View SMS

Displays the contents of the specified SMS message.

$ termux-sms-view [message_id]

Cell Info

Shows information about the current cellular network.

$ termux-telephony-cellinfo

Device Info

Shows device-specific information.

$ termux-telephony-deviceinfo

IMEI

Shows the IMEI number of the device.

$ termux-telephony-imei

Signal Strength

Shows signal strength information.

$ termux-telephony-signalstrength

Network & Connectivity

4 commands

Connect to Wi-Fi

Connects to the specified Wi-Fi network.

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

Enable/Disable Wi-Fi

Enables or disables Wi-Fi.

$ termux-wifi-enable [true/false]

Wi-Fi IP Info

Displays information about the device's IP address.

$ termux-wifi-ipinfo

Wi-Fi Scan Info

Scans for Wi-Fi networks and displays information about them.

$ termux-wifi-scaninfo

Notifications & Audio

5 commands

Send Notification

Sends a notification to the notification bar.

$ termux-notification

Remove Notification

Removes a notification with the specified ID.

$ termux-notification-remove [id]

List Notifications

Lists all active notifications.

$ termux-notification-list

Remove All Notifications

Removes all active notifications.

$ termux-notification-remove-all

Text to Speech

Converts text to speech and speaks it aloud.

$ termux-tts-speak [text]

File & Content

6 commands

Download File

Downloads a file from the specified URL.

$ termux-download [URL]

Open URL

Opens the specified URL in the default app.

$ termux-url-opener [URL]

Open in Browser

Opens the specified URL in the default browser.

$ termux-open-url [URL]

Open File/Path

Opens a file or directory with the default app.

$ termux-open [file/path]

Share Content

Shares files or text using the Android share menu.

$ termux-share

Set Wallpaper

Sets the device's wallpaper to the specified image file.

$ termux-wallpaper [file]

Advanced & Hardware

3 commands

Location

Retrieves the device's current location.

$ termux-location

Infrared Transmit

Transmits an infrared pattern at the specified frequency.

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

Dialog Box

Displays a customizable dialog box.

$ termux-dialog

💡 Expert Tips

  • • Expert commands provide direct access to device hardware and system resources
  • • Always ensure proper permissions are granted in device settings before using advanced features
  • • Use termux-api for comprehensive API access and automation
  • • Location services must be enabled for GPS-based commands to function
  • • Combine multiple commands in shell scripts for powerful automation workflows
  • • Test commands on non-critical data first to understand their behavior and impact
  • • Some features require Termux:API app to be installed for full capability