Termux Fun & Useful Commands
Installing Every Package in Termux at Once
pkg list-all | cut -d ' ' -f1 | xargs pkg install -y
Pausing Installation with Ctrl+Z (Temporary)
Press CTRL + Z during installation, then resume with 'fg'
Using tmux to Keep Installations Running
pkg install tmux
tmux new -s install
pkg install <package-name>
Detach: Press CTRL + B, then D
Reattach: tmux attach -t install
Partial Download of a Package for Later Installation
apt-get install <package-name> --download-only
To install later: apt-get install <package-name>
Force-Pausing an Installation
pkill -STOP apt
Resume later: pkill -CONT apt
Displaying a Matrix-Style Effect
pkg install cmatrix
cmatrix
Displaying an ASCII Steam Train Animation
pkg install sl
sl -l
Generating ASCII Text in a Box
pkg install figlet boxes
figlet 'Hello!' | boxes -d unicornthink
Making Termux Look Like an Old CRT Screen
TERM=linux
Displaying Random Jokes
pkg install fortune
fortune -o
Creating Fake Hacking Commands
while true; do echo 'Downloading virus...'; sleep 1; done
Printing a Countdown Timer
for i in {10..1}; do echo "$i"; sleep 1; done && echo 'Boom!'
Playing an ASCII Fire Animation
pkg install aafire
aafire
Watching Star Wars Episode IV in ASCII
telnet towel.blinkenlights.nl
Printing Colorful Rainbow Text
pkg install lolcat
echo 'I love Termux!' | lolcat
Converting Images to ASCII
pkg install jp2a
jp2a yourimage.jpg
Playing MP3 Files in Termux
pkg install mpv
mpv your-song.mp3
Generating a Random Password
head /dev/urandom | tr -dc A-Za-z0-9 | head -c 12 ; echo ''
Flipping Terminal Text Upside Down
echo -e '\033[7mFlipped Text!\033[0m'
Making the Terminal Slowly Type a Sentence
echo 'This is cool!' | pv -qL 10