Ubuntu in Termux – Installation, Usage & Basic Commands

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 -y

List available Linux distros:

proot-distro list

Install Ubuntu:

proot-distro install ubuntu

Login to Ubuntu:

proot-distro login ubuntu

Usage Commands

Start Ubuntu again anytime:

proot-distro login ubuntu

Exit Ubuntu session:

exit

Remove Ubuntu and its data (if needed):

proot-distro remove ubuntu

Ubuntu 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 -y

Install a package:

apt install git -y

Check Ubuntu version:

lsb_release -a

Show current user:

whoami

List files and folders:

ls

Create a folder:

mkdir foldername

Change directory:

cd foldername

Remove file:

rm filename

Remove folder:

rm -rf foldername

Clear terminal screen:

clear
SHARE THIS POST: