📘 Lesson 1: Core Commands
Update Packages
Updates the package lists for upgrades and installs
pkg updateUpgrade Packages
Upgrades all installed packages to their latest version
pkg upgradeInstall Package
Installs a package
pkg install [package_name]Uninstall Package
Uninstalls a package
pkg uninstall [package_name]Search Packages
Searches for packages containing the keyword
pkg search [keyword]List All Packages
Lists all available packages
pkg list-allPackage Info
Displays information about a package
pkg info [package_name]List Installed Packages
Lists all installed packages
pkg list-installedSetup Storage
Sets up storage access for Termux
termux-setup-storageOpen File or Directory
Opens a file or directory with default app
termux-open [file/path]Open URL
Opens the URL in default browser
termux-open-url [URL]Share Content
Shares files or text using Android share menu
termux-shareList Storage Volumes
Lists all available storage volumes
termux-storage-listGet Storage Info
Gets storage info about a path
termux-storage-get [path]Show Toast Message
Shows a toast message
termux-toast [message]Send Notification
Sends a system notification
termux-notificationVibrate Device
Vibrates the device
termux-vibrateKeep Device Awake
Keeps device awake
termux-wake-lockAllow Sleep
Allows device to sleep
termux-wake-unlockGet Clipboard
Gets contents of clipboard
termux-clipboard-getSet Clipboard
Sets clipboard contents
termux-clipboard-set [text]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]Play Media
Plays media file
termux-media-player play [file]Pause Media
Pauses playing media
termux-media-player pauseStop Media
Stops media playback
termux-media-player stopSeek Media
Seeks media to given time
termux-media-player seek [time]Load Playlist
Loads playlist from file
termux-media-player playlist [file]Toggle Wi-Fi
Enable or disable Wi-Fi
termux-wifi-enable [true/false]Wi-Fi Connection Info
Show Wi-Fi connection info
termux-wifi-connectioninfoIP Info
Display IP address info
termux-wifi-ipinfoScan Wi-Fi
Scan Wi-Fi networks
termux-wifi-scaninfoDevice Info
Device SIM and network info
termux-telephony-deviceinfoSignal Strength
Signal strength info
termux-telephony-signalstrengthDevice IMEI
Show device IMEI
termux-telephony-imei