LESSON 6
Developer Commands
Essential developer commands for clipboard management, device control, media handling, notifications, and system interaction.
Clipboard & Sharing
3 commandsGet Clipboard Text
Retrieves the current contents of the clipboard.
$ termux-clipboard-get
Set Clipboard Text
Sets the clipboard contents to the specified text.
$ termux-clipboard-set 'Hello from Termux!'
Device Info
3 commandsSystem Info
Displays Termux environment debug information.
$ termux-info
CPU Info
Displays information about the device's CPU.
$ termux-cpu-info
Get Location
Retrieves the device's current GPS location.
$ termux-location
Media & Camera
2 commandsCamera Photo
Takes a photo using the device's camera.
$ termux-camera-photo -c 0 photo.jpg
Play Media
Plays an audio file using Termux's media player.
$ termux-media-player play file.mp3
Notifications
2 commandsSend Notification
Sends a notification to the Android system tray.
$ termux-notification -t 'Hi' -c 'This is from Termux'
Remove Notification
Removes a previously sent notification.
$ termux-notification-remove 1
Network & Web
2 commandsScan Wi-Fi
Scans and displays nearby Wi-Fi networks.
$ termux-wifi-scaninfo
Open URL
Opens a URL in the device's default browser.
$ termux-open-url https://example.com
Telephony
2 commandsSend SMS
Sends an SMS message to a phone number.
$ termux-sms-send -n 1234567890 'Hello!'
Get Call Log
Lists recent call history from the device.
$ termux-call-log
Contacts
1 commandsAccess Contact List
Lists all saved contacts.
$ termux-contact-list
💡 Developer Tips
- • Use clipboard commands to integrate with Android clipboard for seamless data transfer
- • Device info commands help you gather system information for app compatibility checks
- • Media player commands enable audio playback automation in your scripts
- • Notifications provide user feedback without opening additional apps
- • SMS and call log commands allow programmatic access to device communication history
- • Location commands can be used in location-based automation workflows
- • Always request appropriate permissions before accessing sensitive device data
- • Combine multiple commands to create powerful mobile automation solutions