Termux Commands List With pdf download option 2021

IshantJuly 30, 20202


In this guide, we have made a list of the best Termux commands for beginners. Without Termux commands, you cannot operate Termux. To operate Termux, you must learn these Termux commands.
Before getting into Termux command we must know What is Termux and what are uses it?
In simple words, Termux is an Android terminal emulator and Linux environment app that does not require any root access. That means you can run Termux without rooting your Android device.
With the help of Termux, you can easily install the applications that run on the Linux platform via the APT package manager. Some best tools for Termux are MetasploitTool-XSQLMapXploitSpyWiresharkFsociety, and many more.
There are two package managers available in Termux first is “apt” and another is “pkg” you can install any app that is available for Termux with the help of these package managers. If you are bored with Termux, then you must try some Termux alternatives.
Now let’s see what are the uses of Termux. So Termux can be used for improving security and in Ethical hacking. Through Termux you can easily secure your Wi-Fi or a web application by performing penetration testing and many more things. If you are already an expert in Termux, then here are some best Termux tools for you.
If you don’t have Termux then you can install it from the below links:
Download Termux Link 1
Download Termux Link 2
So here is the List of best Termux commands:https://googleads.g.doubleclick.net/pagead/ads?guci=×280&url=https%3A%2F%2Fwww.darkhackerworld.com%2F2020%2F07%2Ftermux-commands-list.html&flash=0&fwr=0&fwrattr=true&rpe=1&resp_fmts=3&wgl=1&uach=WyJXaW5kb3dzIiwiMTAuMCIsIng4NiIsIiIsIjg3LjAuNDI4MC44OCIsW11d&tt_state=W3siaXNzdWVyT3JpZ2luIjoiaHR0cHM6Ly9hZHNlcnZpY2UuZ29vZ2xlLmNvbSIsInN0YXRlIjowfSx7Imlzc3Vlck9yaWdpbiI6Imh0dHBzOi8vYXR0ZXN0YXRpb24uYW5kcm9pZC5jb20iLCJzdGF0ZSI6MH1d&dt=1609985236443&bpp=3&bdt=745&idt=1122&shv=r20201203&cbv=r20190131&ptt=9&saldr=aa&abxe=1&cookie=ID%3Dcad68c1687da738e-22b158338dc5007b%3AT%3D1609949535%3ART%3D1609949535%3AS%3DALNI_MbmuiCQgmgnO2wxHdeOz3Efk8MFIA&prev_fmts=0x0%2C645x280&nras=1&correlator=6339716015118&frm=20&pv=1&ga_vid=619446192.1609985237&ga_sid=1609985237&ga_hid=997041410&ga_fc=0&u_tz=330&u_his=1&u_java=0&u_h=768&u_w=1366&u_ah=728&u_aw=1366&u_cd=24&u_nplug=3&u_nmime=4&adx=190&ady=1795&biw=1349&bih=657&scr_x=0&scr_y=116&eid=42530672&oid=3&pvsid=2049727539704443&pem=94&ref=https%3A%2F%2Fduckduckgo.com%2F&rx=0&eae=0&fc=1920&brdim=0%2C40%2C0%2C40%2C1366%2C40%2C1366%2C728%2C1366%2C657&vis=1&rsz=%7C%7CoeEbr%7C&abl=CS&pfx=0&fu=8320&bc=31&ifi=2&uci=a!2&btvi=2&fsb=1&xpc=YjQ7CxOef4&p=https%3A//www.darkhackerworld.com&dtd=1130

1.Termux commands list and uses

These Termux commands you must master. These Termux commands lists are very useful, these commands will often be used to install, manage applications, files, folders, and many more. You can also check the list of Best Termux packages.

1.1 Search for package:

pkg search command is used to search for a particular package. You can use the pkg search command to search for Termux packages

pkg search package name

For example:

pkg search metasploit

1.2 Install package

The pkg install command installs Termux packages that are not currently installed and updates packages that are already installed.

pkg install package name

For example:

pkg install metasploit

By using the above command Metasploit will be installed. If you want to install another package then remove the Metasploit and then type the name of your own package.

1.3 Uninstall package

Uninstall package command is used to uninstall a package or a tool. You can easily uninstall any package from your Termux by this command.

pkg uninstall package name


pkg uninstall metasploit

By typing the above command Metasploit will be uninstalled.

1.4 Reinstall a package in Termux

If you want to reinstall the Termux packages to the same versions as were previously installed then you can use this command. The pkg reinstall command will first uninstall and then install the package back again to your Termux

pkg reinstall package name

For Example:

pkg reinstall metasploit

1.5 Get detailed info about package

pkg show command generally used to show detailed information about a particular package. Use this command to get detailed information about the package.

pkg show package name

For Example:

pkg show package name

1.6 List installed Termux packages

Use this command to get the list of all packages that are currently installed in your Termux.


1.7 List all Termux packages

pkg list-all command is used to get a list of all available packages for the Termux. Use this command to see the list of all available packages.

pkg list-all

1.8 Show the location of files

pkg files used to show the location of installed files and packages in the Termux. The command with example is shown below:

pkg files package name

For Example:

pkg files metasploit

1.9 Update and Upgrade Termux packages

pkg update && pkg upgrade -y is the mixture of two commands separated by &&. You can use multiple commands in Termux by adding && to the Termux.
First, the pkg update command will get executed and then the pkg upgrade command will get executed. -y is used to prompt yes.
In simple words, this Termux command will update and upgrade your Termux packages.

pkg update && pkg upgrade -y 

1.10 Clear Termux screen

Use this command to clear the Termux screen


1.11 Print current working directory

Use this Termux command to print the working directory, That means the command will give you a location of the current directory in which you are present.


1.12 Change directory

You can use this command to change the directory. You can easily move from one directory to another by using this command. The example is given below.

cd $HOME
cd /sdcard

The first command will take you to the Termux home directory while another command will take you to the sd card of your Android device.
Going back from the directory:

cd ..
cd ../../

1.13 See files and folder of the current directory

Use this Termux command to see the files and folders that are present in the current directory.


You can also use this command to see more information about the files and folders including hidden files.

ls -lha

1.14 Copy files – cp

cp is used to copy the file from one directory to another. For example, I have a file that is present in the sd card and the name of the file is “document”.  And I want to move that document to the Termux home directory then the following command will be used:

cp /sdcard/document $HOME

1.15 Move files – mv

mv command is used to copy files from one folder to another. The procedure is the same as the above command just use mv instead of cp if you want to move the file.

1.16 Delete files and folder

rm is used to delete files in the directory or a folder. rm -rf used to delete the folder and its content. For example, I want to delete a folder named “Document” then I will use the following command to delete that folder.

rm -rf Document

1.17 Change permission of file and folder

chmod command is used to change the permission of the file and folder. Sometimes some files have only permission to read. To change the permission of a file from reading to read write and execute we will use the following command:




1.18 Read or create a file

To read any text, HTML, python file, etc cat command is used. For example, I want to read the content of “document.txt”. Then I will use the following command:

cat document.txt

Please note that if the file is not present at the given destination. Then the document.txt file will be created.

1.19 Zip command

zip is the popular command of Termux. That is used to compress and decompress a particular file or folder.
To compress a file following command will be used:


To decompress a file following command will be used:


Note: To use the zip and unzip command, you will need to install zip by typing the following Termux command.

pkg install zip

1.20 Create and remove the directory

mkdir command is used to make directories, while rmdir Termuxcommand is used to remove directories.
For example, I want to create a directory/folder named Termux, then I will use the following command:

mkdir Termux

To remove the Termux directory following command will be used:

mkdir Termux

1.21 netstat command

The netstat command generates displays that show network status and protocol statistics.

mkdir Termux

Read more about the netstat command from here:
What is the Netstat command?

1.22 df command

Shows the size of the object in the specified folder.

df Termux

1.23 Exit The Termux

Use this command to close the Termux.


1.24 Open a file

Open the file with the default application associated with it. For example, I want to open the “readme.txt” file. Then I will use the following Termux command:

open readme.txt

1.25 ping command

The command is used to ping an IP address or a website to ensure reachability of a device to a specific web or IP address. Example:

open google.com

1.26 Show calender

Use this command to show the calendar.


1.27 Show date

Use this command to print the date.


1.28 History of command

Use this Termux command to see the history of the Termux commands that you had typed before.


1.29 Download file from Termux

The wget Termux command will let you download any file and Termux package from the URL. Usage of this command is mentioned below:


Wget package needs to be installed to use this command. You can install the wget by using the below command:

pkg install wget

1.30 Git clone command

To clone the packages from Github, you will need a git clone command. Usage of this command is mentioned below:


To use the git clone, the git command must be installed in the Termux. You can install git by typing the below command.

pkg install git

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.