- Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically - additional packages are available using the APT package manager.
- Termux wiki
- Github
- Gitter
- Facebook Page
- Facebook Group
- IRC Channel #Termux on freenode
Termux has some extra features. You can add them by installing addons:
Termux:API Access Android and Chrome hardware features.
Termux:Boot Run scripts when your device boots.
Termux:Float Run Termux in a floating window.
Termux:Styling Have color schemes and powerline-ready fonts customize the appearance of the Termux terminal.
Termux:Task An easy way to call Termux executables from Tasker and compatible apps.
Termux:Widget Start small scriptlets from the home screen.
- Zsh
- Bash
- Xonsh
- IPython
- Fish
- TCSH
- Read Wiki to learn more
- Enable Dark UI Mode in Termux Add this line to your ~/.termux/termux.properties
use-black-ui=true
- Disable Vibration/haptic feedback Add this line to your ~/.termux/termux.properties
bell-character=ignore
- Emacs : Extensible, customizable text editor-and more
- joe : Wordstar like text editor
- jupp : user friendly full screen text editor
- Micro : Micro is a terminal-based text editor that aims to be easy to use and intuitive (notepad like keybindings crtl+c crtl+v etc.)
- nano : nano is a small and friendly editor.
- ne : Easy-to-use and powerful text editor
- sed : GNU stream text editor (More useful in bash scripting)
- Vim : Vi IMproved - enhanced vi editor
- Neovim : Neovim is an extension of Vim: feature-parity and backwards compatibility are high priorities.
- zile : Lightweight clone of the Emacs text editor
- Codiad
- emacs
- vim
Termux uses apt and dpkg for package management, similar to Ubuntu or Debian. Many quirks from Ubuntu are carried over here.
Install package(s):
pkg i <package name>
Update and upgrade packages:
pkg up <package name>
Remove/Uninstall Package(s):
pkg un <package name>
List files 'owned' by package:
pkg f <package name>
Reinstall a Package(s):
pkg re <package name>
Show some info about package(s):
pkg sh <package name>
Search package(s):
pkg se <package name> or <regex>
List all packages:
pkg list-a
List all installed packages:
pkg list-i
-
A quick warning for root users: if you prefer to use apt over pkg - never run it as root as you will mess up file permissions and SELinux contexts so you won't be able to use it as normal user. If you did this and your environment was broken, do not ask for help - this is your own fault !
Termux is capable of accessing remote devices by using some common tools. It is also possible to turn a device running Termux into remote controlled server.
- FTP Server (requires busybox):
busybox tcpsvd -vE 0.0.0.0 2121 busybox ftpd -w path/to/serve
Warning: -w allows upload and don't use port below 1024 or else you may get permission denied error.
-
SSH server: Check this if you are using sshd
-
HTTP Server:
busybox httpd -p 0.0.0.0:8080
- HTTP Proxy Server
tinyproxy -d
-
MySQL/MariaDB Server Read wiki page here or Read the blog post here
-
Music Player Daemon aka mpd Read the wiki page here Or Watch the Video Here
-
Bypass NAT Read the wiki page here
To install termux services, run
pkg i termux-services
To then enable and run a service, run
sv-enable <service>
If you only want to run it once, run
sv up <service>
To later stop a service, run:
sv down <service>
Or to disable it
sv-disable <service>
- ERC is an IRC client for Emacs.
- irssi is an IRC client.
- weechat is an IRC chat client.
- Arch (Thanks to sdrausty)
- Archstrike (just modifies the pacman.conf file)
- Blackarch (just modifies the pacman.conf file)
- Debian (Thanks to sp4rkie)
- Fedora (Thanks to nmilosev)
- Slackware (Thanks to gwenhael)
- Ubuntu (Thanks to neo-oli)
- Alpine Linux (Thanks to Hax4us)
- Termux-Launcher
- Termux-WebUI
- Termux-ADB
- Atilo (Automated Linux installer for termux)
- Lazymux (Automated pentesting tools installer for termux)
- Graphical Environment(x-11) for termux
- Termux Machine Learning
- phpmyadmin Read the blog post here
- Android as VPS using termux Read Here
- Termux Dotfiles worth checking out Click ME!
The following shortcuts are available when using Termux with a hardware (e.g. bluetooth) keyboard and also with hacker's keyboard on most devices:
- Ctrl + Alt + C → Create new session
- Ctrl + Alt + R → Rename current session
- Ctrl + Alt + ↓ or N → Next session
- Ctrl + Alt + ↑ or P → Previous session
- Ctrl + Alt + → → Open drawer
- Ctrl + Alt + ← → Close drawer
- Ctrl + Alt + F → Toggle full screen
- Ctrl + Alt + M → Show menu
- Ctrl + Alt + U → Select URL
- Ctrl + Alt + V → Paste
- Ctrl + Alt + + or - → Adjust text size
- Ctrl + Alt + 1-9 → Go to numbered session
- Source Termux-Wiki
alias a='startarch' # For starting termux arch
alias cls='clear'
alias e='logout'
alias gcl='git clone'
alias h='htop'
alias j='jobs'
alias nano='nano -m' # Enable Touch/Mouse Support in nano
alias p='pwd'
alias q='exit'
alias rf='rm -rf'
alias weather='curl wttr.in/delhi-india' # change the place to yours
alias pst=termux-clipboard-get # paste
alias cpy=termux-clipboard-set # copy
alias open=termux-open # open with external app
-
Fix equalizer not working
sudo pkill audiofx
-
Fix other audio related issues
sudo pkill audioserver
-
Kill a unresponsive app
sudo pkill app_name
-
Show all saved wifi passwords
xml sel -t -v "/WifiConfigStoreData/NetworkList/Network/WifiConfiguration//string/text()" /data/misc/wifi/WifiConfigStore.xml
- Make sure you have xmlstarlet installed if not
pkg i xmlstarlet
, Works only on Android oreo maybe?Anyway Try it out!
- List all open ports of your device
sudo netstat -tulpn
- Even works without root/sudo on some devices
-
Get all battery & usage related stats
sudo dumpsys batterystats
-
Get the list of all running processes of android
sudo ps aux
-
Enable write acess to external sdcard
-
First install magisk module named ExSDCard Access Enabler
-
Than Restart your device & paste this in termux
ln -sf /mnt/media_rw/SDCARDNUMBER ext1sdcard
SDCARDNUMBER will be something like this 8982-18F9
ext1sdcard is now your sdcard with read & write permissions.