Termux Commands List (Basic to Advanced) – With PDF | 2025

Termux is a powerful hidden tool for Android devices. It’s a command-line interface application where you need to type commands to do tasks. If you are new to Termux, then you maybe don’t know the commands to use it.

So in this article, I will give you a full list of Termux commands from basic to advanced. I will explain everything in a very simple way so that even a complete beginner can easily understand the commands and start using Termux easily.

Termux commands list
Termux Commands List

What is Termux?

What is Termux
What is Termux?

Termux is a free Android app that gives a command-line interface on Android phones to use Linux tools and packages. You can run Linux commands, write scripts, install programming languages, learn coding, and much more using Termux.

How to install Termux on Android phone

Now that you know what Termux is, let’s learn how to install it on your Android phone. As Termux is not available on the Google Play Store anymore, we have to install it from a trusted website. Just follow these simple steps:

  • Visit F-droid Website: Open your browser and search for (F-droid Termux) then click on the first link.
  • Download Termux APK: Now scroll down and find download APK button, click on it.
  • Install it: After downloading the Termux Apk, install it.
  • Open Termux: Now open Termux.
  • Run first command: Type this command (apt update && apt upgrade -y) this will update and upgrade Termux packages to their latest version, which is very important.

You have successfully installed Termux on your Android phone. Now you are ready to use it.

Termux Commands List – Basic to Advanced

Below is a complete list of Termux commands, starting from very basic to advanced level.

Basic Termux Commands

These commands help you to move around, create files, and do basic tasks in Termux.

No.CommandWhat It Does
1pwdShows your current folder location
2lsLists files and folders
3cdGoes into a folder
4cd ..Goes back to the previous folder
5clearClears the screen
6exitCloses Termux
7mkdir foldernameMakes a new folder
8touch filenameCreates a new file
9cat filenameShows the file content
10rm filenameDeletes a file
11rm -rf foldernameDeletes a folder and all inside
12echo HelloPrints a message
13whoamiTells your current username
14dateShows the current date and time

Package Management Commands

These commands are used to install, update, and manage software packages in Termux.

No.CommandWhat It Does
15pkg updateUpdates all packages
16pkg upgradeUpgrades installed tools
17pkg install toolnameInstalls a tool (like python, git, curl)
18pkg uninstall toolnameRemoves a tool
19pkg list-allLists all available packages
20apt updateSimilar to pkg update
21apt upgradeSimilar to pkg upgrade
22apt install toolnameAnother way to install tools

Example:

pkg install git
pkg install command in termux
pkg install git

This command installs Git tool in Termux.

See also  How to Install Arch Linux on Android Without Root

File and Folder Commands

Files and folders commands will help you to manage files and directories in Termux.

No.CommandWhat It Does
23mv file1 file2Renames a file
24cp file1 file2Copies a file
25ls -aShows hidden files too
26ls -lShows file details like size, date
27stat filenameShows file stats (size, modified time)

Storage Access Commands

To access your phone storage in Termux, use these:

No.CommandWhat It Does
28termux-setup-storageGives access to internal storage
29cd /sdcardGoes to your phone’s files
30ls /sdcardLists files in phone storage
31cp filename /sdcard/Copies file to phone memory

Cool Termux Commands List

These are some cool Termux commands that you can use to have some fun in the terminal screen.

S.NoCommand NameInstallation Command(s)Usage ExampleWhat It Does (Simple Explanation)
32cmatrixpkg install cmatrixcmatrixShows hacker-style green falling code on the screen
33figletpkg install figletfiglet Achik.usCreates big text banners.
34toiletpkg install toilettoilet HACKERMakes colorful and fancy text banners
35neofetchpkg install neofetchneofetchShows system info in a cool and stylish way
36slpkg install slslDisplays a running train in the terminal.
37lolcatpkg install ruby
gem install lolcat
figlet HelloCreates cool colourful text
38fortunepkg install fortunefortuneDisplays funny quotes.
39yesNo install needed (built-in)yes helloRepeats a word again and again forever
40calNo install needed (built-in)calShows calendar of current month
41w3mpkg install w3mw3m google.comLets you browse websites in terminal
42termux-open-urlNo install neededtermux-open-url https://achik.usOpens website in your phone browser
43bannerpkg install git
git clone https://github.com/TechnicalMujeeb/Banner
cd Banner
bash Banner.sh
Custom commandCreate your own termux opening banner.
44chatpkg install git
git clone https://github.com/thelinuxchoice/chat
cd chat
bash chat.sh
Custom commandLets you chat with friends using Termux
45cowsaypkg install cowsaycowsay Hello!A cow says your message in a funny way
46asciiquariumpkg install perl
curl -L https://bit.ly/3t5mwAo -o asciiquarium
chmod +x asciiquarium
./asciiquariumDisplays fish aquarium in termux.

Internet & Networking Commands

Termux also has some basic network-related commands.

No.CommandWhat It Does
47ping website.comChecks website response
48wget urlDownloads a file from internet
49curl urlAnother tool to download data
50ip aShows IP address info
51ifconfigAlso shows IP info (if installed)
52nmap ip/websiteNetwork scan (needs nmap installed)

Example:

ping google.com
Ping command in Termux
ping google.com

This command sends test signals to Google to check if it’s online.

Programming Commands (Python, Bash, Node)

You can write and run code in Termux. Here are some commands:

No.CommandWhat It Does
53python filename.pyRuns a Python file
54bash filename.shRuns a bash script
55node filename.jsRuns a JavaScript file (Node.js)
56nano filenameOpens a text editor to write code
57chmod +x filenameMakes the file executable

Git & GitHub Commands

If you want to download tools from GitHub:

See also  Everything You Need to Know About Termux (Simple Guide)
No.CommandWhat It Does
58git clone urlDownloads a GitHub project
59cd folderEnter the downloaded folder
60lsSee what’s inside
61bash install.shRun installation file (if available)
62./tool.shRun the tool (if executable)

Example:

git clone https://github.com/Mikaelson-1/Rajkumardusad-
git clone command in termux
git clone command in termux

This command downloads the tool-x tool in termux.

Hacking & Security Tools (Advanced)

These tools are for learning ethical hacking:

No.CommandWhat It Does
63pkg install nmapNetwork scanner
64source <(curl -fsSL https://kutt.it/msf)Metasploit framework
65pkg install opensshSQL injection tool
66pkg install whoisDomain and IP lookup
67pkg install torAnonymity network
68torStart Tor service
69nmap -sV target.comScan a site for open ports
70pkg install dnsutilsDNS lookup tool

Note: Use these only for learning and legal testing!

Useful Shortcuts and Tips

If you want to use Termux faster and smarter then these shortcuts and tips will help you a lot.

  • CTRL + C – Stop a running command.
  • CTRL + D – Logout or exit terminal.
  • CTRL + L – Clear screen (same as clear command).
  • CTRL + U – Delete the whole command line
  • TAB – Auto complete command or filename
  • UP Arrow – Shows previous used command.
  • && – Run multiple commands in one line.

Example:

apt update && apt upgrade
run multiple commands in termux
apt update && apt upgrade

You can run multiple commands in termux at the same time in a single line just by adding (&&) between two different commands.

Termux Commands List

This is a quick list of all 50+ Termux commands we discussed above. These are written in a very simple way so anyone can understand what they do.

Termux Basic Commands

  1. pwd – Show your current folder
  2. ls – List files and folders
  3. cd – Go into a folder
  4. cd .. – Go back one folder
  5. clear – Clean the screen
  6. exit – Close Termux
  7. mkdir foldername – Make a new folder
  8. touch filename – Make a new file
  9. cat filename – Show file content
  10. rm filename – Delete a file
  11. rm -rf foldername – Delete a folder and its data
  12. echo Hello – Show message on screen
  13. whoami – Show your username
  14. date – Show current date and time

Package management Termux commands

  1. pkg update – Refresh the list of tools
  2. pkg upgrade – Upgrade installed tools
  3. pkg install toolname – Install a new tool
  4. pkg uninstall toolname – Remove a tool
  5. pkg list-all – See all available tools
  6. apt update – Same as pkg update
  7. apt upgrade – Same as pkg upgrade
  8. apt install toolname – Same as pkg install

File Management Termux commands

  1. mv file1 file2 – Rename or move a file
  2. cp file1 file2 – Copy a file
  3. ls -a – Show hidden files too
  4. ls -l – Show file details
  5. stat filename – Show file info

Storage Access Termux Commands

  1. termux-setup-storage – Give storage permission
  2. cd /sdcard – Go to phone storage
  3. ls /sdcard – See files in phone storage
  4. cp filename /sdcard/ – Copy file to phone memory

Termux Cool Commands

  1. cmatrix – Shows hacker-style green falling code on the screen
  2. figlet – Makes big text banners from words
  3. toilet – Makes colorful and fancy text banners
  4. neofetch – Displays system informations in a colourful stylish way
  5. sl – Shows a train moving on your terminal screen
  6. lolcat – Adds rainbow colors to your text
  7. fortune – Gives random funny or wise quotes
  8. yes – Repeats a word again and again forever
  9. cal – Displays current month calculator
  10. w3m – Lets you browse websites in the terminal
  11. termux-open-url – Opens websites in your phone’s browser
  12. banner – Makes your own welcome banner in Termux
  13. chat – You can chat with another termux user.
  14. cowsay – A cow says your message in a funny way
  15. asciiquarium – Displays a aquarium with moving fishes.
See also  How to Install and Use Ngrok in Termux (Complete Guide)

Networking Termux commands

  1. ping website.com – Check if a website is working
  2. wget url – Download something from the internet
  3. curl url – Also used to download content
  4. ip a – Show your IP info
  5. ifconfig – Another IP command (needs to install)
  6. nmap ip/website – Scan network ports

Programming Termux Commands

  1. python filename.py – Run a Python file
  2. bash filename.sh – Run a shell script
  3. node filename.js – Run a JavaScript file
  4. nano filename – Open file editor
  5. chmod +x filename – Gives executable permission to s script file

GitHub Termux Commands

  1. git clone url – Download from GitHub
  2. cd folder – Go into the tool folder
  3. ls – See files inside the folder
  4. bash install.sh – Run install file
  5. ./tool.sh – Start the tool

Security Tools Termux Commands

  1. pkg install nmap – Install nmap scanner
  2. pkg install opensshSQL injection tool
  3. pkg install whois – Domain and IP lookup
  4. source <(curl -fsSL https://kutt.it/msf) – Installs Metasploit framework
  5. pkg install tor – Install TOR browser
  6. tor – Start TOR service
  7. pkg install dnsutilsDNS lookup tool
  8. nmap -sV target.com – Scan a website deeply

Download Termux Command List PDF file

I also made a PDF file with all these Termux commands and examples. You can download it for free and keep it saved on your phone. This will help you learn Termux anytime even if you are offline.

Just click on the download button to download the full Termux Commands List PDF from basic to advanced.

Final Words

Termux commands are easy once you learn and try practicing daily. The Termux commands list provided in this article is for beginner to advanced users. With these commands, you can install tools, create scripts, and even do ethical hacking. I have also provided a Termux commands list PDF file in this article, which has basic to advanced Termux commands.

If you are a total newbie on Termux, then you can try using Termux with simple commands like cd, ls, and mkdir and slowly move to advanced commands.

I hope this article is helpful for you and you don’t need to find Termux commands anywhere.

Happy Learning!

SHARE THIS POST:

Leave a Reply

Your email address will not be published. Required fields are marked *