In This Post I Am Going To Teach You Basic Commands Of Termux API And A Full Termux Commands List That A Beginner Can Use In Starting. We Will Learn Termux Commands List With Easy And Understandable Language.
Termux Commands List For Termux API
In The Below Section I Will Show You The Termux Commands List Used In Termux. These Commands Are For The Beginners And Are Much Easier To Understand. I Have Provided The Examples Of The Termux Basic Commands Also For The Better Understanding. Learn These Commands If You Are Just A Beginner In Termux. Make Sure To Install Termux API Before Typing These Commands:
Termux Commands List For Packages:
Below Are The Commands That Can Be Used For Packages Related Options In Termux:
pkg update
:This Command Is Used To Update All The Packages Of The Termux. It Also Updates The Packages That Are Manually Installed In Termux.pkg upgrade
:This Command Upgrades All The Packages To The Latest Version In Termux. This Commands Consumes More Data Thanpkg update
Command.pkg install [package_name]
:This Command Is Used To Install Packages In Termux. It Installs Only Those Packages That Are Available In Termux Data Base. Make Sure To Change The[package_name]
With The Package You Want To Install.pkg uninstall [package_name]
:This Command Is Used To Uninstall Packages In Termux. It Uninstalls Currently Installed Packages In Termux. Make Sure To Change The[package_name]
With The Package You Want To Uninstall.pkg search [keyword]
: This Command Searches For The Packages That Contains The[keyword]
That You Searched.pkg list-all:
This Command Lists All available Packages That Can Be Installed In Termux.pkg info [package_name]:
This Command Displays Information About A Specific Package. Change The [package_name] With The Package For Which You Want To Gather Information.pkg list-installed:
This Is Used To List All Installed Packages In Termux.
Examples For The Termux Commands List For Packages:
pkg update
pkg upgrade
pkg install python
pkg uninstall git
pkg search wget
pkg list-all
pkg info python
pkg list-installed
Termux Commands List For Screen:
Below Are The Termux Commands That Can Be Used For Screen Related Options:
termux-wake-lock:
This Command Enables The Device To Keep Awake While Termux Is Running.termux-wake-unlock:
Allows The Device To Sleep Normally Or Disable Awake In Termux.termux-toast [message]:
Displays A Toast Message On The Screen.termux-volume [option]:
Adjusts The Volume. Options Include Music, Ring, Alarm, Notification And System.termux-vibrate:
This Command Is Used To Vibrate The Device For A Specified Duration Followed By The Command.termux-share:
Shares Files Or Text Using The Android Share Menu.termux-clipboard-get:
This Command Retrieves The Current Contents Of The Clipboard That Has Been Copied Recently.termux-clipboard-set [text]:
Sets The Clipboard Contents To The Specified Text.termux-dialog:
Opens A Dialog Box With Various Options.termux-notification:
Sends A Notification With The Specified Title And Text.termux-tts-speak [text]:
Speaks Te Text You Entered While Replacing [text] In The Command.termux-tts-engines:
Lists Available Text-To-Speech Engines Installed On Your Device.termux-wallpaper [file]:
Sets The Device’s Wallpaper To The Specified Image File.
Termux Commands List For Contacts And Messages:
Below Are The Termux Commands Related To The Contacts And Messages:
termux-sms-inbox:
This Command Lists Received SMS Messages.termux-sms-send -n [number] [message]:
Sends An SMS To The Specified Number With The Given Message. Change [number] With Your Number You Want To Send Message And [message] With The Message You Want To Sent.termux-contact-list:
Lists All Contacts That Are Currently Saved On Your Device.termux-contact-get [contact_name]:
Retrieves Details About The Specified Contact That You Typed While Replacing[contact_name]
In Termux.termux-sms-list:
Lists All The Currently Saved SMS Messages.termux-sms-view [message_id]:
Displays The Contents Of The Specified SMS Message By The[message-id]
Provided.
termux-sms-inbox
termux-sms-send -n +91600123456 Hii Geek Guy
termux-contact-list
termux-contact-get Geek Guy
termux-sms-list
termux-sms-view 89279369
Termux Commands List For Media:
Commands That Can Be Used For Media Related Options In Termux API:
termux-camera-photo [output_file]:
Takes A Photo Using The Device’s Camera And Saves It With The Filename Typed In The Command While Replacing[output_file]
.termux-camera-record [output_file]:
Records A Video Using The Device’s Camera And Saves It With The Name Typed In The Command[output_file]
.termux-media-player:
This Command Can Be Used To Control The Media Player Using Termux.termux-media-scan [path]:
Scans The Specified Path For Media Files.termux-microphone-record [output_file]:
Records Audio Using The Device’s Microphone And Saves It To The Path You Specified With The Name Of The File At Last.termux-media-player play [file]:
This Command Is Used To Play The Specified Audio Or Video File.termux-media-player pause:
This Command Pauses The Currently Playing Media On Your Device.termux-media-player stop:
This Commands Stops The Currently Playing File In The Termux.termux-media-player seek [time]:
This Command Seeks To The Specified Time In The Currently Playing Media.termux-media-player playlist [file]:
This Command Loads A Playlist File That You Want To Open In The Command While Replacing The[file]
In Command.
Termux Commands List For Networks:
Below Are Some Network Related Commands For Termux API:
termux-wifi-enable [true]:
This Command Enables Wi-Fi Using Termux.termux-wifi-enable [false]:
This Command Disables Wi-Fi Using Termux.termux-wifi-connectioninfo:
Helps The User To View The Connection Info Of The Wi-Fi You Are Using.termux-wifi-ipinfo:
This Command Lists Information About The Device’s IP Address.termux-wifi-scaninfo:
Can Be Used To Search For The Nearby Wi-Fi Networks And List Information About Them.termux-wifi-connect [SSID] [password]:
Connects To The Specified Wi-Fi Network. Change The [SSID] [password] With Your Own Data.
Termux Commands List For Device Info:
These Commands Can Be Used To List Device Info In Termux API
termux-battery-status:
This Command Shows The Current Battery Status Of The Device You Are Running Termux On.termux-telephony-cellinfo:
Shows Information About The Current Cellular Network.termux-telephony-deviceinfo:
This Command Lists The Information Of The Device You Are Working On.termux-telephony-imei:
Help Us To View The IMEI Number Of The Device.termux-telephony-signalstrength:
This Command Helps Us To Know The Currently Signal Strength Of The Network You Are Using.termux-dialog:
Can Be Used To Create A Dialog Box With Advanced Options.termux-camera-snapshot [output_file]:
Takes A Snapshot Using The Device’s Camera And Saves It To The Specified File.termux-camera-view:
Opens A Live Preview From The Device Camera Of The Device.termux-fix-shebang [file]:
The Command Can Be Used To Fix The Shebang Of The Current File Specified So That It Can Be Made Executable.termux-location:
Shows The Current Location Of The Device From Which You Are Using Termux.termux-info:
This Command Displays The Information Of The System You Are Running Termux On.
Miscellaneous Termux Commands List:
Some Other Miscellaneous Termux Commands For Termux API Are As:
termux-open-settings:
Can Be Used To Opens The Termux Settings Menu.termux-torch [true/false]:
Turns The Device’s Flashlight On Or Off. Set The Value To [true] To Turn It On And Set The Value To [false] To Turn It Off.termux-notification:
This Can Be Used To Send Specified Notification To The Notification Bar.
Termux Commands List For File Management:
These Commands Are Use For Management In Termux API:
termux-setup-storage:
This Command Can Be Used To Set Up Storage In Termux To Access Files On Your Device.termux-storage-get [path]:
Gives Information About The Specified Storage Path. Change [path] With The Path You Want To See Information About.termux-storage-list:
This Command Lists All Available Storage Volumes Of Your Device.termux-open [file/path]:
This Command Is Used To Open A File Or Directory With The Default App. Change File Path With The Filename Or The Complete Path.termux-open-url [URL]:
Can Be Used To Open The Specified URL (Used In The Command) In The Default Browser.termux-download [URL]:
This Command Downloads A File From The Specified URL Replaced In The Command.termux-upload [source_file] [destination_directory]:
Uploads A File To The Specified Directory. Change The [source_file] With The File You Want To Upload And [destination_directory] With The Path Of Directory To Which You Want To Upload.termux-fix-shebang [file]:
Fixes The Shebang Of A Script File To Make It Executable.
Learn Normal Termux Commands At: Termux Commands List – Basic To Advanced 2024
Conclusion:
I Have Provided You Some Of The Basic Termux Commands List. These Commands Will Work Only If The Termux API Is Installed In Your Android. If You Have Any Doubt Regarding This Article You Can Tell Me Through The Contact Us Page. Thanks For Reading.
Frequently Asked Questions:
Does Termux API Commands Will Work Without Termux API?
No, Most Of The Termux API Commands Will Not Work Without Termux API.
How To Install Termux API ?
To Use Termux API Download Termux API And Also Install Termux API Package Using pkg install termux-api
Why Termux API Not Work?
Make Sure To Install The Right Termux API And Give Permission Required For The Command