Termux Basic Commands will help you to use all the Linux tools in Termux efficiently.

Here are the basic termux commands you’ll be using with Termux for the Android app. Termux Basic Commands will help you to use all the Linux tools in Termux efficiently.

1. clear

clear is a basic termux command used to clear the terminal screen. If you’ve written a lot of commands, and the terminal screen looks garbage. Type clear and hit enter to clear the screen.

2. ls

ls is a command that is used to list all the directories and files in the working folder/directory. It is used to list the files/directories so, you can look up a particular file or folder.

3. mv

mv is used to move a particular file or folder to another folder/directory. It can be used like mv image.jpg /data/webdev to move image.jpg to the webdev directory.

4. cp

cp command is used to copy a file to another directory. Example: cp image.jpg /droidmaze/webdev to copy image.jpg file to webdev directory

5. pkg install

pkg install command is the replacement for apt command in Termux. pkg install command is used to install packages to Termux. For example, use pkg install python3 to install python3 in Termux.\


6. rm

the rm command is used to remove a file/directory. rm is used as rm image.jpg to remove/delete the image.jpg file from Termux. You can also delete the directory with the -r flag. Example rm -r wallpapers to delete/remove wallpapers directory.

7. cat

the cat command is used to read or create a new file in Termux. cat is used as cat index.html to create an index.html file. If the index.html file exists, it will open the existing file.

8. mkdir

mkdir command is used to create a new directory in Termux. You can use this command with the name of the directory to create a new directory. Example: mkdir droidmaze will create a new directory with the name droidmaze.

9. top

the top is a termux basic command to display all the background processes. It displays all the background activities and processes in the Terminal. It’s a quite handy command to use in Termux.

10. git clone

git clone is a pretty popular termux basic command used to clone the files from a git repository like GitHub. It is a quite handy command that eases and makes working on Github projects.

11. history

the history command is used to see all the previous run commands. It will show up a list of all the commands previously used in this Termux session.

12. wget

wget command is used to download the files from the internet or any server to your Termux terminal. It comes in very handy. You can also use the -b flag to download files in the background and continue working with Termux.

13. whoami

whoami is a termux basic command used to display the username. It shows the username through which you’re using Termux.

14. df -h

df -h command is used to display the storage usage. It shows how much storage is left and how much is already equipped.

15. chmod +x

chmod +x is a command used to give specific permissions to a particular file, most probably a bash file. So, you can use chmod +x to give permissions to a file, if you want to perform operations that need admin permission.

Termux Basic Commands PDF Guide

In this Termux Basic Commands PDF Guide, we shared the most commonly used and powerful Termux commands. You can download the PDF from the link below.




Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.