LESSON 7

System Administration

Master system administration commands for package management, security, configuration, storage, and network management.

Repository & Packages

4 commands

Adds a new repository to the list of available repositories.

$ termux-add-repo [repository]

Creates a new package with the specified name.

$ termux-create-package [package_name]

Displays information about the specified package.

$ termux-package-info [package_name]

Lists installed packages.

$ termux-package-list [options]

Security & Permissions

5 commands

Fixes permissions for the specified directory or file.

$ termux-fix-permissions [directory/file]

Fixes the shebang of a script file to make it executable.

$ termux-fix-shebang [file]

Manages fingerprints for SSH connections.

$ termux-fingerprint [options]

Locks Termux settings with a password.

$ termux-lock-settings

Runs a command with superuser privileges.

$ termux-sudo

Configuration

8 commands

Changes the root directory for the current session.

$ termux-chroot [directory]

Displays system information.

$ termux-info

Reloads Termux settings from disk.

$ termux-reload-settings

Reloads the Termux console style settings.

$ termux-reload-style

Reloads the Termux console font settings.

$ termux-reload-fonts

Reloads the Termux console properties settings.

$ termux-reload-properties

Resets Termux settings to default values.

$ termux-reset-settings

Resets Termux to a clean state.

$ termux-reset

Network & Connectivity

7 commands

Connects to the specified Wi-Fi network.

$ termux-wifi-connect [SSID] [password]

Enables or disables Wi-Fi.

$ termux-wifi-enable [true/false]

Displays information about the device's IP address.

$ termux-wifi-ipinfo

Scans for Wi-Fi networks and displays information about them.

$ termux-wifi-scaninfo

Tethers the device's Wi-Fi connection.

$ termux-wifi-tether

Toggles the Wi-Fi connection.

$ termux-wifi-toggle

Shows information about the current Wi-Fi connection.

$ termux-wifi-connectioninfo

Storage & Files

4 commands

Sets up storage for Termux.

$ termux-setup-storage

Prints the path to the temporary directory.

$ termux-tmpdir

Opens a file or directory with the default app.

$ termux-open [file/path]

Opens the specified URL in the default browser.

$ termux-open-url [URL]

Notifications & System

6 commands

Sends a notification to the notification bar.

$ termux-notify

Shares files or text using the Android share menu.

$ termux-share

Sets the device's wallpaper to the specified image file.

$ termux-wallpaper [file]

Keeps the device awake until explicitly released.

$ termux-wake-lock

Releases the wake lock on the device.

$ termux-wake-unlock

Configures telephony settings.

$ termux-telephony-configure

💡 Admin Tips

  • • Use package management commands to maintain a clean and updated system
  • • Always backup your settings before using reset commands
  • • Security commands like fingerprint and lock-settings protect your sensitive data
  • • Reload commands apply configuration changes without restarting Termux
  • • Use termux-sudo carefully - it grants elevated privileges to scripts
  • • Storage and file commands manage access to device resources
  • • Network commands can be combined with automation for intelligent connectivity
  • • Wake-lock commands are useful for long-running background tasks
  • • Test admin commands in safe environments before production deployment