Termux is the most powerful shell application for Android users. For new users, I have curated a list of Termux commands. It helps you to access and use powerful Linux tools and commands. To use Termux basic commands should be learned. In this article, we will be sharing a list of Termux basic commands that will help you to understand the basics of Termux. Every Termux basic command will be explained in detail, so you do not miss anything.
We tested all these Termux Basic Commands on our own. We assure you that all of these basic Termux commands are working perfectly. Still, if you face any issues, you can either mail us or leave a comment in the comment box. Let’s start learning the basic commands for Termux.
Termux Commands [Free PDF Book]
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.
Termux Commands for File Management
Here are some Termux commands that you’ll need for file management:
|Termux Command||Usage of Termux Command|
|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.|
|ls -a||ls -a helps to list all files and folders along with hidden folders and files in Termux|
|ls ~||ls ~ command is used to list all files and folders in the home directory|
|ls -l||ls -l command shows file actions like – modified, date and time, owner of the file, permissions and more.|
|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|
|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.|
|pwd||pwd command is used to show current working directory|
|touch||touch command is used to create files in Termux.|
|cat||cat commands are used to display contents of a file.|
|mkdir||mkdir is the command used to create a directory/folder in Termux.|
|rm||rm command is used to remove files from directories.|
|rm -r||rm -r command is used to remove non empty directories.|
|find||find command is used to find files in Termux terminal.|
Termux Commands for Package Management
Here are important commands for Package Management:
|Termux Command||Usage of Termux Command|
|pkg search||pkg search command is used to search packages for Termux that you can install later on.|
|pkg install||pkg install command is used to install different packages in the Termux app on Android.|
|pkg autoclean||pkg autoclean command is used to remove all outdated packages cache.|
|pkg clean||pkg clean command is used to remove all packages from .deb package cache.|
|pkg files||pkg files command is used to show all files installed by packages.|
|pkg list-all||pkg list-all command is used to list all packages available in repositories.|
|pkg reinstall||pkg reinstall command is used to reinstall specified installed packages with their latest version.|
|pkg show||pkg show command is used to show basic metadata like dependencies etc.|
|pkg uninstall||pkg uninstall command is used to uninstall specified packages. However their configuration and packages will remain in Termux.|
|pkg upgrade||pkg upgrade is used to upgrade all the currently installed packages.|
Termux Commands for Linux utilities
Here are Termux commands for Linux utilities:
|Termux Commands||Usage of Termux Commands|
|help||help command lists all the system-level commands for your Termux app.|
|top||top is a Termux 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.|
|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.|
|alias||alias command is super helpful Termux command. It lets you create an alias for a particular long command which can help you in performing repetitive operations easily. alias is going to save you a lot of time.|
|exit||exit command is helpful and very commonly used Termux command. It lets you exit out of the Termux terminal easily.|
|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.|
|uptime||uptime command shows you the uptime of your Android device.|
|curl||curl is one of the most important Termux commands that lets you send an HTTP request to a given URL.|
|env||env command helps you to set up environment variables for your Termux terminal.|
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.
Copyright Status: It is a copyright-free PDF Guide. You can share it with anyone you want. Thanks.
If you found this guide helpful, then please share it on social media. Ask your doubts and share feedback in the comments section below. Thanks for reading the article. Follow us on Twitter for the latest news and updates related to Android.
Read Next: How to Install and Use Sherlock in Termux?