How to use Termux-API commands in Termux
If you haven’t installed the Termux API, then be sure to do it. If you’ve downloaded Termux from F-Droid, then install the API from F-Droid only. If you want to download the API through the terminal then check this blog.
Once you’ve updated and upgraded the packages follow the steps below:
· Type: termux-
and press the tab two times. You would see something like this:
Here are all the commands, click on the bracket contents to know more:
termux-audio-info
(get your device audio information.)termux-battery-status
(get the status of the device battery. Know more.)termux-brightness
(set the screen brightness between 0 and 255. Takes the number as an argument. Know more.)termux-call-log
(get the call-log history. Know more.)termux-camera-info
(get information about device cameras. Know more.)termux-camera-photo
(take a photo and save it to a file in JPEG format. Know more.)termux-change-repo
(for adv. users)termux-chroot
(for adv. users)termux-clipboard-get
(get the most recent clipboard text. Know more.)termux-clipboard-set
(add a text within quotations to the clipboard. Know more.)termux-contact-list
(list all the device contacts. Know more.)termux-dialog
(show a text entry dialogue. Know more.)termux-download
(to download a resource. Know more.)termux-fingerprint
(check authentication using the fingerprint sensor. Know more.)termux-fix-shebang
(for adv. users. Know more.)termux-info
(gives information about the device & termux version)termux-infrared-frequencies
(query the infrared transmitter's supported carrier frequencies. Know more.)termux-infrared-transmit
(transmit an infrared pattern. Know more.)termux-job-scheduler
(schedule a Termux script to run later, or periodically. A path needs to be given. Know more.)termux-keystore
(for adv users to list, delete or generate keys from the keystore.)termux-location
(gets you the device location. Know more.)termux-media-player
(play media files. Requires the name of the media file. Know more.)termux-media-scan
(MediaScanner interface, make file changes visible to Android Gallery. Know more.)termux-microphone-record
(record directly using the device microphone. Know more.)termux-nfc
(for adv. users)termux-notification
(display a system notification. Know more.)termux-notification-list
(allows termux to show the notification list.)termux-notification-remove
(remove a notification previously shown withtermux-notification --id
. Know more.)termux-open
(open a file or URL in an external app)termux-open-url
(open an URL for viewing)termux-reload-settings
(reload termux configuration after changing the properties file. Know more.)termux-reset
(reset termux)termux-sensor
(get to know about device sensors as well as live data. Know more.)termux-setup-storage
(used to have access to shared storage. Know more.)termux-share
(share a file specified as an argument or the text received on stdin. Know more.)termux-sms-inbox
(display sent SMS along with the received SMS)termux-sms-list
(list sms messages. Know more.)termux-sms-send
(send an SMS to the specified recipient number(s). Know more.)termux-speech-to-text
(outputs the given text argument in speech format.)termux-storage-get
(Request a file from the system and output it to the specified file. Know more.)termux-telephony-call
(call a number. Know more.)termux-telephony-cellinfo
(get information about observed cells including the primary and neighbouring cells. Know more.)termux-telephony-deviceinfo
(get to know about the telephony device. Know more.)termux-toast
(show a pop-up notification. Know more.)termux-torch
(give ‘on’ or ‘off’ as arguments to toggle the device torch. Know more.)termux-tts-engines
(get to know about the available text-to-speech engines. Know more.)termux-tts-speak
(speak text with the device TTS engine. Know more.)termux-usb
(access the USB devices connected. Know more.)termux-vibrate
(vibrates your device. Know more.)termux-volume
( change the volume. Know more.)termux-wake-lock
(acquires wake lock causing your Android to not go to deep sleep. Know more.)termux-wake-unlock
(unlocks wake lock. Know more.)termux-wallpaper
(changes your device wallpaper. Just provide the image path. Know more.)termux-wifi-connectioninfo
(get to know about the current wifi connection. Know more.)termux-wifi-enable
(give ‘on’ or ‘off’ as arguments to toggle the device's WiFi. Know more.)termux-wifi-scaninfo
(get to know about the last WiFi scan. Know more.)
You are now fully equipped to have an amazing time using these commands! Go forth, have fun, and spread joy by sharing this with others. Let's ignite curiosity and excitement together!🔥
Here is the gold mine for Termux: https://wiki.termux.com/wiki/Main_Page
Note: There are chances that the above wiki gets completely removed and gets moved to termux.dev (their new site) soon. In that case, I'd be updating my blog. Would appreciate any comments if any of the links seem to be broken. Thank you🚀
this blog was revised and moved from my original blog post in Blogger
Subscribe to my newsletter
Read articles from Riddhi Raj Ghosh directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by