Ubuntu is a popular Linux distribution that you can run inside Termux without root access. It gives you a full Linux environment on your Android phone where you can use Linux commands, install packages, and even run development tools. It is lightweight, easy to install, and very useful for learning Linux.
Requirements
Before installing Ubuntu in Termux, make sure your device meets these basic requirements for smooth performance:
- Processor required: 64-bit CPU (ARM64 recommended).
- Internet data required: Approx 500MB – 1.2GB.
- Free storage required: Minimum 3GB.
- Android version required: Android 7.0 or above.
- RAM required: Minimum 3GB.
- Installation time: Approx 10–30 minutes.
Installation Commands
Update Termux and install required packages:
pkg update && pkg upgrade && pkg install proot-distro -yList available Linux distros:
proot-distro listInstall Ubuntu:
proot-distro install ubuntuLogin to Ubuntu:
proot-distro login ubuntuUsage Commands
Start Ubuntu again anytime:
proot-distro login ubuntuExit Ubuntu session:
exitRemove Ubuntu and its data (if needed):
proot-distro remove ubuntuUbuntu Basic Commands
Ubuntu basic commands help you manage files, install tools, and navigate the system easily inside Termux.
Update system packages:
apt update && apt upgrade -yInstall a package:
apt install git -yCheck Ubuntu version:
lsb_release -aShow current user:
whoamiList files and folders:
lsCreate a folder:
mkdir foldernameChange directory:
cd foldernameRemove file:
rm filenameRemove folder:
rm -rf foldernameClear terminal screen:
clear