Termux Commands List

Termux Commands List 2022 (Commonly Used)

Termux is an application run with a command and a shortcut. If you want to use termux correctly, learn and remember these termux commands list. There are 13 commands that commonly used by the termux users.

You can enter the command by typing on the termux terminal and execute the shortcut by hitting a combination of keyboard buttons.


A. You want to run a clear command. So type c, l, e, a, r on the keyboard and hit enter.

termux command clear

Note: Termux command always must be written in lowercase.

B. You want to execute a CTRL D shortcut. So hit the ctrl button first, then the D button on the keyboard.

termux shortcut ctrl d

Note: The ctrl button can be found on the hacker keyboard app. Click here to get it.

Quoted from laeliyah.com, some users prefer to use the command to run termux, although the shortcut is more efficient.

Well, here’s the list of termux commands.

1. ls

Ls is termux command to show a list from a directory. That list is files and folders.

Usage example:

You have opened the abc folder. To show folder’s content, type ls and press enter.

Usually, some users write this command with “is”. They write “is” because the lowercase of “L” is mistaken for the letter “i”.

2. cd

Cd means change directory. This termux command is used to open a folder.


cd folder name


You have run ls command and you see the XYZ folder. To open the XYZ folder, enter cd XYZ.

3. pkg install

Termux needs packages to run a program. You can install 1, 2, 3, or more packages according to the program’s needs.

To install the package, type pkg install package's name.


If you want to install python, type pkg install python.

And if you want to install php, type pkg install php.

Note: you can install 2 or more packages by type package’s name after package’s name other.

Example: To install php and python packages, type pkg install php python.

4. git clone

When use termux, there is a process installing script from GitHub. You can do this process by running termux command git clone script's link.

Note: you must installed the git package before (pkg install git).


The ABC script is stored in GitHub and its link is https://github.com/TheNoob/ABC. So, to install ABC script, enter git clone https://github.com/TheNoob/ABC.

5. cp

Cp is termux command to copy a file or folder from directory and paste it to other directory.


cp -f file name destination directory (to copy file)
cp -rf folder name destination directory (to copy folder)


You want to copy file start.py from the ABC folder and paste it to the XYZ folder.

The command is cp -f start.py XYZ.

Note: The destination folder must be in the same directory as the copied file or folder.

Look at the example above! That condition means the file “start.py” and the folder “XYZ” are contents of the “ABC” folder.


6. mv

Such as the termux command “cp”, the mv command aslo give an action to files or folders. The action is move a file or folder and rename a file or folder.

The usage like the cp command. You must define the file or folder and the destination directory.

Usage to move file or folder:

mv -f file's name destination
mv -rf folder's name destination 

Usage to rename file or folder:

mv the name of folder or file the new name


You want to rename the ABC folder become DDD. The command is mv ABC DDD.

7. rm

Rm is termux command to delete folders or files from termux storage. The usage like the cp and mv command. Just define the file or folder you want delete.


rm -f file's name
rm -rf folder's name

8. mkdir

Mkdir is termux command to make a new folder.


mkdir new folder's name

9. nano

If the mkdir command to make a folder, nano is termux command to make or edit a file.

Before use nano command, you must installed the nano package with pkg install nano.


nano file's name (to edit)
nano a new file's name (to create a new file)

After edit or make a new file, execute the shortcut ctrl x to save progress. If there a notification “save modified buffer?”, press Y and then enter.

10. Execute Command

To run a program or script, you must execute the script’s main file with the execute command.

Execute command fall into 3:

  1. python or python2.
  2. php.
  3. ./, bash, or sh.


execute command file's name

Note: the execute command define by file’s extension.

  • py extension use python or python2.
  • php extension use php.
  • sh extension use ./, bash, or sh.


A file has name run.sh. To execute that file, you can use command sh run.sh.

11. cat

Cat is termux command to displays a file’s content on termux terminal. This command is like the nano command, but cat command will displays file’s content directly.


cat file's name

Example: cat XYZ.php

12. apt update && apt upgrade

Actually, apt update && apt upgrade are two commands. But the usage is always combined, so it’s look like one command line.

The && is code to run 2 or more command in one process.


apt update && apt upgrade

Note: usually, this command is just used once. You can run this command again if there is a termux update.

13. termux-setup-storage

By default, termux hasn’t permission to access android storage. Therefore, you must give permission manually if you want to copy or move files from termux to Android or vice versa.



You will find the pop-up when run this command. Choose allow or yes on the pop-up to give permission.


Well, those are the 13 termux commands commonly used. Actually, there are other commands, such as exit, clear, root termux, and more. But the usage is rare, so I don’t write it.






Leave a Reply

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