📱 Lesson 6: Developer Commands
Get 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!'
Share Content
Shares files or text using the Android share menu.
termux-share -a send -c 'Check this out!'
System Info
Displays Termux environment debug information.
termux-info
CPU Info
Displays information about the device's CPU.
termux-cpu-info
Camera Photo
Takes a photo using the device's camera.
termux-camera-photo -c 0 photo.jpg
Get Location
Retrieves the device's current GPS location.
termux-location
Send 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
Play Media
Plays an audio file using Termux's media player.
termux-media-player play file.mp3
Scan 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
Send 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
Access Contact List
Lists all saved contacts.
termux-contact-list