LESSON 1

Core Commands

Master the essential Termux commands for package management, file operations, system control, and device interaction.

Package Management

8 commands

Update Packages

Updates the package lists for upgrades and installs

$ pkg update

Upgrade Packages

Upgrades all installed packages to their latest version

$ pkg upgrade

Install 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-all

Package Info

Displays information about a package

$ pkg info [package_name]

List Installed Packages

Lists all installed packages

$ pkg list-installed

File & Storage

6 commands

Setup Storage

Sets up storage access for Termux

$ termux-setup-storage

Open 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-share

List Storage Volumes

Lists all available storage volumes

$ termux-storage-list

Get Storage Info

Gets storage info about a path

$ termux-storage-get [path]

System & Notification

5 commands

Show Toast Message

Shows a toast message

$ termux-toast [message]

Send Notification

Sends a system notification

$ termux-notification

Vibrate Device

Vibrates the device

$ termux-vibrate

Keep Device Awake

Keeps device awake

$ termux-wake-lock

Allow Sleep

Allows device to sleep

$ termux-wake-unlock

Clipboard

2 commands

Get Clipboard

Gets contents of clipboard

$ termux-clipboard-get

Set Clipboard

Sets clipboard contents

$ termux-clipboard-set [text]

Camera & Media

7 commands

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 pause

Stop Media

Stops media playback

$ termux-media-player stop

Seek Media

Seeks media to given time

$ termux-media-player seek [time]

Load Playlist

Loads playlist from file

$ termux-media-player playlist [file]

Wi-Fi & Telephony

7 commands

Toggle Wi-Fi

Enable or disable Wi-Fi

$ termux-wifi-enable [true/false]

Wi-Fi Connection Info

Show Wi-Fi connection info

$ termux-wifi-connectioninfo

IP Info

Display IP address info

$ termux-wifi-ipinfo

Scan Wi-Fi

Scan Wi-Fi networks

$ termux-wifi-scaninfo

Device Info

Device SIM and network info

$ termux-telephony-deviceinfo

Signal Strength

Signal strength info

$ termux-telephony-signalstrength

Device IMEI

Show device IMEI

$ termux-telephony-imei

💡 Pro Tips

  • • Use pkg update regularly to keep packages current
  • • Always pkg upgrade after updating for security patches
  • • Click the copy button to quickly copy commands to your clipboard
  • • Replace [parameter] with actual values when executing commands