LESSON 2

Intermediate Commands

Explore advanced Termux features including audio, multimedia, networking, and device control for more complex operations.

Audio & Microphone

4 commands

Audio Info

Displays information about the audio system.

$ termux-audio-info

Play Audio

Plays the specified audio file.

$ termux-audio-play [file]

Record Audio

Records audio and saves it to the specified file.

$ termux-audio-record [output_file]

Record Mic

Records audio using the device's microphone.

$ termux-microphone-record [output_file]

Call & SMS

7 commands

Show Call Log

Lists the call log.

$ termux-call-log

Call Log by Type

Lists entries by type (incoming, outgoing, missed).

$ termux-call-log -t [type]

Limit Call Log

Limits the number of call log entries shown.

$ termux-call-log -l [limit]

List SMS

Lists all SMS messages.

$ termux-sms-list

SMS Inbox

Shows received messages.

$ termux-sms-inbox

Send SMS

Sends SMS to number.

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

View SMS

Displays specific message.

$ termux-sms-view [message_id]

Camera & Media

6 commands

Camera Info

Displays camera info.

$ termux-camera-info

Take Photo

Takes a photo and saves it.

$ termux-camera-photo [output_file]

Record Video

Records a video and saves it.

$ termux-camera-record [output_file]

Snapshot

Takes a camera snapshot.

$ termux-camera-snapshot [output_file]

Camera Preview

Opens a live camera preview.

$ termux-camera-view

Scan Media

Scans path for media.

$ termux-media-scan [path]

Clipboard & Contacts

4 commands

Get Clipboard

Retrieves clipboard contents.

$ termux-clipboard-get

Set Clipboard

Sets clipboard to specified text.

$ termux-clipboard-set [text]

Get Contact

Retrieves a contact's info.

$ termux-contact-get [contact_name]

List Contacts

Lists all contacts.

$ termux-contact-list

Network & Connectivity

8 commands

Connect Wi-Fi

Connects to a Wi-Fi network.

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

Toggle Wi-Fi

Enables or disables Wi-Fi.

$ termux-wifi-enable [true/false]

Wi-Fi IP Info

Displays IP address info.

$ termux-wifi-ipinfo

Wi-Fi Scan

Scans nearby networks.

$ termux-wifi-scaninfo

Cell Info

Shows cellular network info.

$ termux-telephony-cellinfo

Device Info

Shows telephony device info.

$ termux-telephony-deviceinfo

IMEI

Displays device IMEI.

$ termux-telephony-imei

Signal Strength

Shows signal strength.

$ termux-telephony-signalstrength

Files & Editor

7 commands

Download File

Downloads a file from URL.

$ termux-download [URL]

Open File Editor

Opens a file in text editor.

$ termux-file-editor [file]

Open Editable File

Opens file in editable editor.

$ termux-file-editor-editable [file]

Fix Shebang

Fixes shebang to make script executable.

$ termux-fix-shebang [file]

Open File

Opens file or dir.

$ termux-open [file/path]

Open URL

Opens link in browser.

$ termux-open-url [URL]

Upload File

Uploads file to destination.

$ termux-upload [source_file] [destination_directory]

System & Notifications

6 commands

Send Notification

Sends a notification.

$ termux-notification

List TTS Engines

Lists TTS engines.

$ termux-tts-engines

Speak Text

Speaks text aloud.

$ termux-tts-speak [text]

Volume Control

Controls system volume.

$ termux-volume

Flashlight

Turns flashlight on/off.

$ termux-torch [true/false]

System Info

Displays system info.

$ termux-info

Advanced Features

8 commands

Broadcast Intent

Sends a broadcast intent.

$ termux-am broadcast -a [action]

IR Frequencies

Lists infrared frequencies.

$ termux-infrared-frequencies

IR Transmit

Transmits IR pattern.

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

Keyring

Manages secrets.

$ termux-keyring [options]

Share Content

Shares via Android menu.

$ termux-share

Show Dialog

Displays a dialog box.

$ termux-dialog

Open with App

Opens link with default app.

$ termux-url-opener [URL]

Set Wallpaper

Changes device wallpaper.

$ termux-wallpaper [file]

💡 Pro Tips

  • • Some commands require specific permissions - check device settings
  • • Use termux-camera-info before taking photos to verify camera availability
  • • SMS and call commands require appropriate Android permissions
  • • Network commands may need Wi-Fi or cellular service enabled
  • • Always test with sample data before using commands in production scripts